/* <style> */
    /* Sneat-inspired Header Styling */
    :root {
        --header-bg: #fff;
        --header-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
        --header-text: #5e5873;
        --header-hover: #7367f0;
        --sidebar-width: 300px;
        --dropdown-bg: #fff;
        --dropdown-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        --dropdown-border: rgba(0, 0, 0, 0.1);
    }

    .main-header {
        background: var(--header-bg);
        padding: 0.75rem 1.5rem;
        box-shadow: var(--header-shadow);
        margin-top: 3%;
        margin-left: 4%;
        margin-right: 4%;
        margin-bottom: 0px;
        
        border-radius: 0.75rem; /* 12px - moderate rounding */
        /* position: fixed; */
        top: 0;
        right: 0;
        left: var(--sidebar-width);
        z-index: 999;
        transition: all 0.3s ease;
    }

    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 3rem;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .header-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--header-text);
        margin: 0;
    }

    .breadcrumb {
        font-size: 0.875rem;
        color: #a8aaae;
        margin: 0;
        padding: 0;
        background: none;
    }

    .breadcrumb-item {
        display: inline-flex;
        align-items: center;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "/";
        margin: 0 0.5rem;
        color: #a8aaae;
    }

    .breadcrumb-item.active {
        color: var(--header-text);
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    /* Notification Bell */
    .notification-bell {
        position: relative;
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.2s ease;
        color: var(--header-text);
    }

    .notification-bell:hover {
        background: #f8f9fa;
        color: var(--header-hover);
    }

    .notification-badge {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        background: #ff4757;
        color: white;
        border-radius: 50%;
        width: 0.75rem;
        height: 0.75rem;
        font-size: 0.625rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    /* Profile Dropdown */
    .profile-dropdown {
        position: relative;
    }

    .profile-trigger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .profile-trigger:hover {
        background: #f8f9fa;
    }

    .profile-avatar {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 0.875rem;
    }

    .profile-info {
        display: flex;
        flex-direction: column;
        text-align: left;
        margin-right: 0.25rem;
    }

    .profile-name {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--header-text);
        line-height: 1.2;
    }

    .profile-role {
        font-size: 0.75rem;
        color: #a8aaae;
        line-height: 1.2;
    }

    .dropdown-arrow {
        font-size: 0.75rem;
        color: #a8aaae;
        transition: transform 0.2s ease;
    }

    .profile-dropdown.show .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Dropdown Menu */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--dropdown-bg);
        border: 1px solid var(--dropdown-border);
        border-radius: 0.5rem;
        box-shadow: var(--dropdown-shadow);
        min-width: 200px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
        z-index: 1000;
    }

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-header {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--dropdown-border);
        margin-bottom: 0.5rem;
    }

    .dropdown-user-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .dropdown-avatar {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
    }

    .dropdown-user-details h6 {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--header-text);
    }

    .dropdown-user-details p {
        margin: 0;
        font-size: 0.75rem;
        color: #a8aaae;
    }

    .dropdown-item {
        display: flex;
        align-items: center;
        padding: 0.5rem 1rem;
        color: var(--header-text);
        text-decoration: none;
        transition: all 0.2s ease;
        font-size: 0.875rem;
    }

    .dropdown-item:hover {
        background: #f8f9fa;
        color: var(--header-hover);
        text-decoration: none;
    }

    .dropdown-item i {
        margin-right: 0.75rem;
        width: 1rem;
        text-align: center;
    }

    .dropdown-divider {
        height: 1px;
        background: var(--dropdown-border);
        margin: 0.5rem 0;
    }

    .dropdown-item.danger {
        color: #dc3545;
    }

    .dropdown-item.danger:hover {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .main-header {
            margin-left: 0;
            left: 0;
        }

        .header-title {
            font-size: 1.25rem;
        }

        .profile-info {
            display: none;
        }

        .breadcrumb {
            display: none;
        }
    }

    /* Menu Toggle for Mobile */
    .menu-toggle {
        display: none;
        background: none;
        border: none;
        color: var(--header-text);
        font-size: 1.25rem;
        padding: 0.5rem;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
    }

    .menu-toggle:hover {
        background: #f8f9fa;
        color: var(--header-hover);
    }

    @media (max-width: 768px) {
        .menu-toggle {
            display: block;
        }
    }
