        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

        :root {
            --primary: #8b5cf6;
            --primary-hover: #7c3aed;
            --primary-light: rgba(139, 92, 246, 0.1);
            --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
            --secondary: #64748b;
            --danger: #ef4444;
            --danger-hover: #dc2626;
            --success: #10b981;
            --surface: rgba(255, 255, 255, 0.75);
            --text-main: #1e293b;
            --text-muted: #64748b;
            --border: rgba(226, 232, 240, 0.6);
            --border-hover: rgba(203, 213, 225, 0.8);
            --radius-sm: 12px;
            --radius-md: 20px;
            --radius-lg: 32px;
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.025);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --max-width: 800px;
            --max-admin-width: 1200px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
        }

        body {
            color: var(--text-main);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            background: linear-gradient(-45deg, #f8fafc, #f1f5f9, #e0e7ff, #f3e8ff);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .hidden { display: none !important; }

        /* Typography */
        h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; letter-spacing: -0.02em; }
        .text-muted { color: var(--text-muted); }
        .text-sm { font-size: 0.875rem; }
        .text-center { text-align: center; }
        .text-right { text-align: right; }

        /* Layout */
        .container {
            width: 100%;
            margin: 0 auto;
            padding: 2rem 1rem;
            animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .user-container { max-width: var(--max-width); }
        .admin-container { max-width: var(--max-admin-width); }

        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Header */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        .logo { 
            display: flex; align-items: center; gap: 12px; font-size: 1.75rem; 
            font-weight: 800; background: var(--primary-gradient);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
            letter-spacing: -0.03em;
        }
        .logo svg { width: 36px; height: 36px; color: var(--primary); }

        /* Buttons */
        .btn {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 10px; padding: 0.6rem 1.25rem; font-size: 0.95rem; font-weight: 600;
            border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.5);
            cursor: pointer; transition: all var(--transition);
            background: var(--surface); color: var(--text-main);
            box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
        }
        .btn:hover:not(:disabled) { 
            transform: translateY(-2px); box-shadow: var(--shadow-md); 
            background: #ffffff; 
        }
        .btn:active:not(:disabled) { transform: translateY(0); }
        .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
        .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
        
        .btn-primary { 
            background: var(--primary-gradient); color: white; border: none; 
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        }
        .btn-primary:hover:not(:disabled) { 
            background: linear-gradient(135deg, #4f46e5, #7c3aed, #c026d3);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
            color: white; 
        }
        .btn-danger { color: white; background: var(--danger); border: none; }
        .btn-danger:hover:not(:disabled) { background: var(--danger-hover); color: white; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
        
        .btn-icon { padding: 0.6rem; border-radius: 50%; }
        
        /* Forms */
        .form-group { margin-bottom: 1.5rem; }
        label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.95rem; color: var(--text-main); }
        input[type="text"], input[type="password"] {
            width: 100%; padding: 0.85rem 1.25rem; border: 1px solid var(--border);
            border-radius: var(--radius-sm); font-size: 1rem; transition: all var(--transition);
            background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px);
            color: var(--text-main); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
        }
        input[type="text"]:focus, input[type="password"]:focus {
            outline: none; border-color: var(--primary); background: #ffffff;
            box-shadow: 0 0 0 4px var(--primary-light), inset 0 2px 4px rgba(0,0,0,0.02);
        }

        /* Card (Glassmorphism) */
        .card {
            background: var(--surface);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(255, 255, 255, 0.5);
            padding: 2.5rem;
            margin-bottom: 2rem;
            transition: transform var(--transition), box-shadow var(--transition);
        }
        .card:hover { box-shadow: var(--shadow-lg); }

        /* Drag & Drop Zone */
        .drop-zone {
            border: 2px dashed var(--primary);
            border-radius: var(--radius-md);
            padding: 3.5rem 2rem; text-align: center; cursor: pointer;
            transition: all var(--transition);
            background: rgba(255, 255, 255, 0.4);
            position: relative; overflow: hidden;
        }
        .drop-zone:hover, .drop-zone.dragover {
            background: var(--primary-light);
            border-style: solid;
            transform: scale(1.02);
        }
        .drop-zone svg { width: 56px; height: 56px; color: var(--primary); margin-bottom: 1.25rem; filter: drop-shadow(0 4px 6px rgba(139,92,246,0.3)); transition: transform var(--transition); }
        .drop-zone:hover svg { transform: translateY(-5px); }
        .drop-zone input { display: none; }

        /* File List */
        .file-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
        .file-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 1.25rem; background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(255,255,255,0.8);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-sm);
            animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
        }
        .file-item:hover { transform: translateX(5px); background: #ffffff; box-shadow: var(--shadow-md); }
        .file-info { display: flex; align-items: center; gap: 16px; overflow: hidden; }
        .file-info svg { color: #f43f5e; flex-shrink: 0; width: 28px; height: 28px; }
        .file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
        .file-size { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Summary Stats */
        .summary-stats {
            display: flex; justify-content: space-between; align-items: center;
            background: var(--primary-gradient);
            color: white; padding: 1.25rem 1.5rem;
            border-radius: var(--radius-sm); margin-top: 2rem; font-weight: 600;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
        }

        /* Admin Dashboard Grid */
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
        .stat-card {
            background: var(--surface); padding: 2rem; border-radius: var(--radius-md);
            box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0.5);
            display: flex; flex-direction: column; gap: 0.75rem;
            backdrop-filter: blur(12px); transition: transform var(--transition);
        }
        .stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
        .stat-value { font-size: 2.5rem; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

        /* Table */
        .table-responsive { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0.5); }
        table { width: 100%; border-collapse: collapse; background: var(--surface); overflow: hidden; backdrop-filter: blur(12px); }
        th, td { padding: 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
        th { background: rgba(241, 245, 249, 0.5); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; }
        tr:last-child td { border-bottom: none; }
        tr:hover td { background: rgba(255, 255, 255, 0.9); }
        .actions { display: flex; gap: 0.75rem; }

        /* Modal */
        .modal-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            display: flex; align-items: center; justify-content: center;
            z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        .modal {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto;
            padding: 2.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            border: 1px solid rgba(255,255,255,0.6);
            transform: scale(0.95) translateY(10px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .modal-overlay.active .modal { transform: scale(1) translateY(0); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
        .modal-footer { margin-top: 2.5rem; display: flex; justify-content: flex-end; gap: 1rem; }

        /* Toast */
        .toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 2000; display: flex; flex-direction: column; gap: 15px; }
        .toast {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-left: 5px solid var(--primary);
            padding: 1.25rem 2rem; border-radius: var(--radius-sm);
            box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px;
            animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.4s ease-out 2.6s forwards;
            font-weight: 600; color: var(--text-main); font-size: 1.05rem;
        }
        .toast.success { border-color: var(--success); }
        .toast.error { border-color: var(--danger); }
        @keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes fadeOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

        /* Search Bar */
        .search-bar { display: flex; gap: 1rem; margin-bottom: 2rem; }
        .search-bar input { flex: 1; max-width: 400px; }

        /* Loading Spinner */
        .spinner {
            border: 3px solid rgba(255,255,255,0.3); border-radius: 50%;
            border-top: 3px solid white; width: 20px; height: 20px;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* Badge */
        .badge {
            background: var(--primary-light); color: var(--primary);
            padding: 0.35rem 0.75rem; border-radius: 999px;
            font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
        }

        /* SVG Icons */
        .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
