/* تم تیره اسپورتی - سبک و سریع */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #0a0f1e;  /* پس‌زمینه تیره اصلی */
    min-height: 100vh;
    padding: 15px;
}

/* کانتینر اصلی - با حاشیه نارنجی اسپورتی */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #141a2b;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* تیترها با رنگ نارنجی - اسپورتی */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6b35;  /* نارنجی پرانرژی */
    letter-spacing: -0.5px;
}

h2 {
    font-size: 20px;
    margin: 20px 0 15px 0;
    color: #ffb347;  /* نارنجی روشن */
    border-right: 4px solid #ff6b35;
    padding-right: 12px;
}

/* فرم‌ها - پس‌زمینه تیره با مرزهای نارنجی */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #cfd8e6;
    font-size: 13px;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #2a3346;
    border-radius: 10px;
    font-size: 14px;
    background: #1e2538;
    color: #ffffff;
    transition: 0.15s;
}

input:focus, select:focus {
    outline: none;
    border-color: #ff6b35;
    background: #232b40;
}

/* دکمه اصلی - نارنجی اسپورتی */
button, .btn {
    background: #ff6b35;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: 0.15s;
    box-shadow: 0 2px 6px rgba(255,107,53,0.3);
}

button:hover, .btn:hover {
    background: #ff5722;
    transform: scale(0.97);
}

/* جدول با استایل تیره و شفاف */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #1e2538;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: #ff6b35;
    color: #ffffff;
    padding: 12px;
    text-align: right;
    font-size: 13px;
    font-weight: bold;
}

td {
    padding: 12px;
    border-bottom: 1px solid #2a3346;
    font-size: 13px;
    color: #e0e6f0;
}

tr:hover td {
    background: #252e44;
}

/* نوار منو - تیره با لینک‌های نارنجی */
.navbar {
    background: #0f1420;
    padding: 12px 20px;
    margin-bottom: 24px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #2a3346;
    color: #ffb347;
}

.navbar a {
    color: #ffb347;
    text-decoration: none;
    margin: 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.navbar a:hover {
    color: #ff6b35;
    text-decoration: none;
}

/* کارت‌های آماری با رنگ‌های اسپورتی متنوع */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #1e2538, #161d2e);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    color: white;
    border-bottom: 3px solid #ff6b35;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffb347;
}

.stat-label {
    font-size: 13px;
    margin-top: 8px;
    color: #a0aec0;
    letter-spacing: 0.5px;
}

/* پیام‌ها */
.alert {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #1f3a2f;
    color: #6fef9b;
    border-right: 4px solid #2ecc71;
}

.alert-error {
    background: #3d2428;
    color: #ff8a7a;
    border-right: 4px solid #ff6b35;
}

/* دکمه‌های کوچک اکشن */
.delete-btn {
    background: #dc3545;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 30px;
}
.edit-btn {
    background: #f39c12;
    color: #1e1e2f;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 30px;
}
.view-btn {
    background: #2ecc71;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 30px;
}

/* بج فایل‌ها */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: bold;
}
.badge-pdf { background: #e74c3c; color: white; }
.badge-image { background: #2ecc71; color: #111; }
.badge-zip { background: #f1c40f; color: #111; }
.badge-doc { background: #3498db; color: white; }
.badge-other { background: #95a5a6; color: white; }

/* جستجو */
.search-box {
    width: 100%;
    max-width: 260px;
    padding: 9px 16px;
    border: 1px solid #2a3346;
    border-radius: 40px;
    margin-bottom: 18px;
    font-size: 13px;
    background: #1e2538;
    color: white;
}
.search-box:focus {
    border-color: #ff6b35;
}

/* تب‌ها */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab-btn {
    background: #1e2538;
    color: #cfd8e6;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: bold;
}
.tab-btn.active {
    background: #ff6b35;
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* کپچا */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.captcha-image {
    border-radius: 12px;
    border: 1px solid #ff6b35;
    height: 44px;
    cursor: pointer;
    background: #2a3346;
}
.refresh-captcha {
    background: #3a445b;
    padding: 5px 14px;
    font-size: 12px;
}

/* نمایشگر حجم */
.file-size {
    direction: ltr;
    font-size: 12px;
    color: #a0aec0;
}

/* Responsive سریع */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 14px;
    }
    h1 {
        font-size: 22px;
    }
    h2 {
        font-size: 18px;
    }
    .stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stat-number {
        font-size: 26px;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    th, td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    button, .btn {
        width: 100%;
        text-align: center;
    }
    .tab-btn {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-image {
        width: 100%;
        height: auto;
    }
}