:root {
    --bg-dark: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}
body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    color: var(--text-main);
    min-height: 100vh;
}
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    padding: 1rem;
    gap: 1rem;
    box-sizing: border-box;
}
.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
}
.logo i { color: var(--primary); font-size: 2rem; }
.nav-menu { display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}
.nav-item:hover, .nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}
.storage-info {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}
.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 0.75rem 0;
    overflow: hidden;
}
.progress { height: 100%; background: var(--primary); }
.upgrade-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: 300px;
}
.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.user-profile { display: flex; align-items: center; gap: 1rem; }
.icon-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; }
.avatar img { width: 40px; height: 40px; border-radius: 50%; }
.content-area { padding: 1rem 0; display: flex; flex-direction: column; gap: 1.5rem; }
.page-title { margin: 0; font-size: 1.8rem; font-weight: 700; }
.upload-section {
    padding: 3rem;
    text-align: center;
    border: 2px dashed rgba(99, 102, 241, 0.4);
}
.upload-icon { font-size: 4rem; color: var(--primary); }
.browse-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
    font-family: inherit;
}
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.file-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}
.file-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255,255,255,0.05);
}
.file-icon.pdf { color: #ef4444; }
.file-icon.video { color: #8b5cf6; }
.file-icon.archive { color: #f59e0b; }
.file-info { flex-grow: 1; }
.file-info h4 { margin: 0 0 0.25rem 0; font-size: 1rem; direction: ltr; text-align: right; }
.file-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Dashboard Expansion ===== */

.app-container{
    max-width:1800px;
    margin:auto;
}

.main-content{
    padding:30px;
}

.page-title{
    font-size:2.8rem;
    margin-bottom:25px;
}

.top-header{
    padding:20px;
}

.search-bar input{
    font-size:1rem;
}

/* ===== Hero Banner ===== */

.hero-banner{
    padding:40px;
    margin-bottom:30px;
    overflow:hidden;
}

.hero-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.hero-content img{
    width:520px;
    max-width:45%;
    border-radius:24px;
    object-fit:cover;
    box-shadow:0 20px 40px rgba(0,0,0,.2);
}

.hero-content h2{
    font-size:3rem;
    margin-bottom:15px;
}

.hero-content p{
    font-size:1.2rem;
    line-height:2;
    max-width:700px;
}

.hero-content .browse-btn{
    margin-top:20px;
}

/* ===== Stats ===== */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:35px;
}

.stat-card{
    text-align:center;
    padding:30px;
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card img{
    width:80px;
    height:80px;
    object-fit:contain;
    margin-bottom:15px;
}

.stat-card h3{
    font-size:2rem;
    margin:10px 0;
}

.stat-card span{
    opacity:.8;
}

/* ===== Upload ===== */

.upload-section{
    padding:35px;
}

.upload-icon{
    font-size:5rem !important;
}

.upload-content h3{
    font-size:1.8rem;
}

/* ===== Files ===== */

.file-grid{
    display:grid;
    gap:20px;
}

.file-card{
    display:flex;
    align-items:center;
    gap:18px;
    padding:20px;
    transition:.3s;
}

.file-card:hover{
    transform:translateY(-3px);
}

.file-thumb{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:16px;
    flex-shrink:0;
}

.file-info{
    flex:1;
}

.file-info h4{
    font-size:1.1rem;
    margin-bottom:8px;
}

.file-info span{
    opacity:.75;
}

/* ===== Sidebar ===== */

.sidebar{
    width:320px;
}

.logo{
    font-size:1.5rem;
}

.nav-item{
    font-size:1rem;
    padding:14px 18px;
}

/* ===== Responsive ===== */

@media(max-width:1200px){

    .hero-content{
        flex-direction:column;
        text-align:center;
    }

    .hero-content img{
        max-width:100%;
        width:100%;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .sidebar{
        width:280px;
    }
}

/* Chrome / Edge / Opera */

::-webkit-scrollbar{
    width:12px;
}

::-webkit-scrollbar-track{
    background:#0f172a;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #6366f1,
        #8b5cf6
    );
    border-radius:20px;
    border:2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover{
    background:#7c3aed;
}