/* eMaintenance - Modern UI Stylesheet */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --primary-rgb: 79, 70, 229;
    --accent: #06b6d4;
    --sidebar-width: 270px;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1a1f3a 50%, #0f172a 100%);
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-active: rgba(79, 70, 229, 0.25);
    --topbar-height: 64px;
    --body-bg: #f0f2f8;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-primary);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: #fff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar.collapsed {
    margin-left: calc(var(--sidebar-width) * -1);
}

.sidebar-header {
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0,0,0,0.15);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.sidebar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.sidebar-brand h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: -0.3px;
}

.sidebar-brand small {
    font-size: 0.72rem;
    opacity: 0.6;
    font-weight: 400;
}

.sidebar-user {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
}

.sidebar-user .user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.sidebar-user .user-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.avatar-sm {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.nav-section {
    padding: 16px 20px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 2px 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    border-left: none;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-nav .nav-link.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-nav .nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar-nav .nav-link.active i {
    opacity: 1;
    color: #a5b4fc;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
    background: rgba(0,0,0,0.1);
}

.sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 2px 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.sidebar-footer .nav-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-footer .nav-link.text-danger {
    color: rgba(239, 68, 68, 0.8) !important;
}

.sidebar-footer .nav-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444 !important;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--body-bg);
}

.main-content.expanded {
    margin-left: 0;
}

/* ========== TOP NAVBAR ========== */
.top-navbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.sidebar-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.top-navbar .btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.top-navbar .btn-link:hover {
    color: var(--primary);
}

.top-navbar .dropdown-toggle::after {
    opacity: 0.5;
}

.content-wrapper {
    padding: 28px;
}

/* ========== CARDS ========== */
.card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 22px;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--text-primary);
}

.card-body {
    padding: 22px;
}

/* ========== STAT CARDS ========== */
.stat-card {
    border-radius: var(--radius-md);
    padding: 22px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card .stat-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.8rem;
    opacity: 0.2;
    z-index: 1;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.bg-gradient-primary { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.bg-gradient-success { background: linear-gradient(135deg, #059669, #10b981); }
.bg-gradient-warning { background: linear-gradient(135deg, #d97706, #f59e0b); }
.bg-gradient-danger { background: linear-gradient(135deg, #dc2626, #f87171); }
.bg-gradient-info { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.bg-gradient-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

/* ========== TABLES ========== */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f9fafb;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.03);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 9px 18px;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-1px);
}

.btn-success {
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-danger {
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.btn-info {
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: #d1d5db;
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--text-primary);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ========== FORMS ========== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #d1d5db;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.input-group .input-group-text {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 1.5px solid #d1d5db;
    border-right: none;
    background: #f9fafb;
    color: var(--text-muted);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: var(--primary);
}

.input-group .form-control:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== BADGES ========== */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.76rem;
    letter-spacing: 0.2px;
}

.bg-orange {
    background-color: #ea580c !important;
}

/* ========== ALERTS ========== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 14px 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #155e75;
}

/* ========== STATUS TIMELINE ========== */
.status-timeline {
    position: relative;
    padding-left: 32px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), #e2e8f0);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 22px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    transition: all 0.3s;
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), 0 0 0 5px rgba(var(--primary-rgb), 0.15);
}

.timeline-item.completed .timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}

/* ========== LOGIN PAGE ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #0f172a 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: loginBg 15s ease-in-out infinite alternate;
}

@keyframes loginBg {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(3deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1);
    width: 100%;
    max-width: 420px;
    padding: 44px 40px;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}

.login-logo .logo-icon i {
    font-size: 2rem;
    color: #fff;
}

.login-logo h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ========== NOTIFICATION DROPDOWN ========== */
.notification-dropdown {
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 0 !important;
}

.notification-dropdown .dropdown-header {
    padding: 14px 18px;
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.notification-dropdown .dropdown-item {
    white-space: normal;
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.notification-dropdown .dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.04);
}

.notification-dropdown .dropdown-item.unread {
    background: rgba(var(--primary-rgb), 0.03);
    border-left: 3px solid var(--primary);
}

.smaller {
    font-size: 0.75rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.83rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ========== PROGRESS TRACKER ========== */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
    padding: 0 10px;
}

.progress-tracker::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
    border-radius: 2px;
}

.progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.progress-step .step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px rgba(var(--primary-rgb), 0.15);
    animation: pulseStep 2s ease-in-out infinite;
}

@keyframes pulseStep {
    0%, 100% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 6px rgba(var(--primary-rgb), 0.15); }
    50% { box-shadow: 0 0 0 2px var(--primary), 0 0 0 10px rgba(var(--primary-rgb), 0.08); }
}

.progress-step.completed .step-icon {
    background: var(--success);
    color: #fff;
    box-shadow: 0 0 0 2px var(--success);
}

.progress-step .step-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 400;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: var(--success);
    font-weight: 600;
}

/* ========== TABS ========== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 18px;
    transition: all 0.2s;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: rgba(var(--primary-rgb), 0.3);
    background: transparent;
}

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

/* ========== LIST GROUP ========== */
.list-group-item {
    border-color: #f3f4f6;
    transition: background 0.15s;
    padding: 14px 18px;
}

.list-group-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.list-group-item.list-group-item-action:hover {
    background: rgba(var(--primary-rgb), 0.10);
}

.list-group-item.list-group-item-action:active {
    background: rgba(var(--primary-rgb), 0.16);
}

/* Equipment search dropdown */
#equipmentDropdown {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

#equipmentDropdown .list-group-item {
    background: #fff;
}

#equipmentDropdown .list-group-item:hover {
    background: #f0f4ff;
}

/* ========== PRINT STYLES ========== */
@media print {
    .sidebar, .top-navbar, .no-print, .sidebar-overlay {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .content-wrapper {
        padding: 0 !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========== SIDEBAR OVERLAY (MOBILE) ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
        box-shadow: none;
    }
    .sidebar.show {
        margin-left: 0;
        box-shadow: 8px 0 30px rgba(0,0,0,0.3);
    }
    .main-content {
        margin-left: 0 !important;
    }
    .content-wrapper {
        padding: 16px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-header h4 {
        font-size: 1.15rem;
    }
    .top-navbar {
        padding: 0 12px;
    }
    .stat-card .stat-value {
        font-size: 1.6rem;
    }
    .stat-card .stat-label {
        font-size: 0.76rem;
    }
    .progress-step .step-label {
        font-size: 0.65rem;
    }
    .progress-step .step-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .notification-dropdown {
        width: 300px !important;
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: 12px;
    }
    .card-body {
        padding: 16px;
    }
    .card-header {
        padding: 14px 16px;
    }
    .table thead th,
    .table tbody td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}

/* ========== REPORT PRINT ========== */
.report-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
}

.report-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.signature-line {
    text-align: center;
    padding-top: 60px;
}

.signature-line .line {
    display: inline-block;
    width: 200px;
    border-bottom: 1px dotted #000;
    margin-bottom: 4px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.92rem;
}

/* ========== MODAL ========== */
.modal-header {
    background: #f9fafb;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 22px;
}

.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.modal-body {
    padding: 22px;
}

/* ========== MISC ========== */
.border-primary {
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}

.border-success {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.bg-light {
    background-color: #f9fafb !important;
}

code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary);
}

hr {
    border-color: var(--border-color);
    opacity: 0.8;
}

/* Selection filter tabs */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
}

/* Smooth animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown menus */
.dropdown-menu {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 6px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 0.88rem;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.dropdown-divider {
    margin: 4px 0;
    border-color: #f3f4f6;
}
