/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */
:root {
    /* Colors Only */
    --primary-blue: #000C66;
    --primary-white: #ffffff;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --border-light: #E5E7EB;
}

/* ========================================
    SCROLLBAR STYLING
    ======================================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
     width: 12px;
     height: 12px;
}

::-webkit-scrollbar-track {
     background: #f1f1f1;
     border-radius: 10px;
}

::-webkit-scrollbar-thumb {
     background: var(--primary-blue);
     border-radius: 10px;
     transition: background 0.3s ease;
}

/* Firefox */
* {
     scrollbar-width: thin;
     scrollbar-color: var(--primary-blue) #f1f1f1;
}


/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff ;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* App pages - white background */
.app-page {
    background: #ffffff;
}

/* Auth pages background */
.auth-page {
    background: linear-gradient(135deg, #00083d 0%, var(--primary-blue) 25%, #000e75 50%, var(--primary-blue) 75%, #00083d 100%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   AUTHENTICATION CONTAINER
   ======================================== */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swap layout for signup page */

.auth-container.signup .auth-left,
.auth-container.signup .auth-right {
    direction: ltr;
}

/* ========================================
   LEFT SIDE - IMAGE SECTION
   ======================================== */
.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    color: var(--primary-white);
    animation: slideUp 0.8s ease;
}

.wise-quote {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.auth-heading {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-subheading {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 480px;
}

/* ========================================
   RIGHT SIDE - FORM SECTION
   ======================================== */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 0;
    overflow-y: auto;
}

.auth-card {
    background: var(--primary-white);
    padding: 1.75rem 2.25rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 100%;
    animation: slideUp 0.6s ease;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.auth-logo i {
    font-size: 1.25rem;
}

.auth-logo span {
    font-size: 1.1rem;
    font-weight: 700;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.auth-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* ========================================
   FORM STYLES
   ======================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-row .form-group {
    margin: 0;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    border: 2px solid var(--border-light);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    background-color: var(--primary-white);
    transition: 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    background-color: var(--primary-white);
    box-shadow: 0 0 0 4px rgba(0, 12, 102, 0.1);
}

.form-input:focus ~ .input-icon {
    color: var(--primary-blue);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Error State */
.form-input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-input.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.error-message {
    display: none;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Inline field error shown beneath inputs */
.field-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 600;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    transition: 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

/* Password eye icon inside input wrapper */
.password-eye {
    position: absolute;
    right: 0.875rem;
    color: var(--text-light);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: auto; /* override input-icon pointer-events:none */
    cursor: pointer;
}

.password-eye:hover {
    color: var(--primary-blue);
}

/* Success State */
.form-input.success {
    border-color: #16a34a;
}

.form-input.success:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

/* ========================================
   FORM OPTIONS
   ======================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.forgot-link:hover {
    color: #001088;
    text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--primary-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #001088;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}



/* ========================================
   AUTH FOOTER
   ======================================== */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.auth-footer-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-footer-link:hover {
    color: #001088;
    text-decoration: underline;
}

/* ========================================
   2FA SPECIFIC STYLES
   ======================================== */
.tfa-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001088 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 12, 102, 0.2);
}

.tfa-code-wrapper {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.tfa-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border-light);
    border-radius: 0.75rem;
    background: var(--primary-white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.tfa-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 12, 102, 0.1);
    transform: scale(1.05);
}

.tfa-input:valid {
    border-color: #22c55e;
}

.tfa-resend {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.tfa-resend p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.resend-btn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.resend-btn:hover {
    color: #001088;
    text-decoration: underline;
}

.resend-btn i {
    font-size: 0.75rem;
}

/* ========================================
   AUTH STEPS (Left Side Content)
   ======================================== */
.auth-steps {
    margin-top: 2rem;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-num {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-step p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.375rem;
}

/* ========================================
   SCAN QR CODE PAGE STYLES
   ======================================== */
.qr-code-container {
    text-align: center;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    background: var(--primary-white);
    border: 2px dashed var(--border-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.qr-placeholder i {
    font-size: 3.5rem;
}

.qr-code-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.qr-code-image {
    width: 200px;
    height: 200px;
    border-radius: 0.75rem;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.manual-code {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.manual-code-label {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary-white);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    max-width: 260px;
    margin: 0 auto;
}

.code-box code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    color: #001088;
    transform: scale(1.1);
}

.copy-btn i {
    font-size: 0.9375rem;
}



/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        min-height: 250px;
        padding: 1.75rem;
    }
    
    .auth-heading {
        font-size: 2rem;
    }
    
    .auth-right {
        padding: 1.75rem;
    }
    
    .auth-card {
        max-width: 100%;
        padding: 1.75rem 2rem;
    }
}

@media (max-width: 640px) {
    .auth-left {
        min-height: 200px;
        padding: 1.25rem;
    }
    
    .auth-heading {
        font-size: 1.75rem;
    }
    
    .auth-subheading {
        font-size: 0.8rem;
    }
    
    .wise-quote {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .auth-right {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo {
        margin-bottom: 1rem;
    }
    
    .form-group {
        gap: 0.35rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

/* ========================================
   LOADING STATE
   ======================================== */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   HEADER STYLES
   ======================================== */
.main-header {
    background: var(--primary-blue);
    color: var(--primary-white);
    box-shadow: 0 2px 8px rgba(0, 12, 102, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-white);
}

.header-logo a {
    color: var(--primary-white);
    text-decoration: none;
}

.header-logo i {
    font-size: 1.75rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.logout-btn:hover {
    background: #dc2626;
    color: var(--primary-white);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.main-footer {
    background: #f9fafb;
    border-top: 1px solid var(--border-light);
    /* margin-top: auto; */
    position: relative;
    bottom: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.footer-logo i {
    font-size: 1.75rem;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary-blue);
    color: var(--primary-white);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: #001088;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 12, 102, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom i {
    color: #dc2626;
    margin: 0 0.25rem;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */
.dashboard-container {
   width: 90%;
    margin: 0 auto; 
    padding: 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

/* Stats Section */
.stats-section {
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--primary-white);
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 12, 102, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-white);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Action Section */
.action-section {
    flex-shrink: 0;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--primary-white);
    transition: all 0.3s ease;
    outline: none;
}

.MyFiles-search-wrapper{
    margin-bottom: 1.5rem;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 12, 102, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.btn-add {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 12, 102, 0.3);
    white-space: nowrap;
}

.btn-add:hover {
    background: #001088;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 12, 102, 0.4);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-add-alt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--primary-white);
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.btn-add-alt:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.5);
}

.btn-add-alt:active {
    transform: translateY(0);
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.entries-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    background: var(--primary-white);
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.entries-select:hover {
    border-color: var(--primary-blue);
}

.entries-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 12, 102, 0.1);
}

.pagination-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pagination-container,
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination-info span {
    color: var(--text-dark);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    background: var(--primary-white);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--primary-white);
    border-color: var(--primary-blue);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    background: var(--primary-white);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.page-number:hover {
    background: rgba(0, 12, 102, 0.05);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.page-number.active {
    background: var(--primary-blue);
    color: var(--primary-white);
    border-color: var(--primary-blue);
    font-weight: 600;
}

.page-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-weight: 600;
}

/* Files Section */
.files-section {
    background: var(--primary-white);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 12, 102, 0.08);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* border: 5px solid var(--primary-blue); */
}

.table-container {
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table thead {
    background: var(--primary-blue);
    color: var(--primary-white);
}

.files-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.files-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.files-table tbody tr:hover {
    background: #f9fafb;
}

.files-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* DataTables integration styles to match app theme */
.dataTables_wrapper {
    width: 100%;
}
.dataTables_wrapper .dataTables_filter {
    float: right;
    text-align: right;
    margin-bottom: 0.5rem;
}
.dataTables_wrapper .dataTables_filter input {
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--border-light);
    border-radius: 0.625rem;
    outline: none;
    width: 240px;
    font-size: 0.9rem;
    background: var(--primary-white);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 6px rgba(0, 12, 102, 0.06);
}
.dataTables_wrapper .dataTables_length {
    float: left;
}
.dataTables_wrapper .dataTables_length select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 0.625rem;
    background: var(--primary-white);
    font-size: 0.9rem;
}
.dataTables_wrapper .dataTables_paginate {
    margin-top: 0.75rem;
    text-align: right;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--primary-blue);
    padding: 0.45rem 0.7rem;
    margin: 0 0.2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0,12,102,0.06);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-blue);
    color: #fff !important;
    border-color: var(--primary-blue);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}
.dataTables_wrapper .dataTables_info {
    color: var(--text-gray);
    margin-top: 0.35rem;
}

/* Ensure DataTables table inherits our table styles */
.files-table.dataTable th,
.files-table.dataTable td {
    padding: 0.875rem 1rem;
}

/* Align DataTables controls to match codebase spacing on small screens */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        float: none;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }
}

/* Stronger DataTables visual match to app buttons/inputs */
.dataTables_wrapper {
    font-size: 0.95rem;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}
.dataTables_wrapper .dataTables_filter input {
    padding-left: 2.5rem; /* space for possible icon */
    background-image: none;
}
.dataTables_wrapper .dataTables_filter::before {
    /* use fontawesome search icon visually (falls back to nothing if not available) */
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: -2rem;
    color: var(--text-light);
    display: inline-block;
}
.dataTables_wrapper .dataTables_paginate {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--primary-blue);
    font-weight: 700;
    transition: all 0.15s ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(2,6,23,0.06);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-blue);
    color: #fff !important;
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0,12,102,0.12);
}
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    min-width: 44px;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.6rem;
    border: 1px solid var(--border-light);
}

