/* Smart Gym – Modern Dashboard Design */
/* Typography: Plus Jakarta Sans | Accent: Emerald */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --success: #22c55e;
    --success-soft: rgba(34, 197, 94, 0.15);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.15);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.15);
    --bg-base: #0f1419;
    --bg-elevated: #1a2332;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --border: rgba(148, 163, 184, 0.12);
    --border-focus: rgba(16, 185, 129, 0.4);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== LAYOUT: SIDEBAR + MAIN ===== */
.app-wrap {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition), width var(--transition);
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.sidebar-brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav-section {
    margin-bottom: 24px;
}

.sidebar-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 0 12px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 2px;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--text);
}

.nav-link.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
}

.sidebar-user {
    padding: 16px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-user-info {
    margin-bottom: 12px;
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.sidebar-user-role {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ===== MAIN CONTENT ===== */
.main-area {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
}

.topbar {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.main-content {
    flex: 1;
    padding: 28px 32px 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ===== DASHBOARD STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-lg);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-wrap.primary {
    background: var(--success-soft);
    color: var(--success);
}

.stat-icon-wrap.accent {
    background: var(--info-soft);
    color: var(--info);
}

.stat-icon-wrap.warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.stat-icon-wrap.danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-value {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
}

.stat-change {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* Legacy stat-icon for backward compatibility */
.stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: var(--shadow);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
    opacity: 0.9;
}

.card-body {
    padding: 22px;
    color: var(--text);
}

.card-body p {
    margin-bottom: 10px;
    font-size: 14px;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body strong {
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 6px;
}

/* ===== ROW GRID ===== */
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 14px 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

tbody tr:hover {
    background: rgba(16, 185, 129, 0.04);
}

td {
    padding: 16px 18px;
    font-size: 14px;
    color: var(--text);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-soft);
    color: #f87171;
}

.badge-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-info {
    background: var(--info-soft);
    color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-focus);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: var(--danger-soft);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ===== ATTENDANCE (Member) ===== */
.attendance-status-card .card-body {
    padding: 32px 24px;
}

.attendance-cta {
    text-align: center;
    padding: 24px 16px;
    max-width: 420px;
    margin: 0 auto;
}

.attendance-cta-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.attendance-cta-icon--active {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
}

.attendance-cta-icon--done {
    background: var(--success-soft);
    color: var(--success);
}

.attendance-cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.attendance-cta-desc,
.attendance-cta-time,
.attendance-cta-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.attendance-cta-form {
    margin-top: 8px;
}

.attendance-cta-form .btn {
    min-width: 160px;
}

/* ===== CHARTS ===== */
.chart-container {
    position: relative;
    height: 320px;
    padding: 16px 0;
}

.chart-container canvas {
    max-height: 100%;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-success {
    background: var(--success-soft);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-error {
    background: var(--danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-warning {
    background: var(--warning-soft);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.alert-info {
    background: var(--info-soft);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-sidebar);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer p {
    margin: 4px 0;
}

.footer i {
    color: var(--danger);
}

/* ===== PROFILE BLOCK (Member dashboard) ===== */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.profile-item {
    font-size: 14px;
}

.profile-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ===== MOBILE: SIDEBAR TOGGLE ===== */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
        z-index: 1001;
    }

    .main-area {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .topbar {
        padding: 16px 20px;
        gap: 12px;
    }

    .main-content {
        padding: 20px;
        max-width: 100%;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }

    .sidebar-brand {
        padding: 20px;
    }

    .sidebar-brand-text {
        font-size: 1rem;
    }

    .main-content {
        padding: 16px;
    }

    .topbar {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 16px;
        border-radius: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 12px;
    }

    .card {
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .card-header {
        padding: 14px 16px;
        gap: 12px;
    }

    .card-header h2 {
        font-size: 0.95rem;
    }

    .card-body {
        padding: 16px;
    }

    .table-responsive {
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 13px;
    }

    thead th {
        padding: 12px 14px;
        font-size: 11px;
    }

    td {
        padding: 12px 14px;
        font-size: 13px;
        word-break: break-word;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .chart-container {
        min-height: 250px;
        padding: 12px 0;
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 220px;
    }

    .sidebar-brand-text {
        display: none;
    }

    .sidebar-brand-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 14px;
    }

    .topbar {
        padding: 12px 14px;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .card-header {
        padding: 12px 14px;
    }

    .card-body {
        padding: 14px;
    }

    .dashboard-row {
        gap: 16px;
    }

    .table-responsive {
        margin: 0 -14px;
        padding: 0 14px;
    }

    table {
        min-width: 100%;
    }

    .profile-grid {
        grid-template-columns: 1fr !important;
    }

    .profile-item {
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 200px;
    }

    .sidebar-nav-label {
        font-size: 10px;
        padding: 0 8px 6px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .nav-link i {
        width: 18px;
        font-size: 1rem;
    }

    .sidebar-user {
        padding: 12px;
    }

    .sidebar-user-name {
        font-size: 13px;
    }

    .sidebar-user-role {
        font-size: 11px;
    }

    .btn-logout {
        padding: 8px 12px;
        font-size: 12px;
    }

    .main-content {
        padding: 12px;
    }

    .topbar {
        padding: 12px;
        gap: 8px;
    }

    .sidebar-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .page-title {
        font-size: 1rem;
        font-weight: 600;
    }

    .page-subtitle {
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 12px;
        border-radius: 8px;
    }

    .stat-icon-wrap {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .stat-label {
        font-size: 12px;
        margin: 8px 0 4px 0;
    }

    .stat-value {
        font-size: 1.3rem;
        line-height: 1.1;
    }

    .stat-change {
        font-size: 11px;
        margin-top: 4px;
    }

    .card {
        border-radius: 8px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .card-header {
        padding: 12px;
        gap: 10px;
    }

    .card-header h2 {
        font-size: 0.9rem;
    }

    .card-header h2 i {
        font-size: 1rem;
    }

    .card-body {
        padding: 12px;
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 12px;
        border-radius: 6px;
        width: 100%;
    }

    .form-group {
        margin-bottom: 12px;
    }

    label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 6px;
        width: 100%;
        justify-content: center;
    }

    .btn-small {
        padding: 8px 10px;
        width: auto;
    }

    thead th {
        padding: 10px 12px;
        font-size: 10px;
    }

    td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .table-responsive {
        margin: 0 -12px;
        padding: 0 12px;
        border-radius: 6px;
    }

    .badge {
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 4px;
    }

    .chart-container {
        min-height: 200px;
        padding: 8px 0;
    }

    .dashboard-row {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .alert {
        padding: 12px;
        font-size: 13px;
        gap: 8px;
    }

    .alert i {
        font-size: 1rem;
    }

    .footer {
        padding: 16px 12px;
        font-size: 12px;
    }

    body {
        font-size: 14px;
    }
}

/* ===== OVERLAY WHEN SIDEBAR OPEN ON MOBILE ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== QUICK ACTION CARDS (Admin Dashboard) ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    min-height: 110px;
    justify-content: center;
}

.quick-action-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.qa-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.qa-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.3;
}

.quick-action-card:hover .qa-label {
    color: var(--text);
}

/* ===== PAYMENTS ===== */
.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.payment-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* ===== MOBILE EXTRAS ===== */
@media (max-width: 520px) {

    .topbar-greeting,
    .topbar>div:last-child>div:first-child {
        display: none !important;
    }

    .topbar {
        padding: 12px 16px;
        gap: 8px;
    }

    .page-title {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .quick-action-card {
        padding: 14px 8px;
        min-height: 80px;
        gap: 8px;
    }

    .qa-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .qa-label {
        font-size: 10px;
    }

    .payment-stat-grid {
        grid-template-columns: 1fr;
    }

    .payment-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 10px;
    }

    .sidebar-brand-text {
        display: none;
    }
}