/* frontend/css/style.css */
:root {
    /* Glassmorphic Dark Default (Restored Vibrance) */
    --bg-main: #0f172a;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --bg-glass-hover: rgba(51, 65, 85, 0.8);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    --secondary: #8b5cf6;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --surface: #1e293b;
    --surface-hover: rgba(255,255,255,0.05);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary: #7c3aed;
    --surface: #ffffff;
    --surface-hover: rgba(0,0,0,0.05);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="oceanic"] {
    --bg-main: #0c2461;
    --bg-glass: rgba(10, 61, 98, 0.75);
    --border-glass: rgba(255, 255, 255, 0.15);
    --primary: #82ccdd;
    --primary-hover: #60a3bc;
    --primary-glow: rgba(130, 204, 221, 0.4);
    --surface: rgba(10, 61, 98, 0.9);
}

[data-theme="terminal"] {
    --bg-main: #000000;
    --bg-glass: rgba(0, 20, 0, 0.9);
    --border-glass: #33ff00;
    --text-main: #33ff00;
    --text-muted: #1e90ff;
    --primary: #33ff00;
    --primary-hover: #00cc00;
    --primary-glow: rgba(51, 255, 0, 0.5);
    --danger: #ff0000;
    --surface: #000000;
}

[data-theme="dracula"] {
    --bg-main: #282a36;
    --bg-glass: rgba(68, 71, 90, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f8f8f2;
    --text-muted: #6272a4;
    --primary: #bd93f9;
    --primary-hover: #ff79c6;
    --primary-glow: rgba(189, 147, 249, 0.5);
    --danger: #ff5555;
    --success: #50fa7b;
    --surface: #44475a;
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* typography */
h1, h2, h3, h4 { font-weight: 600; }
a { color: var(--primary); text-decoration: none; }

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.glass-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

/* Login Screen */
.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.logo-area { margin-bottom: 30px; }
.logo-area h2 { margin-top: 15px; font-size: 2rem; letter-spacing: -0.5px; }

.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 14px 15px 14px 45px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-base);
}
.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-block { width: 100%; }

.error-msg { color: var(--danger); font-size: 0.9rem; margin-bottom: 15px; min-height: 20px; }

/* Main App Layout */
#app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 0;
    overflow-y: auto;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 84px;
    padding: 24px 15px;
}

.sidebar.collapsed .sidebar-header h3,
.sidebar.collapsed .nav-menu li span,
.sidebar.collapsed .storage-info,
.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    margin-bottom: 30px;
}

.sidebar.collapsed .nav-menu li {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .nav-menu li i {
    font-size: 1.4rem;
    margin: 0;
}

.sidebar.collapsed .sidebar-footer {
    justify-content: center;
}

.sidebar.collapsed #logout-btn {
    margin-left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
    margin-bottom: 20px;
}

.sidebar-group {
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    transition: 0.3s;
}

.group-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.group-header i {
    transition: transform 0.3s;
    font-size: 0.7rem;
}

.sidebar-group.collapsed .group-header i {
    transform: rotate(-90deg);
}

.group-list {
    list-style: none;
    padding: 10px 5px;
    transition: max-height 0.4s ease-in-out;
    overflow: hidden;
    max-height: 800px;
}

.sidebar-group.collapsed .group-list {
    max-height: 0;
    padding: 0;
}