/* Improved "Show entries" select styling to match app controls */
.dataTables_wrapper .dataTables_length {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.dataTables_wrapper .dataTables_length label {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}
.dataTables_wrapper .dataTables_length select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.55rem 1.25rem 0.55rem 0.75rem; /* room for arrow */
    border: 2px solid var(--border-light) !important;
    border-radius: 0.625rem !important;
    background: var(--primary-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000C66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;
    background-size: 14px 14px;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    cursor: pointer;
    min-width: 88px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.dataTables_wrapper {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    padding-left: 1rem !important;    /* horizontal spacing */
    padding-right: 1rem !important;
}
.table-container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 0.75rem; /* keep table content inset */
    padding-right: 0.75rem;
}
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 6px 20px rgba(0,12,102,0.08) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

@media (max-width: 480px) {
    .dataTables_wrapper .dataTables_length {
        width: 100%;
        justify-content: flex-start;
    }
    .dataTables_wrapper .dataTables_length select { width: auto; }
}

/* Make page length and info align with table footer */
.dataTables_wrapper .dataTables_length {
    margin-right: 1rem;
}
.dataTables_wrapper .dataTables_info {
    display: inline-block;
    margin-left: 0.75rem;
    color: var(--text-gray);
}

/* Action row: left helper text and right action button */
.action-section .action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 0.75rem;
}
.action-section .action-left .action-help {
    margin: 0;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
}
.action-section .action-left .action-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}
.action-section .action-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 768px) {
    .action-section .action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .action-section .action-right {
        justify-content: flex-end;
    }
}

