/* Custom styles for police station management system */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

.timeline {
    max-height: 300px;
    overflow-y: auto;
}

.timeline hr:last-child {
    display: none;
}

.stat-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.dashboard-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive font sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    .navbar-brand {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

/* Alert animations */
.alert {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ===== GLOBAL STYLES ===== */
:root {
    --primary-dark: #1a1a2e;
    --primary-mid: #16213e;
    --primary-light: #0f3460;
    --accent-gold: #f9ca24;
    --text-dark: #2d3436;
    --text-light: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: var(--text-dark);
    min-height: 100vh;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--accent-gold);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.nav-link i {
    margin-right: 6px;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #b8e2e8);
    color: #0c5460;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px !important;
    }
    
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .no-print,
    .quick-action-btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .dashboard-header {
        background: white !important;
        color: black !important;
        padding: 20px !important;
    }
    
    .dashboard-header h1 {
        color: black !important;
    }
    
    .stat-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}



/* ===== GLOBAL STYLES ===== */
:root {
    --primary-dark: #1a1a2e;
    --primary-mid: #16213e;
    --primary-light: #0f3460;
    --accent-gold: #f9ca24;
    --text-dark: #2d3436;
    --text-light: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: var(--text-dark);
    min-height: 100vh;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.navbar {
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--accent-gold);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.nav-link i {
    margin-right: 6px;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #b8e2e8);
    color: #0c5460;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px !important;
    }
    
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    .no-print,
    .quick-action-btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .dashboard-header {
        background: white !important;
        color: black !important;
        padding: 20px !important;
    }
    
    .dashboard-header h1 {
        color: black !important;
    }
    
    .stat-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}



/* ===== DASHBOARD SPECIFIC STYLES ===== */
    .dashboard-wrapper {
        padding: 20px 0;
    }
    
    /* Header Section */
    .dashboard-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 20px;
        padding: 30px 35px;
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(15, 52, 96, 0.2);
    }
    
    .dashboard-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
        border-radius: 50%;
    }
    
    .dashboard-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
        border-radius: 50%;
    }
    
    .dashboard-header h1 {
        color: white;
        font-weight: 700;
        font-size: 2rem;
        margin-bottom: 5px;
        position: relative;
        z-index: 1;
    }
    
    .dashboard-header p {
        color: rgba(255,255,255,0.7);
        font-size: 1rem;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }
    
    .dashboard-header .badge-admin {
        background: rgba(255,255,255,0.15);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.1);
        position: relative;
        z-index: 1;
    }
    
    .header-date {
        color: rgba(255,255,255,0.6);
        font-size: 0.9rem;
        position: relative;
        z-index: 1;
    }
    
    /* Stats Cards */
    .stat-card {
        border: none;
        border-radius: 16px;
        padding: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
        position: relative;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    
    .stat-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    .stat-card .card-body {
        padding: 25px 30px;
        position: relative;
        z-index: 1;
    }
    
    .stat-card .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: white;
        transition: all 0.3s ease;
    }
    
    .stat-card:hover .stat-icon {
        transform: scale(1.1) rotate(-5deg);
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 2px;
        line-height: 1;
    }
    
    .stat-card .stat-label {
        font-size: 0.85rem;
        font-weight: 500;
        opacity: 0.9;
        margin-bottom: 0;
    }
    
    .stat-card .stat-trend {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 3px 12px;
        border-radius: 20px;
        display: inline-block;
        margin-top: 5px;
    }
    
    /* Stat Card Colors */
    .stat-total {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }
    
    .stat-pending {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
    }
    
    .stat-trial {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
    }
    
    .stat-convicted {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        color: white;
    }
    
    /* Section Cards */
    .section-card {
        border: none;
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        transition: all 0.3s ease;
        overflow: hidden;
        height: 100%;
    }
    
    .section-card:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }
    
    .section-card .card-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
        color: white;
        border: none;
        padding: 18px 25px;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .section-card .card-header .badge-count {
        background: rgba(255,255,255,0.15);
        color: white;
        border-radius: 20px;
        padding: 2px 12px;
        font-size: 0.75rem;
    }
    
    .section-card .card-body {
        padding: 20px;
        max-height: 350px;
        overflow-y: auto;
    }
    
    /* Custom Scrollbar for cards */
    .section-card .card-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .section-card .card-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .section-card .card-body::-webkit-scrollbar-thumb {
        background: #0f3460;
        border-radius: 10px;
    }
    
    /* List Items */
    .list-item-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-decoration: none;
        color: inherit;
        border: 1px solid transparent;
        margin-bottom: 6px;
    }
    
    .list-item-link:hover {
        background: #f8f9fa;
        border-color: #e9ecef;
        transform: translateX(5px);
        text-decoration: none;
        color: inherit;
    }
    
    .list-item-link .item-info {
        flex: 1;
    }
    
    .list-item-link .item-name {
        font-weight: 600;
        color: #1a1a2e;
        font-size: 0.95rem;
    }
    
    .list-item-link .item-meta {
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    .list-item-link .item-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 600;
    }
    
    /* Quick Action Buttons */
    .quick-action-btn {
        border: none;
        border-radius: 12px;
        padding: 18px;
        font-weight: 600;
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 8px;
    }
    
    .quick-action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        color: white;
    }
    
    .quick-action-btn:active {
        transform: translateY(0);
    }
    
    .quick-action-btn .btn-label {
        font-size: 0.85rem;
    }
    
    .btn-action-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .btn-action-info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }
    
    .btn-action-success {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        color: #1a1a2e;
    }
    
    .btn-action-success:hover {
        color: #1a1a2e;
    }
    
    .btn-action-secondary {
        background: linear-gradient(135deg, #a8a8a8 0%, #6c757d 100%);
    }
    
    /* Incident Severity Colors */
    .severity-critical {
        background: #dc3545;
        color: white;
    }
    
    .severity-high {
        background: #fd7e14;
        color: white;
    }
    
    .severity-medium {
        background: #ffc107;
        color: #1a1a2e;
    }
    
    .severity-low {
        background: #28a745;
        color: white;
    }
    
    /* Status Badge */
    .status-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .status-pending {
        background: #ffc107;
        color: #1a1a2e;
    }
    
    .status-trial {
        background: #17a2b8;
        color: white;
    }
    
    .status-convicted {
        background: #28a745;
        color: white;
    }
    
    .status-acquitted {
        background: #6c757d;
        color: white;
    }
    
    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 30px 20px;
        color: #6c757d;
    }
    
    .empty-state i {
        font-size: 3rem;
        opacity: 0.3;
        margin-bottom: 15px;
        display: block;
    }
    
    .empty-state p {
        margin-bottom: 0;
        font-size: 0.9rem;
    }
    
    /* Animated pulse for pending visits */
    .pulse-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #dc3545;
        margin-right: 8px;
        animation: pulse-dot 2s infinite;
    }
    
    @keyframes pulse-dot {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.5);
            opacity: 0.5;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* Floating animation for stats */
    @keyframes float {
        0% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
        100% {
            transform: translateY(0px);
        }
    }
    
    .stat-card:nth-child(1) { animation-delay: 0s; }
    .stat-card:nth-child(2) { animation-delay: 0.1s; }
    .stat-card:nth-child(3) { animation-delay: 0.2s; }
    .stat-card:nth-child(4) { animation-delay: 0.3s; }
    
    /* Responsive */
    @media (max-width: 768px) {
        .dashboard-header {
            padding: 20px;
        }
        
        .dashboard-header h1 {
            font-size: 1.5rem;
        }
        
        .stat-card .stat-number {
            font-size: 2rem;
        }
        
        .stat-card .card-body {
            padding: 20px;
        }
        
        .quick-action-btn {
            padding: 15px;
            font-size: 0.9rem;
        }
        
        .quick-action-btn i {
            font-size: 1.2rem;
        }
    }
    
    @media (max-width: 576px) {
        .stat-card .stat-number {
            font-size: 1.5rem;
        }
        
        .stat-card .stat-icon {
            width: 45px;
            height: 45px;
            font-size: 20px;
        }
        
        .section-card .card-body {
            max-height: 250px;
        }
    }
    
    /* Scroll to top button */
    .scroll-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1a1a2e, #0f3460);
        color: white;
        border: none;
        font-size: 20px;
        box-shadow: 0 5px 20px rgba(15, 52, 96, 0.3);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
    }
    
    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .scroll-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(15, 52, 96, 0.4);
        color: white;
    }





