/* UAST Brand Colors */
:root {
    --uast-primary: #0D9488; /* Teal/Green-Blue */
    --uast-secondary: #0891B2; /* Cyan Blue */
    --uast-accent: #F59E0B; /* Gold/Amber */
    --uast-success: #10B981; /* Green */
    --uast-info: #06B6D4; /* Light Blue */
    --uast-warning: #F59E0B; /* Gold */
    --uast-danger: #EF4444; /* Red */
    --uast-dark: #1E293B; /* Dark Gray/Blue */
    --uast-light: #F8FAFC; /* Light Gray */
    --uast-white: #FFFFFF;
    --uast-gradient: linear-gradient(135deg, #0D9488 0%, #0891B2 100%);
    --uast-gradient-hover: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);
}

/* Primary Buttons */
.btn-primary {
    background: var(--uast-gradient);
    border: none;
    color: var(--uast-white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background: var(--uast-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 148, 136, 0.3);
    color: var(--uast-white);
}

.btn-primary:focus,
.btn-primary:active {
    background: var(--uast-gradient);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

/* Success Button with Gold Accent */
.btn-success {
    background-color: var(--uast-success);
    border: none;
    color: var(--uast-white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    color: var(--uast-white);
}

/* Warning Button (Gold) */
.btn-warning {
    background-color: var(--uast-accent);
    border: none;
    color: var(--uast-white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background-color: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
    color: var(--uast-white);
}

/* Info Button */
.btn-info {
    background-color: var(--uast-info);
    border: none;
    color: var(--uast-white);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background-color: #0891B2;
    transform: translateY(-2px);
    color: var(--uast-white);
}

/* Sidebar Styling */
.sidebar-menu .metismenu li a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    padding: 0.75rem 1rem;
}

.sidebar-menu .metismenu li a:hover,
.sidebar-menu .metismenu li a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--uast-white);
    transform: translateX(5px);
}

.sidebar-menu .metismenu li a.active {
    background: var(--uast-gradient);
    color: var(--uast-white);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
    font-weight: 600;
}

.sidebar-menu .metismenu li ul li a {
    padding-left: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.sidebar-menu .metismenu li ul li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--uast-white);
    transform: translateX(3px);
}

.sidebar-menu .metismenu li ul li a.active {
    background: rgba(13, 148, 136, 0.3);
    color: var(--uast-white);
    border-left: 3px solid var(--uast-accent);
}

/* Header Styling */
#page-topbar {
    background: var(--uast-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(13, 148, 136, 0.1);
}

.navbar-header .btn {
    color: var(--uast-dark);
    transition: all 0.3s ease;
}

.navbar-header .btn:hover {
    color: var(--uast-primary);
    background: rgba(13, 148, 136, 0.1);
}

/* Sidebar Background */
.vertical-menu {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand-box {
    background: var(--uast-gradient);
    padding: 1rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: var(--uast-white);
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: var(--uast-gradient);
    color: var(--uast-white);
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border: none;
}

/* Table Styling */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background: var(--uast-gradient);
    color: var(--uast-white);
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.05);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    border-color: rgba(13, 148, 136, 0.1);
}

/* Links */
a {
    color: var(--uast-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--uast-secondary);
    text-decoration: none;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--uast-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid rgba(13, 148, 136, 0.2);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: var(--uast-primary);
}

/* Badge Styling */
.badge-primary {
    background: var(--uast-gradient);
    color: var(--uast-white);
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.badge-success {
    background-color: var(--uast-success);
    color: var(--uast-white);
}

.badge-warning {
    background-color: var(--uast-accent);
    color: var(--uast-white);
}

.badge-info {
    background-color: var(--uast-info);
    color: var(--uast-white);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(13, 148, 136, 0.1);
    color: var(--uast-primary);
}

/* Progress Bar */
.progress {
    border-radius: 1rem;
    height: 0.75rem;
    background-color: rgba(13, 148, 136, 0.1);
}

.progress-bar {
    background: var(--uast-gradient);
    border-radius: 1rem;
}

/* Alert Styling */
.alert-primary {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--uast-primary);
    color: var(--uast-primary);
    border-radius: 0.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--uast-success);
    color: #059669;
    border-radius: 0.5rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--uast-accent);
    color: #D97706;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    background: var(--uast-gradient);
    color: var(--uast-white);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer a {
    color: var(--uast-white);
}

.footer a:hover {
    color: var(--uast-accent);
}

/* Search Input */
.app-search .form-control {
    border-radius: 2rem;
    border: 2px solid rgba(13, 148, 136, 0.2);
    padding-left: 2.5rem;
}

.app-search .form-control:focus {
    border-color: var(--uast-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}

.app-search .mdi-magnify {
    color: var(--uast-primary);
}

/* Page Title */
.page-title-box h4 {
    color: var(--uast-dark);
    font-weight: 600;
}

/* Active State for Navigation */
.navbar-brand-box .logo-lg {
    color: var(--uast-white);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Custom Scrollbar */
.simplebar-scrollbar:before {
    background: var(--uast-primary);
}

/* Icon Colors */
.mdi {
    transition: all 0.3s ease;
}

.mdi:hover {
    color: var(--uast-primary);
}

/* Pagination */
.pagination .page-link {
    color: var(--uast-primary);
    border-color: rgba(13, 148, 136, 0.2);
    border-radius: 0.5rem;
    margin: 0 0.25rem;
}

.pagination .page-link:hover {
    background: var(--uast-gradient);
    color: var(--uast-white);
    border-color: var(--uast-primary);
}

.pagination .page-item.active .page-link {
    background: var(--uast-gradient);
    border-color: var(--uast-primary);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--uast-primary);
}

.breadcrumb-item.active {
    color: var(--uast-dark);
}

/* Modal Styling */
.modal-header {
    background: var(--uast-gradient);
    color: var(--uast-white);
    border-radius: 0.5rem 0.5rem 0 0;
    border: none;
}

.modal-header .close {
    color: var(--uast-white);
    opacity: 0.9;
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--uast-accent);
}

/* Tabs */
.nav-tabs .nav-link {
    color: var(--uast-dark);
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--uast-primary);
    color: var(--uast-primary);
}

.nav-tabs .nav-link.active {
    color: var(--uast-primary);
    border-bottom-color: var(--uast-primary);
    background: transparent;
}

/* Loading Spinner */
.spinner-border-primary {
    border-color: var(--uast-primary);
    border-right-color: transparent;
}

/* Utility Classes */
.text-uast-primary {
    color: var(--uast-primary) !important;
}

.text-uast-secondary {
    color: var(--uast-secondary) !important;
}

.text-uast-accent {
    color: var(--uast-accent) !important;
}

.bg-uast-primary {
    background: var(--uast-gradient) !important;
    color: var(--uast-white) !important;
}

.bg-uast-secondary {
    background-color: var(--uast-secondary) !important;
    color: var(--uast-white) !important;
}

.bg-uast-accent {
    background-color: var(--uast-accent) !important;
    color: var(--uast-white) !important;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