/* Ensure buttons inside table rows remain correctly sized */
.files-table .action-buttons .action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Stronger overrides for DataTables to match app UI */
.files-table {
    border-radius: 0.75rem;
    overflow: hidden;
}

.files-table thead {
    background: var(--primary-blue) !important;
    color: var(--primary-white) !important;
}

/* Ensure top corners are rounded on the header */
.files-table thead th:first-child {
    border-top-left-radius: 0.75rem;
}
.files-table thead th:last-child {
    border-top-right-radius: 0.75rem;
}

/* DataTables filter (search) with icon */
.dataTables_wrapper .dataTables_filter {
    position: relative;
}
.dataTables_wrapper .dataTables_filter input {
    padding: 0.65rem 0.9rem 0.65rem 2.6rem; /* space for icon */
    box-shadow: none;
}
.dataTables_wrapper .dataTables_filter:before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 0.95rem;
}

/* Polished DataTables search input — match app inputs */
.dataTables_wrapper .dataTables_filter input {
    width: 260px; /* consistent width with other inputs */
    padding: 0.6rem 0.9rem 0.6rem 2.8rem; /* room for icon */
    border: 2px solid var(--border-light);
    border-radius: 0.625rem;
    background: var(--primary-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.dataTables_wrapper .dataTables_filter input::placeholder {
    color: var(--text-light);
    font-weight: 500;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0,12,102,0.08);
    transform: translateY(-2px);
}
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.6rem;
}

/* Make the search icon slightly muted and aligned */
.dataTables_wrapper .dataTables_filter:before {
    color: var(--text-light);
    left: 0.9rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter input { width: 100%; }
}

/* Strong specificity override to prevent conflicts from global input styles */
.dataTables_wrapper .dataTables_filter input[type="search"],
.dataTables_wrapper .dataTables_filter input[type="text"],
.dataTables_wrapper .dataTables_filter input {
    width: 260px !important;
    padding: 0.6rem 0.9rem 0.6rem 2.8rem !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 0.625rem !important;
    background: var(--primary-white) !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}