/* </style> */



/* <style> */
    .dashboard-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px;
    }

    .header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .header h1 {
        font-size: 2.5em;
        font-weight: 700;
        background: linear-gradient(45deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 10px;
    }

    .header p {
        color: #666;
        font-size: 1.1em;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 30px;
    }

    .stat-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
        margin-bottom: 20px;
    }

    .stat-new { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
    .stat-assigned { background: linear-gradient(45deg, #4ecdc4, #44a08d); }
    .stat-closed { background: linear-gradient(45deg, #45b7d1, #96c93d); }
    .stat-guidance { background: linear-gradient(45deg, #f9ca24, #f0932b); }
    .stat-investigation { background: linear-gradient(45deg, #eb4d4b, #6c5ce7); }
    .stat-total { background: linear-gradient(45deg, #a55eea, #26de81); }

    .stat-value {
        font-size: 2.5em;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }

    .stat-label {
        color: #666;
        font-size: 1.1em;
        font-weight: 500;
    }

    .charts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 30px;
        margin-bottom: 30px;
    }

    .chart-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .chart-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .chart-title {
        font-size: 1.4em;
        font-weight: 600;
        color: #333;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .chart-title i {
        color: #667eea;
    }

    .table-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
    }

    .table-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
    }

    .table-title {
        font-size: 1.5em;
        font-weight: 600;
        color: #333;
    }

    .export-btn {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .export-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .modern-table {
        width: 100%;
        border-collapse: collapse;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .modern-table thead {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
    }

    .modern-table th,
    .modern-table td {
        padding: 16px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .modern-table th {
        font-weight: 600;
        font-size: 0.95em;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .modern-table tbody tr {
        transition: all 0.3s ease;
    }

    .modern-table tbody tr:hover {
        background: rgba(102, 126, 234, 0.05);
        transform: scale(1.01);
    }

    .rule-link {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .rule-link:hover {
        color: #764ba2;
        text-decoration: underline;
    }

    .status-badge {
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .status-new {
        background: rgba(255, 107, 107, 0.1);
        color: #ff6b6b;
    }

    .status-assigned {
        background: rgba(78, 205, 196, 0.1);
        color: #4ecdc4;
    }

    .status-closed {
        background: rgba(150, 201, 61, 0.1);
        color: #96c93d;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1060;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
    }

    .modal-content {
        background: white;
        margin: 5% auto;
        padding: 30px;
        border-radius: 20px;
        width: 90%;
        max-width: 800px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: modalSlideIn 0.3s ease;
    }

    @keyframes modalSlideIn {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-bottom: 20px;
        border-bottom: 2px solid #eee;
    }

    .modal-title {
        font-size: 1.5em;
        font-weight: 600;
        color: #333;
    }

    .close-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
    }

    .close-btn:hover {
        color: #667eea;
    }

    .chart-container {
        position: relative;
        height: 350px;
        margin-top: 20px;
    }

    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @media (max-width: 768px) {
        .dashboard-container {
            padding: 10px;
        }
        
        .header h1 {
            font-size: 2em;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
        }
        
        .charts-grid {
            grid-template-columns: 1fr;
        }
        
        .table-container {
            padding: 20px;
            overflow-x: auto;
        }
    }
/* </style> */

/* <style> */
    /* Sneat-inspired Sidebar Styling */
    :root {
        --sidebar-bg: #ffffff;
        --sidebar-hover-bg: #383b53;
        --sidebar-text: #9fa2cf;
        --sidebar-active-text: #fff;
        --sidebar-active-bg: linear-gradient(72deg, #6366f1, #8b5cf6);
        --sidebar-header-bg: #ffffff;
        --sidebar-width: 320px;
        --sidebar-border: rgba(255, 255, 255, 0.08);
    }

    .sidebar {
        width: var(--sidebar-width);
        background: var(--sidebar-bg);
        color: var(--sidebar-text);
        flex-shrink: 0;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
        /* background:rgba(216, 71, 71, 0.1); */
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(17, 17, 17, 0.1);
        border-radius: 3px;
    }

    .sidebar-header {
        padding: 1.5rem 1rem;
        background: var(--sidebar-header-bg);
        border-bottom: 1px solid var(--sidebar-border);
        text-align: center;
    }

    .sidebar-header h5 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: rgba(163, 166, 207, 0.8);
        letter-spacing: 0.5px;
    }

    .sidebar-header .logo {
        width: 32px;
        height: 32px;
        background: var(--sidebar-active-bg);
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.5rem;
        color: white;
        font-weight: bold;
        font-size: 1.1rem;
    }

    .sidebar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        margin-bottom: 2px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1.5rem;
        color: var(--sidebar-text);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
        margin: 0 0.75rem;
        border-radius: 6px;
    }

    .nav-link:hover {
        background: var(--sidebar-hover-bg);
        color: var(--sidebar-active-text);
        transform: translateX(2px);
        text-decoration: none;
    }

    .nav-link.active {
        background: var(--sidebar-active-bg);
        color: var(--sidebar-active-text);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }

    .nav-link i {
        margin-right: 0.75rem;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    .nav-link .badge {
        margin-left: auto;
        background: rgba(255, 255, 255, 0.1);
        color: var(--sidebar-text);
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
    }

    .nav-link.active .badge {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    /* Section titles */
    .nav-section {
        margin-bottom: 1.5rem;
    }

    .nav-section-title {
        color: rgba(163, 166, 207, 0.6);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0 1.5rem;
        margin-bottom: 0.5rem;
    }

    /* Collapsible sections */
    .nav-collapse > .nav-link {
        position: relative;
    }

    .nav-collapse > .nav-link::after {
        content: '\F282';
        font-family: 'bootstrap-icons';
        position: absolute;
        right: 1rem;
        transition: transform 0.3s ease;
    }

    .nav-collapse.show > .nav-link::after {
        transform: rotate(180deg);
    }

    .nav-collapse .collapse .nav-link {
        padding-left: 3rem;
        font-size: 0.85rem;
        color: rgba(163, 166, 207, 0.8);
    }

    .nav-collapse .collapse .nav-link::before {
        content: '';
        position: absolute;
        left: 2.25rem;
        top: 50%;
        width: 4px;
        height: 4px;
        background: rgba(163, 166, 207, 0.4);
        border-radius: 50%;
        transform: translateY(-50%);
    }

    .nav-collapse .collapse .nav-link.active::before {
        background: white;
    }

    /* Special styling for logout */
    .nav-logout {
        border-top: 1px solid var(--sidebar-border);
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .nav-logout .nav-link {
        color: #ef4444;
    }

    .nav-logout .nav-link:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .sidebar {
            transform: translateX(-100%);
        }
        
        .sidebar.show {
            transform: translateX(0);
        }
    }
/* </style> */



/* <style> */
        .badge-outline-primary {
            background-color: transparent;
            border: 1px solid #007bff;
            color: #007bff;
        }
        .badge-outline-success {
            background-color: transparent;
            border: 1px solid #28a745;
            color: #28a745;
        }
        .table-hover tbody tr:hover {
            background-color: #f8f9fa;
        }
        .sticky-top {
            position: sticky;
            top: 0;
            z-index: 1020;
        }
        .card {
            border-radius: 10px;
        }
        .card-header {
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }
        .btn {
            border-radius: 6px;
        }
        .modal-content {
            border-radius: 10px;
        }
        .form-control {
            border-radius: 6px;
            height:calc(2.3em + .75rem + 2px);
        }
        .badge {
            font-size: 0.75em;
        }
        .form-check-label{
            padding-left: 50px;
        }
    /* </style> */



    /* <style> */
    :root {
        --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        --info-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
        --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(255, 255, 255, 0.2);
        --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.15);
        --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    /* Enhanced backdrop */
    .modal {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .modal-backdrop {
        background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(30, 30, 60, 0.6));
        backdrop-filter: blur(4px);
    }

    /* Modern modal container */
    .modal-dialog {
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }

    .modal.show .modal-dialog {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    /* Glassmorphism modal content */
    .modal-content {
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        box-shadow: var(--shadow-heavy);
        overflow: hidden;
        position: relative;
    }

    .modal-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-gradient);
        z-index: 1;
    }

    /* Gradient headers */
    .modal-header {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 1.5rem 2rem;
        position: relative;
        overflow: hidden;
    }

    .modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        transition: left 0.6s;
    }

    .modal-header:hover::before {
        left: 100%;
    }

    /* Enhanced modal titles */
    .modal-title {
        font-weight: 700;
        font-size: 1.4rem;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .modal-title i {
        font-size: 1.2rem;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: pulse 2s infinite;
    }

    /* Refined close button */
    .btn-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .btn-close::before {
        content: '×';
        font-size: 1.5rem;
        font-weight: 300;
        color: #666;
        transition: all 0.3s ease;
    }

    .btn-close:hover {
        background: rgba(239, 68, 68, 0.1);
        transform: rotate(90deg) scale(1.1);
    }

    .btn-close:hover::before {
        color: #ef4444;
    }

    /* Enhanced modal body */
    .modal-body {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.02);
        position: relative;
    }

    /* Form improvements */
    .form-group {
        margin-bottom: 1.5rem;
        position: relative;
    }

    .form-label {
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .form-label i {
        color: #6366f1;
        font-size: 0.9rem;
    }
    

    .form-control, .form-control-file {
        border: 2px solid rgba(156, 163, 175, 0.2);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        
    }

    .form-control:focus, .form-control-file:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        background: rgba(255, 255, 255, 0.9);
        outline: none;
    }

    textarea.form-control {
        resize: vertical;
        min-height: 100px;
        
    }



    /* Modern buttons */
    .modal-footer {
        padding: 1.5rem 2rem;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        gap: 1rem;
    }

    .btn {
        border-radius: 12px;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border: none;
        position: relative;
        overflow: hidden;
        text-transform: none;
        font-size: 0.95rem;
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s;
    }

    .btn:hover::before {
        left: 100%;
    }

    .btn-primary {
        background: var(--primary-gradient);
        color: white;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
    }

    .btn-info {
        background: var(--info-gradient);
        color: white;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    }

    .btn-info:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
    }

    .btn-secondary {
        background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(107, 114, 128, 0.2);
    }

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(107, 114, 128, 0.3);
    }

    /* Content containers */
    #model-table, #model-table-all, #model-table-kyc, #model-table-rules {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 12px;
        padding: 1.5rem;
        border: 1px solid rgba(0, 0, 0, 0.05);
        min-height: 100px;
        position: relative;
    }

    #model-table::before, #model-table-all::before, 
    #model-table-kyc::before, #model-table-rules::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--info-gradient);
        border-radius: 12px 12px 0 0;
    }

    /* Hidden inputs styling */
    input[type="hidden"] + .form-group {
        margin-top: 1rem;
    }

    /* File input enhancements */
    .form-control-file {
        position: relative;
        cursor: pointer;
    }

    .form-control-file:hover {
        border-color: #6366f1;
        background: rgba(99, 102, 241, 0.05);
    }

    /* Required field asterisk */
    .text-danger {
        color: #ef4444 !important;
        font-weight: 600;
    }

    /* Responsive improvements */
    @media (max-width: 768px) {
        .modal-dialog {
            margin: 1rem;
        }
        
        .modal-body, .modal-header, .modal-footer {
            padding: 1.5rem;
        }
        
        .modal-title {
            font-size: 1.2rem;
        }
    }

    /* Animation keyframes */
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }

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

    /* Content loading animation */
    .modal-body > div {
        animation: fadeInUp 0.6s ease-out;
    }

    /* Enhanced scrollbar for scrollable modals */
    .modal-dialog-scrollable .modal-body {
        scrollbar-width: thin;
        scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    }

    .modal-dialog-scrollable .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.3);
        border-radius: 3px;
    }

    .modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
        background: rgba(99, 102, 241, 0.5);
    }
/* </style>     */

/* --- Start of new_design.css --- */

/* ... (all your existing CSS from the top of the file) */

/* Sneat-inspired Header Styling */
:root {
    /* ... (existing :root variables) */
}

.main-header {
    /* ... (existing .main-header styles) */
    /* Adjust left position based on sidebar width for desktop */
    left: var(--sidebar-width); 
}

@media (max-width: 768px) {
    .main-header {
        left: 0; /* Full width on mobile */
    }
}

/* ... (rest of .main-header and other header styles) */

/* Menu Toggle for Mobile */
.menu-toggle {
display: none; /* Hidden by default */
background: none;
border: none;
color: var(--header-text);
font-size: 1.5rem; /* Larger icon */
padding: 0.5rem;
border-radius: 0.25rem;
transition: all 0.2s ease;
z-index: 1040; /* Ensure it's clickable */
}

.menu-toggle:hover {
background: #f8f9fa;
color: var(--header-hover);
}

@media (max-width: 768px) {
.menu-toggle {
    display: block; /* Visible on mobile */
}
}


/* ... (all your other existing CSS in the middle) */


/* Sneat-inspired Sidebar Styling */
:root {
/* ... (existing :root variables) */
}

.sidebar {
/* ... (existing .sidebar styles) */
}

.sidebar-header {
display: flex;
justify-content: space-between; /* Adjusted for close button */
align-items: center;
padding: 1.5rem 1rem;
background: var(--sidebar-header-bg);
border-bottom: 1px solid var(--sidebar-border);
/* Removed text-align: center; */
}

/* Sidebar Close Button */
.close-sidebar-btn {
display: none; /* Hidden by default */
background: none;
border: none;
color: var(--sidebar-text);
font-size: 2rem;
line-height: 1;
padding: 0 0.5rem;
cursor: pointer;
transition: color 0.2s ease;
}

.close-sidebar-btn:hover {
color: var(--sidebar-active-text);
}

/* ... (rest of sidebar styles) */


/* Responsive design */
@media (max-width: 768px) {
.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 2rem rgba(0,0,0,0.2); /* Add shadow when open */
}

.close-sidebar-btn {
    display: block; /* Show close button on mobile */
}

.profile-info {
    display: none; /* Hides user name/role next to avatar on mobile */
}
}
/* ... (all existing CSS at the top) ... */


/* Sneat-inspired Sidebar Styling */
:root {
    --sidebar-bg: #ffffff;
    --sidebar-hover-bg: #383b53;
    /* ... (rest of your root variables) ... */
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    /* --- IMPORTANT --- */
    /* Give the sidebar a high z-index to ensure it's on top */
    z-index: 1050; 
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out; /* Use transform for transitions */
}


/* ... (rest of sidebar styles) ... */


/* --- NEW STYLES FOR OVERLAY AND BODY --- */

/* Page Overlay for mobile menu */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1045; /* Below the sidebar but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* --- END OF NEW STYLES --- */


/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 2rem rgba(0,0,0,0.2);
    }
    
    /* On larger screens, push the page container */
    .page-container {
        padding-left: var(--sidebar-width);
        transition: padding-left 0.3s ease;
    }

    /* On smaller screens, the container takes full width */
    .page-container {
        padding-left: 0;
    }

    .close-sidebar-btn {
        display: block;
    }
    
    .profile-info {
        display: none;
    }
}

/* When sidebar is hidden on large screens (if you ever implement that) */
/* This is a good practice to have for future features */
.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

.sidebar-collapsed .page-container {
    padding-left: 0;
}

/* <style> */
        /* Custom styles for the file upload area */
        .file-drop-area {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            width: 100%;
            padding: 40px;
            border: 2px dashed #ccc;
            border-radius: 10px;
            background-color: #f8f9fa;
            color: #6c757d;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.2s, border-color 0.2s;
        }

        .file-drop-area:hover, .file-drop-area.drag-over {
            border-color: #007bff;
            background-color: #e9f5ff;
        }

        .file-drop-area i {
            font-size: 40px;
            margin-bottom: 15px;
        }

        .file-drop-area .file-input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }

        .file-info {
            margin-top: 20px;
            font-size: 1em;
            color: #333;
        }

        .progress-container {
            margin-top: 20px;
            display: none; /* Hidden by default */
        }

        .progress-bar {
            background-color: #28a745;
        }
    /* </style> */

    /* <style> */

    .modern-loading-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2rem;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
        border-radius: 16px;
        border: 1px solid rgba(99, 102, 241, 0.1);
        position: relative;
        overflow: hidden;
    }

    .modern-loading-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    .modern-loading-spinner {
        width: 48px;
        height: 48px;
        border: 3px solid rgba(99, 102, 241, 0.1);
        border-top: 3px solid #6366f1;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 1.5rem;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .loading-content {
        text-align: center;
    }

    .loading-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
    }

    .loading-subtitle {
        font-size: 0.9rem;
        color: #6b7280;
        margin: 0;
    }

    /* Transaction Details Wrapper */
    .transaction-details-wrapper, .all-transactions-wrapper {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 16px;
        overflow: hidden;
    }

    /* Section Headers */
    .transaction-header, .section-header {
        display: flex;
        align-items: center;
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        margin-bottom: 1rem;
    }

    .header-icon, .header-icon-large {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .header-icon-large {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .header-icon i, .header-icon-large i {
        color: white;
        font-size: 1.2rem;
    }

    .header-icon-large i {
        font-size: 1.4rem;
    }

    .header-content {
        flex: 1;
    }

    .section-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1f2937;
        margin: 0 0 0.25rem 0;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-subtitle {
        font-size: 0.9rem;
        color: #6b7280;
        margin: 0;
    }

    .transaction-stats {
        margin-top: 0.75rem;
    }

    .stat-badge {
        background: rgba(99, 102, 241, 0.1);
        color: #6366f1;
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* Enhanced Table Container */
    .modern-table-container {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .table-responsive {
        border-radius: 12px;
        overflow: hidden;
    }

    /* Enhanced Transaction Table */
    .enhanced-transaction-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
        background: white;
    }

    .enhanced-transaction-table thead {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
    }

    .enhanced-transaction-table thead th {
        padding: 1rem 0.75rem;
        font-weight: 600;
        text-align: left;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
        white-space: nowrap;
    }

    .enhanced-transaction-table thead th i {
        opacity: 0.8;
    }

    .enhanced-transaction-table tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .enhanced-transaction-table tbody tr:hover {
        background: rgba(99, 102, 241, 0.03);
        transform: scale(1.005);
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    }

    .enhanced-transaction-table tbody tr.highlighted-row {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
        border-left: 4px solid #f59e0b;
        position: relative;
    }

    .enhanced-transaction-table tbody tr.highlighted-row:hover {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    }

    .enhanced-transaction-table td {
        padding: 1rem 0.75rem;
        vertical-align: middle;
        border: none;
    }

    /* Data Display Components */
    .trans-code {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .code-badge {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.8rem;
        box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    }

    .code-badge.primary {
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }

    .highlight-star {
        color: #f59e0b;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }

    .customer-info, .party-info, .account-info, .institution-info, .purpose-info, .time-info {
        display: flex;
        flex-direction: column;
    }

    .customer-id {
        font-weight: 600;
        color: #374151;
        font-size: 0.9rem;
    }

    .party-name {
        font-weight: 500;
        color: #374151;
        font-size: 0.85rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-number {
        font-family: 'Monaco', 'Consolas', monospace;
        font-size: 0.8rem;
        color: #6b7280;
        background: rgba(99, 102, 241, 0.05);
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        display: inline-block;
    }

    .institution-name {
        font-size: 0.8rem;
        color: #6b7280;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .amount-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .amount-info.large {
        align-items: flex-start;
    }

    .currency {
        font-size: 0.75rem;
        color: #6b7280;
        font-weight: 500;
    }

    .amount {
        font-weight: 700;
        color: #059669;
        font-size: 0.9rem;
    }

    .trans-time {
        font-size: 0.8rem;
        color: #6b7280;
        white-space: nowrap;
    }

    .purpose-text {
        font-size: 0.8rem;
        color: #6b7280;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Transaction Type and Channel Badges */
    .transaction-type-badge, .channel-badge, .currency-badge {
        padding: 0.375rem 0.75rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
        text-align: center;
        white-space: nowrap;
    }

    .transaction-type-badge {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    .transaction-type-badge.credit {
        background: rgba(34, 197, 94, 0.1);
        color: #22c55e;
    }

    .transaction-type-badge.debit {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

    .transaction-type-badge.transfer {
        background: rgba(168, 85, 247, 0.1);
        color: #a855f7;
    }

    .channel-badge {
        background: rgba(99, 102, 241, 0.1);
        color: #6366f1;
    }

    .currency-badge {
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
        font-family: 'Monaco', 'Consolas', monospace;
    }

    /* Transaction Legend */
    .transaction-legend {
        padding: 1rem 1.5rem;
        background: rgba(251, 191, 36, 0.05);
        border-top: 1px solid rgba(251, 191, 36, 0.1);
        margin-top: 1rem;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: #92400e;
    }

    /* Table Footer */
    .table-footer {
        padding: 1rem 1.5rem;
        background: rgba(248, 250, 252, 0.8);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .footer-stats {
        display: flex;
        justify-content: center;
    }

    .footer-stat {
        color: #6b7280;
        font-size: 0.9rem;
    }

    /* Error States */
    .error-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2rem;
        background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(252, 231, 243, 0.9) 100%);
        border-radius: 16px;
        border: 1px solid rgba(239, 68, 68, 0.1);
        text-align: center;
    }

    .error-icon {
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    }

    .error-icon i {
        color: white;
        font-size: 1.5rem;
    }

    .error-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
    }

    .error-message {
        font-size: 0.9rem;
        color: #6b7280;
        margin-bottom: 1.5rem;
    }

    .retry-btn {
        border: 2px solid #6366f1;
        background: transparent;
        color: #6366f1;
        transition: all 0.3s ease;
    }

    .retry-btn:hover {
        background: #6366f1;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

   
    /* body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding: 2rem;
        min-height: 100vh;
    } */

    .demo-container {
        max-width: 1200px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .demo-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .demo-header h1 {
        color: white;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .demo-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.1rem;
    }

    .demo-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .demo-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 1rem 2rem;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .demo-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    /* Modal enhancements */
    .modal-content {
        border: none;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 20px 20px 0 0;
    }

    .modal-footer {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
    }
/* </style> */


/* <style> */
        body {
            background-color: #f4f7fe;
            font-family: 'Inter', sans-serif;
            color: #5a6472;
        }

        .audit-container {
            max-width: auto;
            margin: 0 auto;
            padding: 1.5rem;
        }

        .audit-header {
            background: #ffffff;
            border-radius: 1rem;
            padding: 2.5rem;
            margin-bottom: 2.5rem;
            box-shadow: 0 12px 48px rgba(22, 28, 45, 0.07);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .audit-title h1 {
            font-size: 2.25rem;
            font-weight: 800;
            color: #161c2d;
            margin-bottom: 0.5rem;
        }

        .audit-title p {
            color: #8a94a6;
            font-size: 1.1rem;
            margin: 0;
        }

        .download-btn {
            background: linear-gradient(145deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .audit-card {
            background: #ffffff;
            border-radius: 1rem;
            margin-bottom: 2.5rem;
            box-shadow: 0 12px 48px rgba(22, 28, 45, 0.07);
            overflow: hidden;
            border: 1px solid #e9ecef;
        }

        .card-header-custom {
            padding: 1.75rem 2rem;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
            border-bottom: 1px solid #e9ecef;
            display: flex;
            align-items: center;
        }
        
        .card-header-custom i {
            font-size: 1.75rem;
            color: #667eea;
            margin-right: 1.25rem;
        }

        .card-header-custom h5 {
            font-weight: 700;
            font-size: 1.25rem;
            margin: 0;
            color: #343a40;
        }
        
        .card-body-custom {
            padding: 2.5rem;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2.5rem;
        }

        .info-item {
            display: flex;
            flex-direction: column;
        }

        .info-label {
            font-size: 0.9rem;
            color: #8a94a6;
            margin-bottom: 0.75rem;
            font-weight: 500;
        }
        
        .info-value {
            font-weight: 600;
            font-size: 1.05rem;
            color: #343a40;
        }
        
        .info-value a {
            color: #667eea;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .info-value a:hover {
            color: #764ba2;
        }

        .info-value .badge {
            font-size: 1rem;
            padding: 0.6em 0.85em;
        }
        
        .info-value .rule-link {
            margin-right: 0.5rem;
        }

        .attachments-list {
            list-style: none;
            padding: 0;
        }

        .attachments-list li a {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background-color: #f8f9fa;
            border-radius: 0.5rem;
            color: #343a40;
            text-decoration: none;
            transition: all 0.2s ease;
        }
        
        .attachments-list li a:hover {
            background-color: #e9ecef;
            color: #667eea;
        }

        hr {
            margin: 2.5rem 0;
            border-color: #e9ecef;
        }
    /* </style> */

    /* <style> */
    body {
        background-color: #f4f7fe;
        font-family: 'Inter', sans-serif;
        color: #5a6472;
    }

    .str-container {
        max-width: auto;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .str-header {
        background: #ffffff;
        border-radius: 1rem;
        padding: 2.5rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 12px 48px rgba(22, 28, 45, 0.07);
    }

    .str-header h1 {
        font-size: 2.25rem;
        font-weight: 800;
        color: #161c2d;
        margin-bottom: 0.5rem;
    }

    .str-header p {
        color: #8a94a6;
        font-size: 1.1rem;
        margin: 0;
    }

    .form-card {
        background: #ffffff;
        border-radius: 1rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 12px 48px rgba(22, 28, 45, 0.07);
        overflow: hidden;
        border: 1px solid #e9ecef;
    }

    .form-card-header {
        padding: 1.5rem 2rem;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
        border-bottom: 1px solid #e9ecef;
        display: flex;
        align-items: center;
    }

    .form-card-header i {
        font-size: 1.5rem;
        color: #667eea;
        margin-right: 1.25rem;
    }

    .form-card-header h5 {
        font-weight: 700;
        font-size: 1.1rem;
        margin: 0;
        color: #343a40;
    }

    .form-card-body {
        padding: 2.5rem;
    }
    
    .form-label {
        font-weight: 500;
        color: #5a6472;
        margin-bottom: 0.5rem;
    }

    .form-control, .form-select {
        border-radius: 0.5rem;
        border: 1px solid #dee2e6;
        padding: 0.75rem 1rem;
        transition: all 0.2s ease;
    }

    .form-control:focus, .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    }
    
    .required-asterisk {
        color: #dc3545;
        margin-left: 0.25rem;
    }
    
    .form-actions {
        background: #ffffff;
        border-radius: 1rem;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 12px 48px rgba(22, 28, 45, 0.07);
    }

    .btn-save {
        background: linear-gradient(145deg, #667eea, #764ba2);
        color: white;
        border: none;
        padding: 0.85rem 2.5rem;
        border-radius: 0.75rem;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    .btn-save:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        color: white;
    }

    .btn-reset {
        padding: 0.85rem 2.5rem;
        border-radius: 0.75rem;
        font-weight: 600;
        font-size: 1rem;
    }

/* </style> */

.modal-xl,.modal-lg {
    max-width: 100%; /* Increase max-width from Bootstrap's default. Adjust as needed. */
}

.modal-dialog-scrollable .modal-content {
    /* Allow child elements to overflow, which is necessary for the scrollbar to appear. */
    overflow: visible; 
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: 70vh; /* vh = viewport height. 70% of the screen's height. */
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;   /* Enable vertical scrollbar when needed */
    overflow-x: auto;   /* NEW: Enable horizontal scrollbar when needed */
    max-height: 70vh;   /* vh = viewport height. 70% of the screen's height. */
}

/* <style> */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #28a745; }
input:checked + .slider:before { transform: translateX(26px); }
    /* </style> */

/* Spinner for button loading state */
.btn-loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #764ba2; /* A color from your theme */
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}    