/* Admin Dashboard Styles */
.admin-header {
    margin-bottom: 32px;
    text-align: center;
}

.admin-header h2 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-header p {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.admin-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-controls .form-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.admin-controls label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
    gap: 20px;
}

.admin-loading[hidden] {
    display: none;
}

.admin-loading p {
    font-size: 1rem;
    color: var(--muted);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.summary-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.summary-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.store-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.store-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.store-performance {
    font-size: 2rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 8px;
}

.store-performance.good {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.store-performance.medium {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.store-performance.poor {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.store-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.store-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.store-stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.store-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.admin-no-data {
    text-align: center;
    padding: 80px 32px;
    color: var(--muted);
}

.admin-no-data p:first-child {
    font-size: 3rem;
    margin-bottom: 16px;
}

.admin-no-data p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.admin-no-data .small {
    font-size: 0.85rem;
    margin-top: 12px;
}