.dataTables_wrapper .dataTables_filter input::placeholder,
.dataTables_wrapper .dataTables_filter input::-webkit-input-placeholder {
    color: var(--text-light) !important;
    opacity: 1 !important;
}
.dataTables_wrapper .dataTables_filter input:-ms-input-placeholder {
    color: var(--text-light) !important;
}


/* Entries select styling */
.dataTables_wrapper .dataTables_length select {
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border-light);
    background: var(--primary-white);
    color: var(--text-dark);
    font-weight: 600;
}

/* Pagination buttons styling to look like app buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 999px; /* fully rounded like pills */
    border: 1px solid var(--border-light);
    color: var(--primary-blue) !important;
    background: transparent !important;
    font-weight: 700;
    transition: all 180ms ease;
}
.dataTables_wrapper .dataTables_paginate .paginate_button a {
    color: inherit !important;
    text-decoration: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    background: var(--primary-blue) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,12,102,0.12);
    border-color: var(--primary-blue) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #f1f5ff !important; /* light tint for selected */
    color: var(--primary-blue) !important; /* dark/primary text for contrast */
    border-color: var(--primary-blue) !important;
    box-shadow: 0 6px 14px rgba(2,6,23,0.06);
    transform: none;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Next/Previous clearer icons */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous:before,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:after {
    color: var(--primary-blue);
}

/* Align DataTables controls in same row */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Small screens: stack controls */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        display: block;
        width: 100%;
        margin-bottom: 0.6rem;
    }
    .dataTables_wrapper .dataTables_filter input { width: 100%; }
}

.file-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-document {
    background: #dbeafe;
    color: #1e40af;
}

.badge-image {
    background: #fce7f3;
    color: #be185d;
}

.badge-video {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-other {
    background: #e5e7eb;
    color: #374151;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-edit {
    background: #dbeafe;
    color: #1e40af;
}

.btn-edit:hover {
    background: #3b82f6;
    color: var(--primary-white);
    transform: scale(1.1);
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #dc2626;
    color: var(--primary-white);
    transform: scale(1.1);
}

.btn-download {
    background: #d1fae5;
    color: #065f46;
}

.btn-download:hover {
    background: #10b981;
    color: var(--primary-white);
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 1rem;
    animation: fadeIn 0.5s ease;
}

.empty-state.show {
    display: block;
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    opacity: 0.3;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.empty-description {
    font-size: 1.05rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--primary-white);
    border-radius: 1.25rem;
    max-width: 550px;
    width: 90%;
    max-height: fit-content;
    overflow: visible;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    z-index: 10000;
}

.modal-small {
    max-width: 450px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: none;
    background: #f3f4f6;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
    overflow: visible;
}

/* Dropzone Custom Styling */
.dropzone {
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.dropzone:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 12, 102, 0.05);
}

.dropzone.dz-drag-hover {
    border-color: var(--primary-blue);
    background: rgba(0, 12, 102, 0.08);
    border-style: solid;
    box-shadow: 0 0 20px rgba(0, 12, 102, 0.15);
}

.dropzone .dz-message {
    margin: 0;
    padding: 0;
}

.dropzone .dz-preview {
    margin: 1rem 0;
}

.dropzone .dz-preview .dz-image {
    border-radius: 0.5rem;
}

.dropzone .dz-preview .dz-details {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.dropzone .dz-preview .dz-progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 12, 102, 0.1);
}

