@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00f2fe;
    --primary-hover: #4facfe;
    --secondary: #fa709a;
    --danger: #ff4b2b;
    --danger-hover: #ff416c;
    --success: #00b09b;
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --input-bg: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.4);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(50px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 242, 254, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(250, 112, 154, 0.08), transparent 25%);
    background-color: var(--background);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

.dashboard-container::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

/* Login Page Details */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #00f2fe, #fa709a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements for login */
.login-page::before, .login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.login-page::before {
    top: -50px;
    left: -50px;
}

.login-page::after {
    bottom: -50px;
    right: -50px;
    animation-delay: 3s;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 2;
}

.login-box {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
}

.login-box h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.login-box .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:not([type="checkbox"]):focus {
    outline: none;
    background-color: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* OTP Block */
.otp-block {
    background: var(--surface) !important;
    border: 1px dashed var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease-out;
}

.otp-block h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
    padding: 0.875rem;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--input-bg);
}

.btn-danger {
    background-color: var(--surface);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
    display: none;
}

.message.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message.info {
    display: block;
    background-color: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.signup-link {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.signup-link a {
    font-weight: 600;
}

/* Dashboard Header */
.header {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.user-info {
    font-weight: 500;
    color: var(--text-main);
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Cards */
.card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideUp 0.8s ease-out backwards;
    position: relative;
    z-index: 1;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 242, 254, 0.25);
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(0, 242, 254, 0.5);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Upload Section */
.upload-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-section .form-group input[type="file"] {
    position: relative;
    padding: 2rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--input-bg);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.upload-section .form-group input[type="file"]:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--input-bg);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar.hidden {
    display: none;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

/* Files Grid */
.files-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.file-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out backwards;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.file-card:nth-child(1) { animation-delay: 0.1s; }
.file-card:nth-child(2) { animation-delay: 0.2s; }
.file-card:nth-child(3) { animation-delay: 0.3s; }
.file-card:nth-child(4) { animation-delay: 0.4s; }
.file-card:nth-child(5) { animation-delay: 0.5s; }
.file-card:nth-child(6) { animation-delay: 0.6s; }

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.file-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.file-card:hover::before {
    opacity: 1;
}

.file-card-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-card-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.file-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.file-card-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideUp 0.6s ease-out backwards;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; border-top: 4px solid var(--primary); }
.stat-card:nth-child(2) { animation-delay: 0.2s; border-top: 4px solid var(--secondary); }
.stat-card:nth-child(3) { animation-delay: 0.3s; border-top: 4px solid var(--success); }
.stat-card:nth-child(4) { animation-delay: 0.4s; border-top: 4px solid var(--danger); }

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(250, 112, 154, 0.25);
    border-color: rgba(250, 112, 154, 0.5);
    animation: pulseBorder 2s infinite;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* User Table */
.user-table {
    padding: 0;
    overflow: hidden;
}

.user-table h2 {
    padding: 1.5rem 2rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.table-responsive {
    overflow-x: auto;
}

.user-table table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: var(--input-bg);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.user-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    vertical-align: middle;
}

.user-table tbody tr {
    transition: var(--transition);
}

.user-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending { background: #fef3c7; color: #d97706; }
.status-approved { background: #d1fae5; color: #059669; }
.status-rejected { background: #fee2e2; color: #dc2626; }

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.25rem;
    transition: var(--transition);
}

.approve-btn { 
    background: rgba(16, 185, 129, 0.1); 
    color: #059669; 
}
.approve-btn:hover {
    background: var(--success);
    color: white;
}

.reject-btn { 
    background: rgba(239, 68, 68, 0.1); 
    color: #dc2626; 
}
.reject-btn:hover {
    background: var(--danger);
    color: white;
}

.delete-btn { 
    background: rgba(100, 116, 139, 0.1); 
    color: #475569; 
}
.delete-btn:hover {
    background: #475569;
    color: white;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    background: var(--input-bg);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .header-right .btn {
        flex: 1;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .card h2 {
        font-size: 1.15rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }
    
    .login-container {
        padding: 1rem;
    }

    .login-box {
        padding: 2rem 1.25rem;
    }

    .login-box h1 {
        font-size: 1.75rem;
    }

    .files-container {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .user-table th, .user-table td {
        padding: 0.85rem 0.6rem;
        font-size: 0.85rem;
    }

    .user-table h2 {
        font-size: 1.15rem;
        padding: 1.25rem 1rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .action-btn {
        margin-bottom: 0.4rem;
        width: 100%;
    }
}

/* Tabs System */
.tab-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.1);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* PDF Tools Section */
.pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pdf-tool-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pdf-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: var(--transition);
}

.pdf-tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 15px 35px -5px rgba(0, 242, 254, 0.2);
}

.pdf-tool-card:hover::before {
    opacity: 1;
}

.pdf-tool-icon {
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.pdf-tool-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.pdf-tool-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex-grow: 1;
}

.pdf-tool-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    transition: var(--transition);
}

.pdf-tool-card:hover .pdf-tool-action {
    color: var(--secondary);
    transform: translateX(3px);
}

/* Modals for PDF Tool Actions */
.pdf-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 550px;
    width: 95%;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.pdf-modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.pdf-modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.pdf-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pdf-modal-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    background: var(--input-bg);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.pdf-modal-dropzone:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.02);
}

.pdf-modal-dropzone i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.pdf-modal-dropzone p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.pdf-modal-dropzone span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.pdf-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Custom Mobile Responsive Adjustments */
@media screen and (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .nav-links a, .nav-links span {
        width: 100%;
        text-align: center;
    }
    .main-content, .dashboard-container {
        padding: 0.5rem !important;
    }
    .card {
        padding: 1rem !important;
    }
    .files-container, .pdf-tools-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Premium Dashboard Enhancement */
.dashboard-container {
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.1), transparent), radial-gradient(circle at bottom left, rgba(250, 112, 154, 0.1), transparent), #090e1a !important;
}
.navbar {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1rem 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.upload-area, .files-section, .pdf-tools-grid .pdf-tool-card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-xl) !important;
    padding: 2rem !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    transition: var(--transition) !important;
}
.upload-area:hover, .pdf-tools-grid .pdf-tool-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.15) !important;
}

/* Spectacular Animated Aesthetics */
.dashboard-container {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tab-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s !important;
}
.tab-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    color: var(--primary) !important;
}
.file-card, .pdf-tool-card {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards !important;
}
.file-card:hover, .pdf-tool-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 25px 50px rgba(250, 112, 154, 0.2) !important;
}
.btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s !important;
}
.btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: var(--shadow-glow) !important;
}

.main-content-wrapper {
    padding: 1rem 1.5rem !important;
    margin: 1.5rem 1rem !important;
}

/* Screenshot Color Matching */
.dashboard-container {
    background: #0d111c !important;
}
.navbar {
    background: #141b2d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.25rem 2.5rem !important;
}
.upload-area, .files-section, .pdf-tools-grid .pdf-tool-card {
    background: #1e2538 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}
.upload-area:hover, .pdf-tools-grid .pdf-tool-card:hover {
    border-color: #00f2fe !important;
}
.tab-btn {
    color: #94a3b8 !important;
}
.tab-btn.active {
    color: #00f2fe !important;
    background: rgba(0, 242, 254, 0.05) !important;
    border-bottom: 2px solid #00f2fe !important;
}