.nav-menu li, .group-list li:not(.sidebar-search) {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-menu li i, .group-list li i {
    width: 20px;
    text-align: center;
}

.nav-menu li:hover, .group-list li:hover:not(.sidebar-search) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-menu li.active {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.sidebar-search {
    padding: 5px 10px 15px 10px !important;
}

.search-box-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    width: 100%;
}

.search-box-sidebar input {
    background: none;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-bottom: 5px;
    padding: 10px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}
/* Sidebar Toggle Button */
#sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

#sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.storage-info {
    padding: 20px 0;
    border-top: 1px solid var(--border-glass);
    margin-top: auto;
}
.storage-text { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500;}
.progress-bar { height: 6px; background: rgba(0,0,0,0.3); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.storage-info small { color: var(--text-muted); }

.sidebar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}
.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-glow); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.user-info { display: flex; flex-direction: column; }
.user-info span { font-weight: 600; font-size: 0.95rem; }
.user-info small { color: var(--text-muted); font-size: 0.8rem; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
    font-size: 1rem;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.icon-btn.active { color: var(--primary); background: var(--primary-glow); }

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.toolbar {
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0; /* Important for ellipsis */
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb .path-segment {
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.search-bar {
    position: absolute;
    right: 100%;
    margin-right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0 15px;
    width: 300px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.search-bar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(20px);
}

.search-bar:focus-within {
    border-color: var(--primary);
    width: 400px;
    background: rgba(0, 0, 0, 0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.search-filters {
    margin: 10px 20px 20px 20px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 40px;
    z-index: 10;
    border: 1px solid var(--border-glass);
}

.filter-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.filter-options label:hover {
    background: rgba(255,255,255,0.1);
}

.filter-options input {
    accent-color: var(--primary);
}

.breadcrumb { font-weight: 500; font-size: 1.1rem; display: flex; gap: 8px; align-items: center;}
.breadcrumb .path-segment { cursor: pointer; transition: color 0.2s; }
.breadcrumb .path-segment:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-muted); font-size: 0.8rem; }
.view-toggle { display: flex; background: rgba(0,0,0,0.2); border-radius: var(--radius-md); padding: 4px; }

/* File Explorer */
.file-area {
    flex-grow: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

#drop-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(4px);
    z-index: 50;
    border: 3px dashed var(--primary);
    border-radius: var(--radius-lg);
}
.drop-message { text-align: center; color: var(--primary); }
.drop-message i { margin-bottom: 15px; animation: bounce 2s infinite; }

/* Grid View */
.grid-view #file-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* Redesigned File Item Card */
.file-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.file-item.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 20px var(--primary-glow);
}

.file-icon { font-size: 3rem; margin-bottom: 15px; }
.icon-folder { color: var(--primary); }
.icon-image { color: var(--success); }
.icon-pdf { color: var(--danger); }
.icon-archive { color: var(--warning); }
.icon-default { color: var(--text-muted); }

.file-name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

/* List View */
.list-view #file-list-container { display: flex; flex-direction: column; gap: 8px; }
.list-view .file-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 12px 20px;
}
.list-view .file-icon { font-size: 1.5rem; margin-bottom: 0; margin-right: 15px; width: 30px; text-align: center;}
.list-view .file-name { flex-grow: 1; font-size: 1rem; }
.list-view .file-meta { width: 150px; text-align: right; }

/* Context Menu */
#context-menu {
    position: fixed;
    z-index: 10000;
    width: 200px;
    padding: 8px 0;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#context-menu ul { list-style: none; }
#context-menu li {
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: 0.2s;
}
#context-menu li:hover { background: rgba(255,255,255,0.1); }
#context-menu .divider { height: 1px; background: var(--border-glass); margin: 5px 0; padding: 0; }
.text-danger { color: var(--danger); }

/* Welcome Header */
#welcome-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}
#welcome-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.fade-out {
    animation: fadeOut 0.5s forwards;
}
.fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Spinner */
.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Upload Manager */
#upload-manager {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.um-header {
    background: rgba(0,0,0,0.4);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}
.um-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}
.upload-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.upload-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.upload-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.upload-status { color: var(--text-muted); }
.upload-status.done { color: var(--success); }
.upload-status.error { color: var(--danger); }
.upload-progress { height: 4px; background: rgba(0,0,0,0.4); border-radius: 2px; overflow: hidden; }
.upload-fill { height: 100%; background: var(--primary); width: 0%; transition: 0.3s; }

/* Scrollbar Customization */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* Settings Dashboard Tabs */
.settings-tabs { list-style: none; padding: 0; margin: 0; }
.settings-tabs .tab-btn { 
    padding: 15px 20px; 
    font-weight: 500; 
    cursor: pointer; 
    color: var(--text-muted); 
    transition: all 0.3s ease; 
    border-left: 3px solid transparent; 
    display: flex;
    align-items: center;
    border-radius: 0 8px 8px 0;
    margin-right: 15px;
}
.settings-tabs .tab-btn i { width: 25px; transition: transform 0.3s ease; }
.settings-tabs .tab-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-main); }
.settings-tabs .tab-btn:hover i { transform: scale(1.1); color: var(--text-main); }
.settings-tabs .tab-btn.active { 
    color: var(--primary); 
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, transparent 100%);
    border-left-color: var(--primary); 
    box-shadow: inset 3px 0px 0px 0px var(--primary);
}

/* New Login Redesign Styles */
.login-card {
    display: flex;
    width: 800px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.login-sidebar {
    width: 40%;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: white;
}

.login-sidebar .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.login-sidebar .logo i { font-size: 2rem; }
.login-sidebar .logo h2 { font-size: 1.8rem; letter-spacing: -1px; margin:0; }

.features-list {
    flex-grow: 1;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.feature-item i {
    background: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature-item h3 { font-size: 1rem; margin: 0 0 2px 0; color:white; }
.feature-item p { font-size: 0.8rem; opacity: 0.8; margin:0; }

.login-sidebar-footer {
    display: flex;
    gap: 20px;
}

.btn-link {
    background: none;
    border: none;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    opacity: 0.8;
}

.btn-link:hover { opacity: 1; }

.login-form-side {
    width: 60%;
    background: #111;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-side form {
    width: 100%;
    max-width: 320px;
}

.login-form-side h2 { margin-bottom: 5px; font-size: 1.8rem; color:white; }
.login-form-side .text-muted { margin-bottom: 30px; letter-spacing: 1px; }

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.form-options .btn-link { color: var(--text-muted); text-decoration: none; }
.form-options .btn-link:hover { color: white; }

/* Responsive Login */
@media (max-width: 850px) {
    .login-card { width: 90%; height: auto; flex-direction: column; }
    .login-sidebar { width: 100%; padding: 30px; }
    .login-form-side { width: 100%; padding: 30px; }
}

/* Modals & Other Utilities */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    background: #1a1a1a;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body { padding: 25px; }
.modal-input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    margin-top: 5px;
    font-family: inherit;
}