.dropzone .dz-preview .dz-progress .dz-upload {
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.dropzone .dz-preview .dz-remove {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropzone .dz-preview .dz-remove:hover {
    background: #dc2626;
    color: var(--primary-white);
}

.dropzone .dz-preview.dz-success .dz-success-mark,
.dropzone .dz-preview.dz-error .dz-error-mark {
    opacity: 1;
    animation: slideUp 0.4s ease;
}

.dropzone .dz-preview .dz-success-mark svg,
.dropzone .dz-preview .dz-error-mark svg {
    width: 54px;
    height: 54px;
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-danger {
    background: #dc2626;
    color: var(--primary-white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Delete Modal */
.delete-message {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.delete-message strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    /* Header Responsive */
    .header-container {
        padding: 1rem 1.5rem;
    }

    .header-logo {
        font-size: 1.25rem;
    }

    .header-logo i {
        font-size: 1.5rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-link {
        padding: 0.625rem;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .action-row {
        flex-direction: column;
        width: 100%;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .btn-add {
        width: 100%;
        justify-content: center;
    }

    .files-table {
        font-size: 0.8rem;
    }

    .files-table th,
    .files-table td {
        padding: 0.75rem 0.5rem;
    }

    .action-buttons {
        gap: 0.25rem;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .empty-state {
        padding: 3rem 1rem;
    }

    .empty-icon {
        font-size: 4rem;
    }
    
    .pagination-wrapper,
    .pagination-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .pagination-left,
    .pagination-right {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-info {
        text-align: center;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.875rem 1rem;
    }

    .header-logo {
        font-size: 1.1rem;
    }

    .header-logo i {
        font-size: 1.3rem;
    }

    .logout-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .footer-container {
        padding: 2rem 1rem 0.75rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ========================================
   MY FILES PAGE STYLES
   ======================================== */
.myfiles-container {
    width: 90%;
    margin:0 auto;
    padding: 2rem;
    min-height: 100vh;
    flex-direction: column;
    gap: 1.5rem;
}

.myfiles-container .files-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.myfiles-container .table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive for My Files */
@media (max-width: 768px) {
    .myfiles-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .myfiles-container {
        padding: 1rem;
    }
}

/* ========================================
   ACTIVITY PAGE STYLES
   ======================================== */
.activity-container {
    padding: 2rem;
    min-height: 100vh;
}

.activity-header {
    text-align: center;
    margin-bottom: 2rem;
}

.activity-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.activity-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Date Modal Specific */
.modal-small {
    max-width: 450px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input[type="date"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--primary-white);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-input[type="date"]:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 12, 102, 0.1);
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 1.2rem;
}

/* Activity Table Specific Styles */
.activity-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.activity-action-badge.added {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.activity-action-badge.deleted {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.activity-action-badge.edited {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.activity-action-badge.downloaded {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.activity-search-wrapper{
    margin-bottom: 1.5rem;
}

.file-name-cell {
    font-weight: 500;
    color: var(--text-dark);
}

.details-cell {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.date-cell {
    color: var(--text-gray);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Timeline Styles */
.activity-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.activity-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.activity-item:nth-child(odd) {
    flex-direction: row;
}

.activity-item:nth-child(even) {
    flex-direction: row-reverse;
}

.activity-content {
    width: calc(50% - 2rem);
    background: var(--primary-white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 12, 102, 0.08);
    border: 1px solid var(--border-light);
    position: relative;
    animation: fadeInScale 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.activity-item:nth-child(1) .activity-content { animation-delay: 0.1s; }
.activity-item:nth-child(2) .activity-content { animation-delay: 0.2s; }
.activity-item:nth-child(3) .activity-content { animation-delay: 0.3s; }
.activity-item:nth-child(4) .activity-content { animation-delay: 0.4s; }
.activity-item:nth-child(5) .activity-content { animation-delay: 0.5s; }

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 3px solid var(--primary-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.activity-icon.added {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.activity-icon.deleted {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.activity-icon.edited {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.activity-icon.downloaded {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-action {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-action.added { color: #10b981; }
.activity-action.deleted { color: #ef4444; }
.activity-action.edited { color: #3b82f6; }
.activity-action.downloaded { color: #8b5cf6; }

.activity-file {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.activity-details {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.activity-time i {
    font-size: 0.75rem;
}

/* Empty State for Activity */
.activity-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.activity-empty .empty-icon {
    font-size: 5rem;
    color: var(--primary-blue);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.activity-empty .empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.activity-empty .empty-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Responsive Activity Timeline */
@media (max-width: 768px) {
    .activity-container {
        padding: 1.5rem;
    }

    .timeline-line {
        left: 25px;
    }

    .activity-item,
    .activity-item:nth-child(odd),
    .activity-item:nth-child(even) {
        flex-direction: row;
        padding-left: 60px;
    }

    .activity-content {
        width: 100%;
    }

    .activity-icon {
        left: 25px;
    }
}

@media (max-width: 480px) {
    .activity-container {
        padding: 1rem;
    }

    .activity-title {
        font-size: 1.5rem;
    }

    .activity-content {
        padding: 1rem;
    }

    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .activity-file {
        font-size: 1rem;
    }
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

/* Profile Header Section */
.profile-header-section {
    margin-bottom: 2rem;
}

.profile-header-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #000e75 100%);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 12, 102, 0.2);
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.change-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.change-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.profile-header-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-email {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.profile-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.profile-stat-item i {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Profile Details Section */
.profile-details-section {
    margin-bottom: 2rem;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: white;
    border-radius: 15px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.profile-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-card-title i {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.profile-card-body {
    padding: 1.5rem;
}

/* Personal Information */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
}

.profile-info-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profile-info-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.settings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-item-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.settings-item-info i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.settings-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.settings-item-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Storage Information */
.storage-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.storage-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.storage-bar {
    height: 12px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, #000e75 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.storage-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    text-align: center;
}

.storage-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.storage-breakdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.storage-breakdown-item i {
    font-size: 1.25rem;
}

/* Danger Zone */
.profile-card-danger {
    border-color: #fee2e2;
}

.profile-card-danger .profile-card-header {
    background: #fef2f2;
    border-bottom-color: #fee2e2;
}

.profile-card-danger .profile-card-title {
    color: #dc2626;
}

.profile-card-danger .profile-card-title i {
    color: #dc2626;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.danger-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #fee2e2;
}

.danger-action-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.danger-action-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.danger-action-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.btn-outline-primary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Profile Link in Header */
.profile-link {
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
}

.profile-link i {
    margin: 0;
}

/* Responsive Profile Page */
@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .profile-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .danger-action-item,
    .settings-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .danger-action-item button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-email {
        font-size: 1rem;
    }

    .profile-card-header {
        padding: 1rem;
    }

    .profile-card-body {
        padding: 1rem;
    }
}
}

/* ========================================
   PREMIUM QR SETUP STYLES
   ======================================== */
.qr-card {
    max-width: 480px !important;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tfa-setup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001088 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 12, 102, 0.3);
}

.qr-display-section {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-container-premium {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 1rem;
    padding: 15px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-image-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Custom QR Corners for "Tech" look */
.qr-corner-top-left, .qr-corner-top-right, .qr-corner-bottom-left, .qr-corner-bottom-right {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-blue);
}

.qr-corner-top-left { top: -5px; left: -5px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.qr-corner-top-right { top: -5px; right: -5px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.qr-corner-bottom-left { bottom: -5px; left: -5px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.qr-corner-bottom-right { bottom: -5px; right: -5px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.qr-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.manual-code-section {
    margin-bottom: 2rem;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.divider-text::before, .divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.divider-text span {
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.manual-code-box-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px dashed var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.manual-code-label-group {
    display: flex;
    flex-direction: column;
}

.manual-code-label-group .label-text {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.manual-code-label-group code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.copy-btn-premium {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--primary-blue);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn-premium:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.verification-section {
    margin-bottom: 1rem;
}

.form-label-premium {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.verify-input-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.verify-input-main {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
    transition: all 0.3s ease;
}

.verify-input-main:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 12, 102, 0.1);
    outline: none;
}

.verify-icon-float {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.btn-glow-blue {
    width: 100%;
    padding: 1rem !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001088 100%);
    position: relative;
    box-shadow: 0 10px 20px -5px rgba(0, 12, 102, 0.4);
}

.btn-glow-blue:hover {
    box-shadow: 0 15px 25px -5px rgba(0, 12, 102, 0.5);
    background: linear-gradient(135deg, #001088 0%, var(--primary-blue) 100%);
}

.auth-back-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.auth-back-link:hover {
    color: var(--primary-blue);
    transform: translateX(-5px);
}

.tfa-code-wrapper-premium {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.tfa-input-premium {
    width: 45px;
    height: 55px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s ease;
}

.tfa-input-premium:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 12, 102, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.tfa-input-premium.error {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.tfa-separator {
    width: 12px;
    height: 2px;
    background: var(--border-light);
}

.error-message-centered {
    display: block;
    text-align: center;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.tfa-help-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.tfa-help-text a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.tfa-help-text a:hover {
    text-decoration: underline;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Override DataTables pagination to match app button styles */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: white !important;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue) !important;
    padding: 0.45rem 0.75rem !important;
    margin: 0 0.25rem !important;
    border-radius: 0.625rem !important; /* match other buttons */
    font-weight: 700 !important;
    min-width: 36px !important;
    height: 36px !important;
    box-shadow: none !important;
    transition: all 160ms ease !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button a { color: inherit !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    background: var(--primary-blue) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,12,102,0.12) !important;
    border-color: var(--primary-blue) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #f1f5ff !important; /* light tint when selected */
    color: var(--text-dark) !important; /* dark text for contrast */
    border-color: var(--primary-blue) !important;
    box-shadow: 0 6px 14px rgba(2,6,23,0.06) !important;
    transform: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

