 /* Override to remove hover and animations on tables */
        .data-table tr:hover,
        .data-table td:hover,
        .data-table th:hover,
        .data-table .action-btn:hover,
        .data-table .edit-field:hover,
        .data-table button:hover {
            background: none !important;
            color: inherit !important;
            transform: none !important;
            transition: none !important;
            box-shadow: none !important;
        }
        .data-table * {
            animation: none !important;
            transition: none !important;
        }
        .data-table td:not(.sticky),
        .data-table th {
            color: white !important;
        }
        .data-table .sticky {
            color: black !important;
        }
        
        /* Loading Animation Styles */
        .loading-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            color: white;
        }
        .loading-text {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 2rem;
            text-align: center;
        }
        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 1.5rem;
        }
        .loading-dots {
            display: flex;
            gap: 8px;
        }
        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: white;
            animation: bounce 1.4s infinite ease-in-out both;
        }
        .dot:nth-child(1) { animation-delay: -0.32s; }
        .dot:nth-child(2) { animation-delay: -0.16s; }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }
        
        /* Login Styles */
        .login-container {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Dashboard Styles */
        .dashboard-container {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }
        
        /* Notification Styles */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 10px;
            color: white;
            font-weight: 500;
            z-index: 1000;
            transform: translateX(150%);
            transition: transform 0.3s ease;
            max-width: 350px;
        }
        .notification.success {
            background: #10b981;
            transform: translateX(0);
        }
        .notification.error {
            background: #ef4444;
            transform: translateX(0);
        }
        .notification.info {
            background: #3b82f6;
            transform: translateX(0);
        }
        
        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 20px;
        }
        .modal-overlay.show {
            display: flex;
        }
        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 24px;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        /* Table Styles */
        .table-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow-x: auto;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        .data-table th {
            background: rgba(255, 255, 255, 0.2);
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }
        .data-table td {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .data-table tr:last-child td {
            border-bottom: none;
        }
        
        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .action-btn {
            padding: 6px 10px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }
        .action-btn.action-view {
            background: #3b82f6;
            color: white;
        }
        .action-btn.action-edit {
            background: #10b981;
            color: white;
        }
        .action-btn.action-print {
            background: #f59e0b;
            color: white;
        }
        .action-btn.action-delete {
            background: #ef4444;
            color: white;
        }
        .action-btn.action-toggle {
            background: #6b7280;
            color: white;
        }
        
        /* Status Badges */
        .status-badge {
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: capitalize;
        }
        .status-badge.status-pending {
            background: #fef3c7;
            color: #92400e;
        }
        .status-badge.status-active {
            background: #d1fae5;
            color: #065f46;
        }
        .status-badge.status-exist {
            background: #e5e7eb;
            color: #374151;
        }
        .status-badge.status-blocked {
            background: #fee2e2;
            color: #991b1b;
        }
        
        /* Search Input */
        .search-container {
            position: relative;
            max-width: 400px;
        }
        .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.7);
        }
        .search-input {
            width: 100%;
            padding: 12px 12px 12px 40px;
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 10px;
            color: white;
            outline: none;
        }
        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* Sidebar */
        .sidebar-mobile {
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }
        .sidebar-mobile.open {
            transform: translateX(0);
        }
        @media (min-width: 1024px) {
            .sidebar-mobile {
                transform: translateX(0);
            }
        }
        
        /* Dropdown */
        .dropdown {
            display: none;
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 8px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            border-radius: 12px;
            z-index: 50;
        }
        .dropdown.show {
            display: block;
        }
        
        /* Content Sections */
        .content-section {
            display: none;
        }
        .content-section.active {
            display: block;
        }
        
        /* Card Hover Effect */
        .card-hover {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        /* Document Styles */
        .doc-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            margin-bottom: 8px;
        }
        .doc-actions {
            display: flex;
            gap: 8px;
        }
        .doc-action-btn {
            padding: 6px 10px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
        }
        .doc-action-btn.doc-view {
            background: #3b82f6;
            color: white;
        }
        .doc-action-btn.doc-open {
            background: #10b981;
            color: white;
        }
        .doc-action-btn.doc-delete {
            background: #ef4444;
            color: white;
        }
        .doc-action-btn.doc-add {
            background: #8b5cf6;
            color: white;
        }
        
        /* Document Viewer */
        .document-viewer {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 8px;
        }
        
        /* No Results */
        .no-results {
            text-align: center;
            padding: 40px 20px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 18px;
        }
        
        /* Edit Field */
        .edit-field {
            background: none;
            border: none;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
            margin-left: 8px;
        }
        .edit-field:hover {
            opacity: 1;
        }
        
        /* Status Dropdown */
        .status-dropdown select {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 6px;
            padding: 4px 8px;
            color: white;
            outline: none;
            width: 100%;
        }
        
        /* Existing Docs */
        .existing-docs-section {
            margin-top: 16px;
            padding: 16px;
            background: #f9fafb;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
        }
        .existing-doc-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #e5e7eb;
        }
        .existing-doc-item:last-child {
            border-bottom: none;
        }
        .doc-remove-btn {
            background: #ef4444;
            color: white;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }
        
        /* Text Editor */
        .text-editor-btn, .client-text-editor-btn {
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }
        .text-editor-btn:hover, .client-text-editor-btn:hover {
            background: #f3f4f6;
        }
        
        /* Field Edit Modal */
        .field-edit-modal .modal-content {
            max-width: 500px;
        }
        .field-edit-modal input,
        .field-edit-modal select,
        .field-edit-modal textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        .field-edit-modal input:focus,
        .field-edit-modal select:focus,
        .field-edit-modal textarea:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        .modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
        }
        .btn-cancel, .btn-save {
            flex: 1;
            padding: 10px 16px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn-cancel {
            background: #f3f4f6;
            color: #374151;
        }
        .btn-cancel:hover {
            background: #e5e7eb;
        }
        .btn-save {
            background: #3b82f6;
            color: white;
        }
        .btn-save:hover {
            background: #2563eb;
        }
        
        /* Custom Status Input */
        .custom-status-input {
            margin-top: 8px;
        }



        /* Enhanced Blue Theme */
body {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Enhanced Navigation Bar - Solid Blue */
nav {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Dashboard Container with Enhanced Blue Theme */
.dashboard-container {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    position: relative;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Login Container */
.login-container {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Enhanced Login Form */
.login-container {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-container input {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
}

.login-container input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.login-container button[type="submit"] {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    color: #1e40af !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-container button[type="submit"]::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.5s;
}

.login-container button[type="submit"]:hover::before {
    left: 100%;
}

.login-container button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Enhanced Dashboard Stats */
.dashboard-stats-grid {
    perspective: 1000px;
}

.dashboard-stats-grid .card-hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dashboard-stats-grid .card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.dashboard-stats-grid .card-hover:hover::before {
    left: 100%;
}

.dashboard-stats-grid .card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-stats-grid .p-3.rounded-2xl {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.dashboard-stats-grid .card-hover:hover .p-3.rounded-2xl {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Enhanced Table Styles with Blue Theme */
.table-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

.data-table th {
    background: rgb(2, 2, 167);
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.data-table td {
    background-color: rgb(5, 5, 139);
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    position: relative;
    color: white;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Enhanced Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    min-width: 240px;
}

.action-btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-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.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.action-btn.action-view {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.action-edit {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.action-print {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.action-btn.action-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn.action-toggle {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Enhanced Loading Animation */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-text {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)); }
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1.2s linear infinite;
    margin-bottom: 2rem;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: spin 2s linear infinite reverse;
}

/* Enhanced Sidebar */
.sidebar-mobile {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.8)) !important;
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(8px);
}

/* Enhanced User Dropdown */
.dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Enhanced Search Input */
.search-input {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Enhanced Modal Styles */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Names Column Styling - Enhanced */
.data-table td.sticky {
    position: sticky;
    left: 0;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    z-index: 5;
    box-shadow: 
        4px 0 15px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    min-width: 200px;
    color: #1e293b !important;
    font-weight: 600;
}

.data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.8));
    color: white;
    backdrop-filter: blur(10px);
}

/* Auto-redirect after login - Hide login page when authenticated */
body.logged-in #loginPage {
    display: none !important;
}

body.logged-in #dashboardPage {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loading-text {
        font-size: 2rem;
    }
    
    .dashboard-stats-grid .card-hover:hover {
        transform: translateY(-4px);
    }
    
    .action-btn {
        padding: 8px 10px;
        min-width: 36px;
        height: 36px;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Enhanced scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}






/* ===== ELIMINATE HOVER EFFECTS ONLY FROM TABLE DATA AND HEADERS ===== */
.data-table tr,
.data-table td,
.data-table th,
.data-table .edit-field {
    background: none !important;
    color: inherit !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    cursor: default !important;
}

.data-table tr:hover,
.data-table td:hover,
.data-table th:hover {
    background: inherit !important;
    color: inherit !important;
    transform: none !important;
}

/* Remove animations and transitions from table structure only */
.data-table,
.data-table tr,
.data-table td,
.data-table th {
    animation: none !important;
    transition: none !important;
}

/* ===== KEEP ACTION BUTTONS WITH COLORS AND HOVER EFFECTS ===== */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    min-width: 240px;
}

.action-btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-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.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.action-btn.action-view {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.action-edit {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.action-print {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.action-btn.action-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn.action-toggle {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Action button hover effects - KEEP THESE */
.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== PERFECT TABLE STYLING ===== */
.table-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

.data-table th {
    background: rgb(2, 2, 167) !important;
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.data-table td {
    background-color: rgb(5, 5, 139) !important;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    position: relative;
    color: white !important;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ===== STATUS BADGES WITHOUT HOVER ===== */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ===== EDIT FIELD WITHOUT HOVER ===== */
.edit-field {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 8px;
    transition: opacity 0.2s;
}

.edit-field:hover {
    opacity: 1 !important; /* Keep hover for edit buttons */
}

/* ===== STICKY COLUMN STYLING ===== */
.data-table td.sticky {
    position: sticky;
    left: 0;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    z-index: 5;
    box-shadow: 
        4px 0 15px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    min-width: 200px;
    color: #1e293b !important;
    font-weight: 600;
}

.data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.8)) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

/* ===== STATUS DROPDOWN WITHOUT HOVER ===== */
.status-dropdown select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    color: white;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.status-dropdown select:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ===== PERFECT SCROLLBAR STYLING ===== */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== ENHANCED TABLE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .table-container {
        border-radius: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .action-btn {
        padding: 8px 10px;
        min-width: 36px;
        height: 36px;
        font-size: 11px;
    }
    
    .action-btn i {
        font-size: 12px;
    }
    
    .action-buttons {
        min-width: 200px;
        gap: 6px;
    }
}

/* ===== PERFECT ALIGNMENT FOR TABLE CONTENT ===== */
.data-table td > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.data-table td > div > span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== SPECIFICALLY TARGET TABLE ROWS AND CELLS FOR NO HOVER ===== */
.data-table tbody tr,
.data-table tbody td,
.data-table thead tr,
.data-table thead th {
    transition: none !important;
}

.data-table tbody tr:hover {
    background: inherit !important;
}

.data-table tbody td:hover {
    background-color: rgb(5, 5, 139) !important;
}

.data-table thead th:hover {
    background: rgb(2, 2, 167) !important;
}

/* ===== KEEP DOCUMENT BUTTONS FUNCTIONAL ===== */
.doc-action-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.doc-action-btn.doc-view {
    background: #3b82f6;
    color: white;
}

.doc-action-btn.doc-open {
    background: #10b981;
    color: white;
}

.doc-action-btn.doc-delete {
    background: #ef4444;
    color: white;
}

.doc-action-btn.doc-add {
    background: #8b5cf6;
    color: white;
}

.doc-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}



/* ===== FIX TEXT COLOR ISSUE - KEEP ALL TEXT WHITE ===== */
.data-table td:not(.sticky),
.data-table th,
.data-table td:not(.sticky) *:not(.action-btn):not(.edit-field):not(.status-badge):not(.status-dropdown *),
.data-table th * {
    color: white !important;
}

/* Ensure sticky column stays black */
.data-table td.sticky,
.data-table td.sticky *:not(.action-btn):not(.edit-field) {
    color: #1e293b !important;
}

/* Fix for any child elements that might inherit wrong colors */
.data-table td:not(.sticky) span,
.data-table td:not(.sticky) div,
.data-table td:not(.sticky) p {
    color: white !important;
}

/* Specifically target the text in table cells */
.data-table td:not(.sticky) > div > span {
    color: white !important;
}

/* Fix for edit field icons in white cells */
.data-table td:not(.sticky) .edit-field {
    color: rgba(255, 255, 255, 0.7) !important;
}

.data-table td:not(.sticky) .edit-field:hover {
    color: white !important;
}

/* ===== ELIMINATE HOVER EFFECTS ONLY FROM TABLE DATA AND HEADERS ===== */
.data-table tr,
.data-table td,
.data-table th,
.data-table .edit-field {
    background: none !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    cursor: default !important;
}

.data-table tr:hover,
.data-table td:hover,
.data-table th:hover {
    background: inherit !important;
    transform: none !important;
}

/* Remove animations and transitions from table structure only */
.data-table,
.data-table tr,
.data-table td,
.data-table th {
    animation: none !important;
    transition: none !important;
}

/* ===== KEEP ACTION BUTTONS WITH COLORS AND HOVER EFFECTS ===== */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    min-width: 240px;
}

.action-btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.action-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.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn i {
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.action-btn.action-view {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.action-edit {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.action-print {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.action-btn.action-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn.action-toggle {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Action button hover effects - KEEP THESE */
.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== PERFECT TABLE STYLING ===== */
.table-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

.data-table th {
    background: rgb(2, 2, 167) !important;
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

.data-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.data-table td {
    background-color: rgb(5, 5, 139) !important;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    position: relative;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ===== STATUS BADGES WITHOUT HOVER ===== */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    text-align: center;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ===== EDIT FIELD WITHOUT HOVER ===== */
.edit-field {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 8px;
    transition: opacity 0.2s;
}

.edit-field:hover {
    opacity: 1 !important;
}

/* ===== STICKY COLUMN STYLING ===== */
.data-table td.sticky {
    position: sticky;
    left: 0;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    z-index: 5;
    box-shadow: 
        4px 0 15px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    min-width: 200px;
    color: #1e293b !important;
    font-weight: 600;
}

.data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.8)) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

/* ===== STATUS DROPDOWN WITHOUT HOVER ===== */
.status-dropdown select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    color: white;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.status-dropdown select:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ===== PERFECT SCROLLBAR STYLING ===== */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== ENHANCED TABLE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .table-container {
        border-radius: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .action-btn {
        padding: 8px 10px;
        min-width: 36px;
        height: 36px;
        font-size: 11px;
    }
    
    .action-btn i {
        font-size: 12px;
    }
    
    .action-buttons {
        min-width: 200px;
        gap: 6px;
    }
}

/* ===== PERFECT ALIGNMENT FOR TABLE CONTENT ===== */
.data-table td > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.data-table td > div > span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== SPECIFICALLY TARGET TABLE ROWS AND CELLS FOR NO HOVER ===== */
.data-table tbody tr,
.data-table tbody td,
.data-table thead tr,
.data-table thead th {
    transition: none !important;
}

.data-table tbody tr:hover {
    background: inherit !important;
}

.data-table tbody td:hover {
    background-color: rgb(5, 5, 139) !important;
}

.data-table thead th:hover {
    background: rgb(2, 2, 167) !important;
}

/* ===== PREVENT TEXT SELECTION COLOR CHANGE ===== */
.data-table td:not(.sticky),
.data-table th {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.data-table td:not(.sticky)::selection,
.data-table th::selection {
    background: transparent;
}

.data-table td:not(.sticky)::-moz-selection,
.data-table th::-moz-selection {
    background: transparent;
}
/* Enable Horizontal Scrolling */
.table-container {
    display: block;
    width: 100%;
    overflow-x: auto; /* This forces the scrollbar when content is too wide */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    margin-bottom: 1rem;
    border-radius: 0.75rem; /* Matches your rounded-xl look */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Force table cells to stay in one line so scrolling triggers */
.data-table th, 
.data-table td {
    white-space: nowrap;
    padding: 1rem; /* Adjust spacing as needed */
}

/* Custom Scrollbar Styling (Optional - makes it look nicer) */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


/* WRAPPER: Aligns the buttons and table side-by-side */
.table-wrapper {
    position: relative;
    display: flex; /* Use Flexbox to align Button-Table-Button */
    align-items: flex-start; /* Aligns items to top so sticky works */
    width: 100%;
    margin-bottom: 20px;
}

/* CONTAINER: The actual scrolling table */
.table-container {
    flex: 1; /* Takes up all available space */
    overflow-x: auto;
    width: 100%;
    display: block;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.table-container::-webkit-scrollbar {
    display: none;
}

/* BUTTONS: Fixed (Sticky) on the page */
.scroll-btn {
    position: sticky; /* This makes it stay on screen! */
    top: 50vh; /* Centers it vertically on your screen */
    transform: translateY(-50%); /* Perfect centering alignment */
    
    width: 45px;
    height: 45px;
    z-index: 100;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    flex-shrink: 0; /* Prevents button from getting squished */
}

/* Hover Effects */
.scroll-btn:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

/* Spacing and Positioning */
.scroll-btn.left {
    margin-right: -20px; /* Overlaps the table slightly */
    z-index: 101;
}

.scroll-btn.right {
    margin-left: -20px; /* Overlaps the table slightly */
    z-index: 101;
}

/* Active State */
.scroll-btn.visible {
    opacity: 1;
    pointer-events: auto;
}