/* Admin Layout */
.admin-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-header h1 { font-size: 1.8rem; color: #f8fafc; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { 
    background: #1e293b; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
    text-align: center; 
    border: 1px solid #334155;
}
.stat-card h3 { font-size: 2rem; color: #60a5fa; margin-bottom: 5px; } /* آبی روشن‌تر برای کنتراست بهتر */
.stat-card p { color: #94a3b8; font-size: 0.9rem; }

/* Admin Table */
.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #1e293b; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
    border: 1px solid #334155;
}
.admin-table th, .admin-table td { padding: 15px; text-align: right; border-bottom: 1px solid #334155; color: #e2e8f0; }
.admin-table th { background: #0f172a; font-weight: 600; color: #cbd5e1; }
.admin-table tr:hover { background: #334155; }
.admin-table tr:last-child td { border-bottom: none; }

/* Admin Buttons */
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 6px; text-decoration: none; display: inline-block; margin-left: 5px; color: #fff; transition: opacity 0.2s; }
.btn-sm:hover { opacity: 0.9; }
.btn-success { background: #059669; } /* سبز تیره‌تر و اشباع‌شده برای دارک مود */
.btn-danger { background: #dc2626; } /* قرمز تیره‌تر و اشباع‌شده */
.btn-warning { background: #d97706; color: #fff; } /* نارنجی تیره‌تر برای خوانایی بهتر متن سفید */
.btn-primary { background: #2563eb; color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; }
.btn-primary:hover { background: #1d4ed8; }

/* Import Form */
.import-box { 
    background: #1e293b; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
    max-width: 600px; 
    margin: 0 auto; 
    border: 1px solid #334155;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #cbd5e1; }
.form-group input[type="file"] { 
    width: 100%; 
    padding: 10px; 
    background: #0f172a;
    color: #e2e8f0;
    border: 2px dashed #475569; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: border-color 0.3s;
}
.form-group input[type="file"]:hover { border-color: #60a5fa; }

/* Alert Messages */
.alert { padding: 12px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; }
/* موفقیت: پس‌زمینه سبز تیره، متن سبز روشن */
.alert-success { background: #064e3b; color: #6ee7b7; border: 1px solid #059669; }
/* خطا: پس‌زمینه قرمز تیره، متن قرمز روشن */
.alert-error { background: #450a0a; color: #fca5a5; border: 1px solid #b91c1c; }
/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.page-link:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.page-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-dots {
    padding: 8px 4px;
    color: #64748b;
}