/* EcomDIY ERP admin — brand #f1652c */
.admin-page {
    animation: admin-fade-in 0.35s ease-out;
}

@keyframes admin-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-card:hover {
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05), 0 12px 28px rgba(241, 101, 44, 0.08);
}

.admin-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f1652c, #ff8a5c);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-stat-card:hover::before {
    opacity: 1;
}

.admin-table thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f1652c 0%, #e04e15 100%);
    border-radius: 0.625rem;
    box-shadow: 0 2px 8px rgba(241, 101, 44, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(241, 101, 44, 0.45);
}

.admin-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.admin-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-input:focus {
    outline: none;
    border-color: #f1652c;
    box-shadow: 0 0 0 3px rgba(241, 101, 44, 0.15);
}

.admin-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.admin-form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.admin-empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: capitalize;
}

.badge-success { background: #ecfdf5; color: #059669; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-info { background: #eff6ff; color: #2563eb; }
.badge-muted { background: #f1f5f9; color: #64748b; }

[x-cloak] { display: none !important; }
