:root {
    --bg-main: #0a0d14;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-cyan: #00f3ff;
    --accent-purple: #7928ca;
    --accent-pink: #ff007f;
    --accent-green: #00ff88;
    --text-main: #f0f4fc;
    --text-muted: #8b9bb4;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.12) 0%, rgba(121, 40, 202, 0.06) 60%, transparent 100%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.logo-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.45);
    background: #000;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.logo-box:hover {
    transform: scale(1.08);
    box-shadow: 0 0 28px rgba(0, 243, 255, 0.7);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brand-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text span {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 243, 255, 0.1);
    color: #fff;
    border-left: 3px solid var(--accent-cyan);
}

.storage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 14px;
}

.storage-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 10px;
}

.storage-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.drive-badge {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-align: center;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    flex-grow: 1;
    max-width: 500px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 0.95rem;
}

.topbar-actions {
    display: flex;
    gap: 0.8rem;
}

.btn {
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
}

.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--accent-cyan);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.icon-blue { background: rgba(0, 243, 255, 0.15); color: var(--accent-cyan); }
.icon-purple { background: rgba(121, 40, 202, 0.15); color: #c084fc; }
.icon-green { background: rgba(0, 255, 136, 0.15); color: var(--accent-green); }
.icon-cyan { background: rgba(255, 0, 127, 0.15); color: var(--accent-pink); }

.stat-info h3 { font-size: 1.4rem; font-weight: 700; }
.stat-info p { font-size: 0.8rem; color: var(--text-muted); }

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.02);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--accent-cyan);
}

.drop-icon {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
}

/* Files Table */
.files-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.section-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.section-title span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.files-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.files-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.files-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.file-name-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-synced {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.badge-uploading {
    background: rgba(0, 243, 255, 0.15);
    color: var(--accent-cyan);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.action-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.1);
}

.action-btn.btn-delete:hover {
    color: #ff3366;
    background: rgba(255, 51, 102, 0.15);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    position: relative;
}

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