/* AtyrauMarket SaaS Admin Panel Styling */

.admin-banner {
    background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
    color: #FFFFFF;
    padding: 28px 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-banner-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.admin-banner-sub {
    font-size: 14px;
    color: #9CA3AF;
}

/* 4 KPI Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-muted);
    font-weight: 600;
    margin-top: 4px;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* Admin Tabs Bar */
.admin-tabs-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background: #FFFFFF;
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-border);
}

.admin-tab-btn {
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-md);
    color: var(--dark-muted);
    transition: all 0.2s ease;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
    background: var(--primary);
    color: #FFFFFF;
}

/* Admin Data Tables */
.admin-table-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    background: var(--gray-bg);
    padding: 14px 18px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-border);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-border);
    color: #333333;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
