/* ===== SIMASSESS GLOBAL STYLES ===== */

:root {
    --primary: #0d5b73;
    --primary-light: #00a8cc;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f3f4f6;
    --gray: #6b7280;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #495057;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== DARK MODE - GLOBAL ===== */
html.dark-mode {
    background: #1c2530;
    color: #e4e6eb;
}

html.dark-mode body {
    background: linear-gradient(135deg, #1f2937 0%, #1a202c 100%);
    color: #e4e6eb;
}

html.dark-mode .navbar {
    background-color: #263445 !important;
    border-bottom-color: rgba(0, 168, 204, 0.2) !important;
}

html.dark-mode .nav-link {
    color: #cfd8e3 !important;
}

html.dark-mode .nav-link:hover {
    color: var(--primary-light) !important;
    background-color: rgba(0, 168, 204, 0.1) !important;
}

html.dark-mode .sidebar {
    background: linear-gradient(180deg, #0a3d52 0%, #061f2b 100%) !important;
}

html.dark-mode .sidebar-brand {
    border-bottom-color: rgba(0, 168, 204, 0.2) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

html.dark-mode .sidebar-link {
    color: rgba(255, 255, 255, 0.75) !important;
}

html.dark-mode .sidebar-link:hover {
    background: rgba(0, 168, 204, 0.1) !important;
    color: #ffffff !important;
}

html.dark-mode .sidebar-item.active > .sidebar-link {
    background: rgba(0, 168, 204, 0.25) !important;
    color: #ffffff !important;
}

html.dark-mode .card {
    background-color: #263445 !important;
    border-color: rgba(0, 168, 204, 0.2) !important;
    color: #e4e6eb !important;
}

html.dark-mode .dropdown-menu {
    background-color: #263445 !important;
    border-color: rgba(0, 168, 204, 0.2) !important;
}

html.dark-mode .dropdown-item {
    color: #cfd8e3 !important;
}

html.dark-mode .dropdown-item:hover {
    background-color: rgba(0, 168, 204, 0.1) !important;
    color: var(--primary-light) !important;
}

html.dark-mode .dropdown-divider {
    border-color: rgba(0, 168, 204, 0.2) !important;
}

html.dark-mode .content {
    background: linear-gradient(135deg, #222e3c 0%, #1a202c 100%) !important;
    color: #e4e6eb !important;
}

html.dark-mode .form-control,
html.dark-mode .form-select {
    background-color: #2b394a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

html.dark-mode .table {
    color: #e4e6eb !important;
}

html.dark-mode .table th,
html.dark-mode .table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark-mode .table thead th {
    background-color: #2f3f52 !important;
    color: #ffffff !important;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.navbar-bg {
    background-color: #ffffff;
}

.nav-link {
    color: #495057 !important;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary) !important;
    background-color: #f3f4f6;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 280px;
    margin-top: 0.5rem;
    animation: slideDown 0.2s ease;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    color: #495057;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e5e7eb;
}

.dropdown-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0a4a5c 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.user-avatar-lg {
    font-size: 2.5rem;
}

.user-info {
    flex: 1;
}

.user-name-lg {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: white;
}

.user-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0 0 0;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, #0a4a5c 100%);
    width: 250px;
    color: #ffffff;
    border-right: 1px solid rgba(0, 168, 204, 0.2);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 2px solid rgba(0, 168, 204, 0.3);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(0, 168, 204, 0.15);
    padding-left: 1.25rem;
}

.sidebar-item.active > .sidebar-link {
    color: #ffffff;
    background: rgba(0, 168, 204, 0.25);
    border-left: 4px solid var(--primary-light);
    padding-left: calc(1rem - 4px);
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.card-body {
    padding: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 91, 115, 0.1);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ===== TABLE STYLES ===== */
.table {
    color: #495057;
}

.table th {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    font-weight: 600;
}

.table td {
    border-color: #e5e7eb;
}

.table-hover tbody tr:hover {
    background-color: #f9fafb;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px rgba(13, 91, 115, 0.3);
    transform: translateY(-2px);
}

/* ===== BADGE STYLES ===== */
.badge {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* ===== UTILITY CLASSES ===== */
.text-muted {
    color: #6b7280 !important;
}

html.dark-mode .text-muted {
    color: #9ca3af !important;
}

.bg-light {
    background-color: #f3f4f6 !important;
}

html.dark-mode .bg-light {
    background-color: #2b394a !important;
}

.border {
    border-color: #e5e7eb !important;
}

html.dark-mode .border {
    border-color: rgba(0, 168, 204, 0.2) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .dropdown-menu {
        min-width: calc(100vw - 2rem) !important;
    }

    .navbar {
        padding: 0.5rem 1rem !important;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    margin-top: auto;
}

.footer-text {
    font-size: 0.9rem;
}

html.dark-mode .footer {
    background: #263445 !important;
    border-top-color: rgba(0, 168, 204, 0.2) !important;
}

html.dark-mode .footer-text {
    color: #cfd8e3 !important;
}

/* ===== CONTENT AREA ===== */
.content {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main {
    flex: 1;
    overflow-y: auto;
}

.wrapper {
    display: flex;
    height: 100vh;
}

/* ===== SIMPLEBAR SCROLLBAR ===== */
.simplebar-scrollbar:before {
    background: rgba(0, 168, 204, 0.4);
}

html.dark-mode .simplebar-scrollbar:before {
    background: rgba(0, 168, 204, 0.6);
}