/* فایل: assets/css/style.css */

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/ir-s.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSans', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    min-height: 100vh;
    direction: rtl;
    display: flex;
}

/* افکت شیشه‌ای (Glassmorphism) */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* سایدبار */
.sidebar {
    width: 260px;
    padding: 20px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar .logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00d2ff;
}

.sidebar a {
    text-decoration: none;
    color: #ddd;
    padding: 12px 15px;
    border-radius: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* محتوای اصلی */
.main-content {
    flex: 1;
    padding: 20px;
    margin: 20px 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topbar {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* کارت‌های آماری */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 2rem;
    margin-top: 10px;
    color: #00d2ff;
}

.stat-info p {
    color: #aaa;
    font-size: 0.9rem;
}

.icon {
    width: 40px;
    height: 40px;
    fill: #00d2ff;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar { width: auto; margin: 10px; flex-direction: row; flex-wrap: wrap; justify-content: center;}
    .main-content { margin: 10px; }
}