/* ===== QUICK ACTIONS SECTION ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-radius: 14px;
    border: none;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    gap: 14px;
    min-height: 70px;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.quick-action-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.quick-action-btn:active {
    transform: translateY(0) scale(0.98);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover .quick-action-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255,255,255,0.3);
}

.quick-action-content {
    flex: 1;
    min-width: 0;
}

.quick-action-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.quick-action-desc {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.quick-action-arrow {
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-action-btn:hover .quick-action-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Button Colors */
.btn-action-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-action-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-action-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.btn-action-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-action-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Quick Links Footer */
.quick-links-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.02);
    gap: 4px;
}

.quick-link-item:hover {
    background: rgba(15, 52, 96, 0.06);
    color: #0f3460;
    text-decoration: none;
    transform: translateY(-2px);
}

.quick-link-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.quick-link-item span {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-btn {
        padding: 12px 16px;
        min-height: 60px;
    }
    
    .quick-action-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .quick-action-title {
        font-size: 0.85rem;
    }
    
    .quick-links-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .quick-link-item {
        padding: 8px 6px;
    }
}

@media (max-width: 400px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}



/* ===== CRISPY FORMS OVERRIDES ===== */
.control-group {
    margin-bottom: 15px;
}

.controls .help-block {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

.controls .errorlist {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    color: #dc3545;
    font-size: 0.8rem;
}

.controls .errorlist li {
    margin-bottom: 2px;
}

.asteriskField {
    color: #dc3545;
    margin-left: 3px;
}

/* Form layout for crispy forms */
.form-horizontal .control-group {
    margin-bottom: 20px;
}

.form-horizontal .controls {
    padding-top: 5px;
}

/* File input styling for crispy */
.file-upload input[type="file"] {
    padding: 10px;
    border: 2px dashed #e1e8ed;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
}

.file-upload input[type="file"]:hover {
    border-color: #0f3460;
    background: #f8f9fa;
}


.form-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .form-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 16px 16px 0 0;
        padding: 25px 30px;
        color: white;
    }
    
    .form-header h3 {
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .form-header p {
        opacity: 0.8;
        margin-bottom: 0;
        font-size: 0.95rem;
    }
    
    .form-body {
        background: white;
        border-radius: 0 0 16px 16px;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    /* ===== FORM SECTIONS ===== */
    .form-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px 25px;
        margin-bottom: 25px;
        border-left: 4px solid #0f3460;
        transition: all 0.3s ease;
    }
    
    .form-section:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }
    
    .form-section-title {
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 20px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .form-section-title i {
        color: #0f3460;
        font-size: 1.3rem;
    }
    
    .form-section-title .badge-section {
        background: #0f3460;
        color: white;
        font-size: 0.7rem;
        padding: 2px 10px;
        border-radius: 20px;
        margin-left: auto;
    }
    
    /* ===== FORM FIELDS ===== */
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-weight: 600;
        color: #2d3436;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-group label .required-star {
        color: #dc3545;
        margin-left: 3px;
    }
    
    .form-control, .form-select {
        border-radius: 10px;
        border: 2px solid #e1e8ed;
        padding: 10px 15px;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: #0f3460;
        box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.15);
    }
    
    .form-control.is-invalid, .form-select.is-invalid {
        border-color: #dc3545;
    }
    
    .form-control.is-valid, .form-select.is-valid {
        border-color: #28a745;
    }
    
    .form-text {
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 4px;
    }
    
    .invalid-feedback {
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    /* ===== FILE INPUT STYLING ===== */
    .file-upload-wrapper {
        position: relative;
    }
    
    .file-upload-wrapper input[type="file"] {
        padding: 8px;
        border: 2px dashed #e1e8ed;
        border-radius: 10px;
        width: 100%;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .file-upload-wrapper input[type="file"]:hover {
        border-color: #0f3460;
        background: #f8f9fa;
    }
    
    .file-upload-preview {
        margin-top: 10px;
        display: none;
    }
    
    .file-upload-preview img {
        max-width: 150px;
        max-height: 150px;
        border-radius: 10px;
        border: 2px solid #e1e8ed;
        padding: 5px;
    }
    
    /* ===== FORM ACTIONS ===== */
    .form-actions {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }
    
    .form-actions .btn {
        padding: 10px 30px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 120px;
    }
    
    .form-actions .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .btn-save {
        background: linear-gradient(135deg, #1a1a2e, #0f3460);
        color: white;
        border: none;
    }
    
    .btn-save:hover {
        background: linear-gradient(135deg, #2d2d44, #1a4a7a);
        color: white;
    }
    
    .btn-cancel {
        background: #6c757d;
        color: white;
        border: none;
    }
    
    .btn-cancel:hover {
        background: #5a6268;
        color: white;
    }
    
    /* ===== HELP TIPS ===== */
    .help-tip {
        display: inline-block;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #0f3460;
        color: white;
        text-align: center;
        line-height: 18px;
        font-size: 12px;
        font-weight: 700;
        margin-left: 6px;
        cursor: help;
        transition: all 0.3s ease;
    }
    
    .help-tip:hover {
        transform: scale(1.1);
        background: #1a1a2e;
    }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .form-body {
            padding: 20px;
        }
        
        .form-section {
            padding: 15px;
        }
        
        .form-actions {
            flex-direction: column;
        }
        
        .form-actions .btn {
            width: 100%;
        }
        
        .form-header {
            padding: 20px;
        }
        
        .form-header h3 {
            font-size: 1.3rem;
        }
    }
    
    @media (max-width: 576px) {
        .form-body {
            padding: 15px;
        }
        
        .form-section {
            padding: 12px;
        }
        
        .form-section-title {
            font-size: 1rem;
        }
    }
    
    /* ===== ANIMATIONS ===== */
    .form-section {
        animation: fadeInUp 0.5s ease-out;
    }
    
    .form-section:nth-child(2) { animation-delay: 0.1s; }
    .form-section:nth-child(3) { animation-delay: 0.2s; }
    .form-section:nth-child(4) { animation-delay: 0.3s; }
    .form-section:nth-child(5) { animation-delay: 0.4s; }
    .form-section:nth-child(6) { animation-delay: 0.5s; }
    .form-section:nth-child(7) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ===== LOADING SPINNER ===== */
    .spinner-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }
    
    .spinner-overlay.active {
        display: flex;
    }
    
    .spinner-box {
        background: white;
        padding: 40px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    
    .spinner-box .spinner-border {
        width: 4rem;
        height: 4rem;
        color: #0f3460;
    }
    
    .spinner-box p {
        margin-top: 15px;
        color: #2d3436;
        font-weight: 500;
    }



 .form-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .form-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 16px 16px 0 0;
        padding: 25px 30px;
        color: white;
    }
    
    .form-header h3 {
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .form-header p {
        opacity: 0.8;
        margin-bottom: 0;
        font-size: 0.95rem;
    }
    
    .form-body {
        background: white;
        border-radius: 0 0 16px 16px;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    /* ===== FORM SECTIONS ===== */
    .form-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px 25px;
        margin-bottom: 25px;
        border-left: 4px solid #0f3460;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .form-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, rgba(15, 52, 96, 0.03) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
    
    .form-section:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        border-left-color: #667eea;
    }
    
    .form-section-title {
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 20px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        z-index: 1;
    }
    
    .form-section-title i {
        color: #0f3460;
        font-size: 1.3rem;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 52, 96, 0.1);
        border-radius: 8px;
    }
    
    .form-section-title .badge-section {
        background: #0f3460;
        color: white;
        font-size: 0.65rem;
        padding: 3px 12px;
        border-radius: 20px;
        margin-left: auto;
        font-weight: 500;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    
    .badge-section.required {
        background: #dc3545;
    }
    
    .badge-section.optional {
        background: #6c757d;
    }
    
    /* ===== ENHANCED FORM FIELDS ===== */
    .form-group {
        margin-bottom: 20px;
        position: relative;
    }
    
    .form-group label {
        font-weight: 600;
        color: #2d3436;
        font-size: 0.85rem;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
    }
    
    .form-group label .required-star {
        color: #dc3545;
        font-size: 1.1rem;
    }
    
    .form-group label .field-icon {
        color: #0f3460;
        font-size: 0.9rem;
        opacity: 0.7;
    }
    
    /* Input Wrapper for icon positioning */
    .input-wrapper {
        position: relative;
    }
    
    .input-wrapper .input-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        font-size: 1rem;
        transition: all 0.3s ease;
        z-index: 2;
    }
    
    .input-wrapper .input-icon.textarea-icon {
        top: 18px;
        transform: none;
    }
    
    .input-wrapper .input-icon.active {
        color: #0f3460;
    }
    
    /* Form Controls with Enhanced Styling */
    .form-control, .form-select {
        border-radius: 10px;
        border: 2px solid #e1e8ed;
        padding: 10px 15px;
        padding-left: 42px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.95rem;
        background: white;
        height: auto;
        min-height: 45px;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: #0f3460;
        box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.1);
        transform: translateY(-1px);
    }
    
    .form-control:hover, .form-select:hover {
        border-color: #667eea;
        background: #fafbfc;
    }
    
    .form-control.is-invalid, .form-select.is-invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }
    
    .form-control.is-valid, .form-select.is-valid {
        border-color: #28a745;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }
    
    /* Textarea specific */
    textarea.form-control {
        padding-left: 42px;
        min-height: 100px;
        resize: vertical;
    }
    
    textarea.form-control:focus {
        min-height: 120px;
    }
    
    /* Select specific */
    .form-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px 12px;
        padding-right: 40px;
    }
    
    /* Date inputs */
    input[type="date"].form-control {
        padding-left: 42px;
    }
    
    input[type="date"].form-control::-webkit-calendar-picker-indicator {
        opacity: 0.6;
        padding: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    input[type="date"].form-control::-webkit-calendar-picker-indicator:hover {
        opacity: 1;
        transform: scale(1.1);
    }
    
    /* File input */
    .file-upload-wrapper {
        position: relative;
    }
    
    .file-upload-wrapper input[type="file"] {
        padding: 12px;
        border: 2px dashed #e1e8ed;
        border-radius: 10px;
        width: 100%;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fafbfc;
        min-height: 50px;
    }
    
    .file-upload-wrapper input[type="file"]:hover {
        border-color: #0f3460;
        background: #f0f4f8;
    }
    
    .file-upload-wrapper input[type="file"]::-webkit-file-upload-button {
        background: linear-gradient(135deg, #1a1a2e, #0f3460);
        color: white;
        border: none;
        padding: 8px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.3s ease;
        margin-right: 12px;
    }
    
    .file-upload-wrapper input[type="file"]::-webkit-file-upload-button:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(15, 52, 96, 0.3);
    }
    
    .file-upload-preview {
        margin-top: 12px;
        display: none;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 10px;
        border: 1px solid #e1e8ed;
    }
    
    .file-upload-preview img {
        max-width: 120px;
        max-height: 120px;
        border-radius: 10px;
        border: 2px solid #e1e8ed;
        padding: 4px;
        background: white;
    }
    
    /* Checkbox styling */
    .form-check {
        padding-left: 35px;
        margin-top: 8px;
    }
    
    .form-check-input {
        width: 22px;
        height: 22px;
        margin-left: -35px;
        margin-top: 2px;
        border: 2px solid #e1e8ed;
        border-radius: 6px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .form-check-input:checked {
        background-color: #0f3460;
        border-color: #0f3460;
    }
    
    .form-check-input:focus {
        box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.15);
        border-color: #0f3460;
    }
    
    .form-check-label {
        font-weight: 500;
        color: #2d3436;
        cursor: pointer;
    }
    
    /* Help text */
    .form-text {
        font-size: 0.78rem;
        color: #6c757d;
        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .form-text i {
        font-size: 0.8rem;
    }
    
    /* Error messages */
    .invalid-feedback {
        font-size: 0.8rem;
        margin-top: 5px;
        color: #dc3545;
        display: flex;
        align-items: center;
        gap: 5px;
        animation: shakeError 0.4s ease-out;
    }
    
    @keyframes shakeError {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-8px); }
        75% { transform: translateX(8px); }
    }
    
    /* Help tip */
    .help-tip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #0f3460;
        color: white;
        font-size: 11px;
        font-weight: 700;
        margin-left: 6px;
        cursor: help;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    
    .help-tip:hover {
        transform: scale(1.15);
        background: #1a1a2e;
        box-shadow: 0 2px 10px rgba(15, 52, 96, 0.3);
    }
    
    /* Field focus effect */
    .input-wrapper.focused .input-icon {
        color: #0f3460;
        transform: translateY(-50%) scale(1.1);
    }
    
    /* Floating label effect */
    .form-group.floating-label label {
        position: absolute;
        top: -10px;
        left: 14px;
        background: white;
        padding: 0 8px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #0f3460;
        z-index: 3;
        border-radius: 4px;
    }
    
    /* ===== FORM ACTIONS ===== */
    .form-actions {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }
    
    .form-actions .btn {
        padding: 12px 30px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 130px;
        position: relative;
        overflow: hidden;
    }
    
    .form-actions .btn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
        transform: scale(0);
        transition: transform 0.5s ease;
    }
    
    .form-actions .btn:hover::after {
        transform: scale(1);
    }
    
    .form-actions .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .form-actions .btn:active {
        transform: translateY(0);
    }
    
    .btn-save {
        background: linear-gradient(135deg, #1a1a2e, #0f3460);
        color: white;
        border: none;
    }
    
    .btn-save:hover {
        background: linear-gradient(135deg, #2d2d44, #1a4a7a);
        color: white;
    }
    
    .btn-cancel {
        background: #6c757d;
        color: white;
        border: none;
    }
    
    .btn-cancel:hover {
        background: #5a6268;
        color: white;
    }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .form-body {
            padding: 20px;
        }
        
        .form-section {
            padding: 15px;
        }
        
        .form-actions {
            flex-direction: column;
        }
        
        .form-actions .btn {
            width: 100%;
        }
        
        .form-header {
            padding: 20px;
        }
        
        .form-header h3 {
            font-size: 1.3rem;
        }
        
        .form-control, .form-select {
            padding-left: 38px;
            font-size: 0.9rem;
        }
        
        textarea.form-control {
            padding-left: 38px;
        }
        
        .input-wrapper .input-icon {
            left: 12px;
            font-size: 0.9rem;
        }
    }
    
    @media (max-width: 576px) {
        .form-body {
            padding: 15px;
        }
        
        .form-section {
            padding: 12px;
        }
        
        .form-section-title {
            font-size: 1rem;
        }
        
        .form-section-title i {
            width: 25px;
            height: 25px;
            font-size: 1rem;
        }
        
        .form-control, .form-select {
            padding: 8px 12px;
            padding-left: 34px;
            font-size: 0.85rem;
            min-height: 40px;
        }
        
        textarea.form-control {
            padding-left: 34px;
            min-height: 80px;
        }
        
        .input-wrapper .input-icon {
            left: 10px;
            font-size: 0.8rem;
        }
    }
    
    /* ===== ANIMATIONS ===== */
    .form-section {
        animation: fadeInUp 0.5s ease-out;
    }
    
    .form-section:nth-child(2) { animation-delay: 0.1s; }
    .form-section:nth-child(3) { animation-delay: 0.2s; }
    .form-section:nth-child(4) { animation-delay: 0.3s; }
    .form-section:nth-child(5) { animation-delay: 0.4s; }
    .form-section:nth-child(6) { animation-delay: 0.5s; }
    .form-section:nth-child(7) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ===== LOADING SPINNER ===== */
    .spinner-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(4px);
    }
    
    .spinner-overlay.active {
        display: flex;
    }
    
    .spinner-box {
        background: white;
        padding: 40px 50px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        animation: scaleIn 0.3s ease-out;
    }
    
    @keyframes scaleIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    .spinner-box .spinner-border {
        width: 4rem;
        height: 4rem;
        color: #0f3460;
    }
    
    .spinner-box p {
        margin-top: 15px;
        color: #2d3436;
        font-weight: 500;
    }



  .form-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .form-header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        border-radius: 16px 16px 0 0;
        padding: 25px 30px;
        color: white;
    }
    
    .form-header h3 {
        font-weight: 700;
        margin-bottom: 5px;
    }
    
    .form-header p {
        opacity: 0.8;
        margin-bottom: 0;
        font-size: 0.95rem;
    }
    
    .form-body {
        background: white;
        border-radius: 0 0 16px 16px;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
    
    /* ===== FORM SECTIONS ===== */
    .form-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px 25px;
        margin-bottom: 25px;
        border-left: 4px solid #0f3460;
        transition: all 0.3s ease;
    }
    
    .form-section:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }
    
    .form-section-title {
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 20px;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .form-section-title i {
        color: #0f3460;
        font-size: 1.3rem;
    }
    
    .form-section-title .badge-section {
        background: #0f3460;
        color: white;
        font-size: 0.7rem;
        padding: 2px 10px;
        border-radius: 20px;
        margin-left: auto;
    }
    
    /* ===== FORM FIELDS ===== */
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-weight: 600;
        color: #2d3436;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-group label .required-star {
        color: #dc3545;
        margin-left: 3px;
    }
    
    .form-control, .form-select {
        border-radius: 10px;
        border: 2px solid #e1e8ed;
        padding: 10px 15px;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: #0f3460;
        box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.15);
    }
    
    .form-control.is-invalid, .form-select.is-invalid {
        border-color: #dc3545;
    }
    
    .form-control.is-valid, .form-select.is-valid {
        border-color: #28a745;
    }
    
    .form-text {
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 4px;
    }
    
    .invalid-feedback {
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    /* ===== FILE INPUT STYLING ===== */
    .file-upload-wrapper {
        position: relative;
    }
    
    .file-upload-wrapper input[type="file"] {
        padding: 8px;
        border: 2px dashed #e1e8ed;
        border-radius: 10px;
        width: 100%;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .file-upload-wrapper input[type="file"]:hover {
        border-color: #0f3460;
        background: #f8f9fa;
    }
    
    .file-upload-preview {
        margin-top: 10px;
        display: none;
    }
    
    .file-upload-preview img {
        max-width: 150px;
        max-height: 150px;
        border-radius: 10px;
        border: 2px solid #e1e8ed;
        padding: 5px;
    }
    
    /* ===== FORM ACTIONS ===== */
    .form-actions {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }
    
    .form-actions .btn {
        padding: 10px 30px;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        min-width: 120px;
    }
    
    .form-actions .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .btn-save {
        background: linear-gradient(135deg, #1a1a2e, #0f3460);
        color: white;
        border: none;
    }
    
    .btn-save:hover {
        background: linear-gradient(135deg, #2d2d44, #1a4a7a);
        color: white;
    }
    
    .btn-cancel {
        background: #6c757d;
        color: white;
        border: none;
    }
    
    .btn-cancel:hover {
        background: #5a6268;
        color: white;
    }
    
    /* ===== HELP TIPS ===== */
    .help-tip {
        display: inline-block;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #0f3460;
        color: white;
        text-align: center;
        line-height: 18px;
        font-size: 12px;
        font-weight: 700;
        margin-left: 6px;
        cursor: help;
        transition: all 0.3s ease;
    }
    
    .help-tip:hover {
        transform: scale(1.1);
        background: #1a1a2e;
    }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
        .form-body {
            padding: 20px;
        }
        
        .form-section {
            padding: 15px;
        }
        
        .form-actions {
            flex-direction: column;
        }
        
        .form-actions .btn {
            width: 100%;
        }
        
        .form-header {
            padding: 20px;
        }
        
        .form-header h3 {
            font-size: 1.3rem;
        }
    }
    
    @media (max-width: 576px) {
        .form-body {
            padding: 15px;
        }
        
        .form-section {
            padding: 12px;
        }
        
        .form-section-title {
            font-size: 1rem;
        }
    }
    
    /* ===== ANIMATIONS ===== */
    .form-section {
        animation: fadeInUp 0.5s ease-out;
    }
    
    .form-section:nth-child(2) { animation-delay: 0.1s; }
    .form-section:nth-child(3) { animation-delay: 0.2s; }
    .form-section:nth-child(4) { animation-delay: 0.3s; }
    .form-section:nth-child(5) { animation-delay: 0.4s; }
    .form-section:nth-child(6) { animation-delay: 0.5s; }
    .form-section:nth-child(7) { animation-delay: 0.6s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ===== LOADING SPINNER ===== */
    .spinner-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }
    
    .spinner-overlay.active {
        display: flex;
    }
    
    .spinner-box {
        background: white;
        padding: 40px;
        border-radius: 20px;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    
    .spinner-box .spinner-border {
        width: 4rem;
        height: 4rem;
        color: #0f3460;
    }
    
    .spinner-box p {
        margin-top: 15px;
        color: #2d3436;
        font-weight: 500;
    }