/* Switcher Machine - Professional Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --sm-primary-color: #4A6FA5;
    --sm-primary-light: rgba(74, 111, 165, 0.07);
    --sm-primary-hover: #3D5E8C;
    --sm-surface: #ffffff;
    --sm-surface-hover: #f9fafb;
    --sm-surface-elevated: #ffffff;
    --sm-border-subtle: rgba(0, 0, 0, 0.06);
    --sm-border-medium: rgba(0, 0, 0, 0.1);
    --sm-text-primary: #111827;
    --sm-text-secondary: #6B7280;
    --sm-text-tertiary: #9CA3AF;
    --sm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --sm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sm-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --sm-radius: 10px;
    --sm-radius-sm: 8px;
    --sm-radius-xs: 6px;
    --sm-radius-auth: 14px;
    --sm-transition: all 0.15s ease;
    --sm-color-success: #16A34A;
    --sm-color-warning: #CA8A04;
    --sm-color-danger: #DC2626;
    --sm-color-info: #4A90A4;
    --sm-gradient-primary: #4A6FA5;
    --sm-gradient-success: #16A34A;
    --sm-gradient-warning: #CA8A04;
    --sm-gradient-danger: #DC2626;
    --sm-gradient-info: #4A90A4;
    --sm-gradient-dark: #1F2937;
    --sm-gradient-purple: #6B5CA5;
    --sm-gradient-hero: #2D3748;
    --sm-glass-bg: rgba(255, 255, 255, 0.95);
    --sm-glass-border: rgba(0, 0, 0, 0.06);
    --sm-shadow-glow-primary: 0 1px 4px rgba(74, 111, 165, 0.12);
    --sm-shadow-glow-success: 0 1px 4px rgba(22, 163, 74, 0.12);
    --sm-shadow-glow-warning: 0 1px 4px rgba(202, 138, 4, 0.12);
}

[data-bs-theme="dark"] {
    --sm-surface: #1F2937;
    --sm-surface-hover: #2D3748;
    --sm-surface-elevated: #1F2937;
    --sm-border-subtle: rgba(255, 255, 255, 0.06);
    --sm-border-medium: rgba(255, 255, 255, 0.1);
    --sm-text-primary: #F1F5F9;
    --sm-text-secondary: #9CA3AF;
    --sm-text-tertiary: #6B7280;
    --sm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.15);
    --sm-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.2);
    --sm-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.25);
    --sm-shadow-glow-primary: 0 1px 4px rgba(74, 111, 165, 0.15);
    --sm-shadow-glow-success: 0 1px 4px rgba(22, 163, 74, 0.15);
    --sm-shadow-glow-warning: 0 1px 4px rgba(202, 138, 4, 0.15);
    --sm-primary-light: rgba(74, 111, 165, 0.12);
    --sm-glass-bg: rgba(17, 24, 39, 0.95);
    --sm-glass-border: rgba(255, 255, 255, 0.06);
}

/* ===== GLOBAL RESETS ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--sm-text-primary);
    letter-spacing: -0.01em;
}

[data-bs-theme="dark"] body {
    background: #111827;
}

/* ===== MOBILE-FIRST TOUCH TARGETS ===== */
a, button, .btn, .nav-link, [role="button"], input[type="submit"], select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-lg {
    min-height: 48px;
}

.form-control-lg,
.form-select-lg {
    min-height: 48px;
}

/* ===== NAVBAR ===== */
.navbar.navbar-dark {
    background: #2D3748 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    opacity: 0.9;
}

.navbar .btn-outline-light {
    border-radius: var(--sm-radius-xs);
    border-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.12s ease, border-color 0.12s ease;
    font-size: 0.85rem;
}

.navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===== CARD SYSTEM ===== */
.card {
    border-radius: var(--sm-radius) !important;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    overflow: hidden;
    border: 1px solid var(--sm-border-subtle) !important;
    box-shadow: var(--sm-shadow-sm);
    background: var(--sm-surface);
}

.card.shadow-sm {
    box-shadow: var(--sm-shadow-sm);
}

.card:hover {
    box-shadow: var(--sm-shadow-md);
    border-color: var(--sm-border-medium);
}

.card-header {
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--sm-border-subtle);
    font-weight: 600;
    background: transparent;
}

.card-body {
    padding: 1.125rem;
}

/* ===== ACCENT CARDS ===== */
.sm-card-gradient-primary {
    background: var(--sm-primary-color);
    color: white;
    border-color: transparent;
}

.sm-card-gradient-success {
    background: var(--sm-color-success);
    color: white;
    border-color: transparent;
}

.sm-card-gradient-warning {
    background: var(--sm-color-warning);
    color: white;
    border-color: transparent;
}

.sm-card-gradient-dark {
    background: #2D3748;
    color: white;
    border-color: transparent;
}

.sm-card-gradient-hero {
    background: #2D3748;
    color: white;
    border-color: transparent;
}

/* ===== GLASS (toned down to clean surface) ===== */
.sm-glass {
    background: var(--sm-glass-bg);
    border: 1px solid var(--sm-glass-border);
}

/* ===== STAT COUNTER CARDS ===== */
.sm-stat-card {
    border-radius: var(--sm-radius) !important;
    border: 1px solid var(--sm-border-subtle);
    box-shadow: var(--sm-shadow-sm);
    transition: var(--sm-transition);
    position: relative;
    overflow: hidden;
    background: var(--sm-surface);
}

.sm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.sm-stat-card.sm-stat-primary::before { background: var(--sm-primary-color); }
.sm-stat-card.sm-stat-info::before { background: var(--sm-color-info); }
.sm-stat-card.sm-stat-success::before { background: var(--sm-color-success); }
.sm-stat-card.sm-stat-warning::before { background: var(--sm-color-warning); }
.sm-stat-card.sm-stat-danger::before { background: var(--sm-color-danger); }

.sm-stat-card:hover {
    box-shadow: var(--sm-shadow-md);
    border-color: var(--sm-border-medium);
}

.sm-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.sm-stat-card .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sm-text-tertiary);
    margin-top: 0.25rem;
}

/* ===== COUNTER BUTTONS ===== */
.sm-counter-btn {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--sm-transition);
    box-shadow: var(--sm-shadow-sm);
    border: 2px solid transparent;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.sm-counter-btn:hover {
    box-shadow: var(--sm-shadow-md);
    transform: scale(1.03);
}

.sm-counter-btn:active {
    transform: scale(0.93);
}

.sm-counter-btn.sm-btn-minus {
    background: rgba(220, 38, 38, 0.06);
    color: #DC2626;
    border-color: rgba(220, 38, 38, 0.12);
}

.sm-counter-btn.sm-btn-minus:hover {
    background: rgba(220, 38, 38, 0.1);
}

[data-bs-theme="dark"] .sm-counter-btn.sm-btn-minus {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
}

.sm-counter-btn.sm-btn-plus-primary {
    background: var(--sm-primary-color);
    color: white;
    border: none;
}

.sm-counter-btn.sm-btn-plus-success {
    background: var(--sm-color-success);
    color: white;
    border: none;
}

.sm-counter-btn.sm-btn-plus-warning {
    background: var(--sm-color-warning);
    color: white;
    border: none;
}

.sm-counter-btn.sm-btn-plus-info {
    background: var(--sm-color-info);
    color: white;
    border: none;
}

.sm-counter-btn.sm-btn-plus-secondary {
    background: #4B5563;
    color: white;
    border: none;
}

/* ===== PROGRESS BARS ===== */
.progress {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    height: 6px;
}

[data-bs-theme="dark"] .progress {
    background: rgba(255, 255, 255, 0.06);
}

.progress-bar {
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.bg-primary { background: var(--sm-primary-color) !important; }
.progress-bar.bg-success { background: var(--sm-color-success) !important; }
.progress-bar.bg-warning { background: var(--sm-color-warning) !important; }
.progress-bar.bg-info { background: var(--sm-color-info) !important; }
.progress-bar.bg-danger { background: var(--sm-color-danger) !important; }

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--sm-radius-xs);
    padding: 0.35em 0.65em;
}

.badge.fs-5, .badge.fs-6 {
    border-radius: var(--sm-radius-xs);
}

.sm-badge-gradient {
    border: none;
}

/* ===== NAV PILLS ===== */
.nav-pills .nav-link {
    border-radius: var(--sm-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--sm-transition);
    color: var(--sm-text-primary);
}

.nav-pills .nav-link:hover:not(.active) {
    background: var(--sm-primary-light);
}

.nav-pills .nav-link.active {
    background: var(--sm-primary-color);
}

/* ===== WEEKLY TABLE ===== */
.sm-weekly-table {
    border-radius: var(--sm-radius-sm);
    overflow: hidden;
}

.sm-weekly-table .table {
    margin-bottom: 0;
}

.sm-weekly-table th {
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 0.25rem;
    border: none;
    color: var(--sm-text-tertiary);
}

.sm-weekly-table td {
    padding: 0.5rem 0.25rem;
    border: none;
    vertical-align: middle;
}

.sm-weekly-table .today-col {
    background: var(--sm-primary-light);
    border-radius: 0;
}

[data-bs-theme="dark"] .sm-weekly-table .today-col {
    background: rgba(74, 111, 165, 0.12);
}

/* ===== SECTION HEADERS ===== */
.sm-section-header {
    border-radius: var(--sm-radius) var(--sm-radius) 0 0;
    padding: 0.875rem 1.125rem;
    border-bottom: none;
}

/* ===== POINTS DISPLAY ===== */
.sm-points-badge {
    background: var(--sm-primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--sm-radius-sm);
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sm-points-badge.sm-has-points {
    /* no animation — clean and professional */
}

/* ===== COLOR CODE BADGE ===== */
.sm-color-badge {
    border-radius: var(--sm-radius-sm) !important;
    position: relative;
    overflow: hidden;
    padding: 0.4em 0.75em;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ===== LEADERBOARD ===== */
.sm-podium-card {
    border-radius: var(--sm-radius) !important;
    overflow: hidden;
    transition: var(--sm-transition);
    border: 1px solid var(--sm-border-subtle);
}

.sm-podium-card:hover {
    box-shadow: var(--sm-shadow-md);
}

.sm-rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sm-rank-badge i {
    font-size: 0.6rem;
    margin-right: 1px;
}

.sm-rank-1 {
    background: rgba(184, 134, 11, 0.1);
    color: #B8860B;
}

.sm-rank-2 {
    background: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

.sm-rank-3 {
    background: rgba(146, 64, 14, 0.1);
    color: #92400E;
}

.sm-rank-default {
    background: var(--sm-primary-light);
    color: var(--sm-text-primary);
}

[data-bs-theme="dark"] .sm-rank-default {
    background: rgba(255, 255, 255, 0.06);
}

.sm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* ===== LIST GROUPS ===== */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: var(--sm-transition);
}

.list-group-item-action:hover {
    background: var(--sm-primary-light);
}

[data-bs-theme="dark"] .list-group-item-action:hover {
    background: rgba(74, 111, 165, 0.08);
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--sm-radius-sm);
    font-weight: 500;
    border-left: 4px solid transparent;
}

.alert-info {
    background: rgba(74, 144, 164, 0.06);
    color: #4A90A4;
    border-left-color: #4A90A4;
}

.alert-success {
    border-left-color: #16A34A;
}

.alert-warning {
    border-left-color: #CA8A04;
}

.alert-danger {
    border-left-color: #DC2626;
}

[data-bs-theme="dark"] .alert-info {
    background: rgba(74, 144, 164, 0.1);
    color: #67B2C4;
    border-left-color: #67B2C4;
}

/* ===== LOGIN/REGISTER PAGES ===== */
.sm-auth-bg {
    background: #1F2937;
    position: relative;
    overflow: hidden;
}


.sm-auth-card {
    border-radius: var(--sm-radius-auth) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

[data-bs-theme="dark"] .sm-auth-card {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.06);
}

.sm-auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ===== FORM INPUTS ===== */
.form-control, .form-select {
    border-radius: var(--sm-radius-sm);
    transition: var(--sm-transition);
    border-color: var(--sm-border-medium);
}

.form-control:focus, .form-select:focus {
    border-color: var(--sm-primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--sm-text-secondary);
}

.input-group-text {
    border-color: var(--sm-border-medium);
    border-radius: var(--sm-radius-sm) 0 0 var(--sm-radius-sm);
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 600;
    border-radius: var(--sm-radius-xs);
    transition: background-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease, color 0.12s ease, border-color 0.12s ease;
    letter-spacing: -0.005em;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--sm-primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--sm-primary-hover);
    box-shadow: var(--sm-shadow-md);
}

.btn-success {
    background: var(--sm-color-success);
    border: none;
}

.btn-success:hover {
    box-shadow: var(--sm-shadow-md);
    filter: brightness(0.95);
}

.btn-warning {
    background: var(--sm-color-warning);
    border: none;
    color: white;
}

.btn-info {
    background: var(--sm-color-info);
    border: none;
    color: white;
}

.btn-info:hover {
    color: white;
    filter: brightness(0.95);
}

.btn-dark {
    background: #2D3748;
    border: none;
}

.btn-outline-primary {
    border-color: rgba(74, 111, 165, 0.3);
    color: var(--sm-primary-color);
}

.btn-outline-primary:hover {
    background: var(--sm-primary-color);
    border-color: transparent;
}

/* ===== INCOME CARD ===== */
.sm-income-card {
    background: var(--sm-color-success);
    border-radius: var(--sm-radius) !important;
    border: none;
    position: relative;
    overflow: hidden;
}


/* ===== MOBILE BOTTOM NAV ===== */
@media (max-width: 991.98px) {
    main {
        padding-bottom: 80px !important;
    }
}

.sm-bottom-nav {
    background: var(--sm-glass-bg);
    border-top: 1px solid var(--sm-border-subtle);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .sm-bottom-nav {
    background: rgba(17, 24, 39, 0.95);
    border-top-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.2);
}

.sm-bottom-nav .nav-link {
    padding: 0.4rem 0.75rem;
    transition: color 0.12s ease;
    border-radius: var(--sm-radius-sm);
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.sm-bottom-nav .nav-link:active {
    transform: scale(0.93);
    transition: transform 0.08s ease;
}

.sm-bottom-nav .nav-link.active-nav {
    color: var(--sm-primary-color);
}

.sm-bottom-nav .nav-link.active-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--sm-primary-color);
    border-radius: 2px;
}

.sm-bottom-nav .nav-link small {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== TABLE STYLES ===== */
.table th {
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-width: 2px;
    color: var(--sm-text-tertiary);
}

.table td {
    vertical-align: middle;
}

/* ===== NOTES/OBJECTIONS ===== */
.sm-note-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sm-border-subtle);
    transition: var(--sm-transition);
}

.sm-note-item:last-child {
    border-bottom: none;
}

/* ===== METRIC TILES ===== */
.sm-metric-tile {
    border-radius: var(--sm-radius-sm);
    padding: 0.75rem;
    text-align: center;
    transition: var(--sm-transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sm-border-subtle);
}

.sm-metric-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    border-radius: var(--sm-radius-sm);
}

.sm-metric-tile.sm-tile-success::before { background: #16A34A; }
.sm-metric-tile.sm-tile-primary::before { background: #4A6FA5; }
.sm-metric-tile.sm-tile-info::before { background: #4A90A4; }
.sm-metric-tile.sm-tile-warning::before { background: #CA8A04; }
.sm-metric-tile.sm-tile-secondary::before { background: #6B7280; }

[data-bs-theme="dark"] .sm-metric-tile::before {
    opacity: 0.08;
}

.sm-metric-tile .metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.sm-metric-tile .metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sm-text-tertiary);
}

/* ===== DROPDOWN STYLING ===== */
.dropdown-menu {
    border-radius: var(--sm-radius-sm);
    box-shadow: var(--sm-shadow-lg);
    border: 1px solid var(--sm-border-subtle);
    background: var(--sm-surface);
    padding: 0.35rem;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: #1F2937;
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-item {
    padding: 0.5rem 0.875rem;
    border-radius: var(--sm-radius-xs);
    margin: 1px 0;
    transition: background-color 0.12s ease, color 0.12s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: var(--sm-primary-light);
}

.dropdown-item:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
}

.dropdown-item i {
    width: 1.25rem;
}

/* ===== FOCUS STATES ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--sm-primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
}

/* ===== ANIMATIONS (subtle only) ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes statPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sm-animate-in {
    animation: fadeInUp 0.25s ease-out both;
}

.sm-animate-delay-1 { animation-delay: 0.03s; }
.sm-animate-delay-2 { animation-delay: 0.06s; }
.sm-animate-delay-3 { animation-delay: 0.09s; }
.sm-animate-delay-4 { animation-delay: 0.12s; }

.sm-pulse-glow {
    /* removed — no pulsing glow in professional mode */
}

.sm-stat-pop {
    animation: statPop 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .sm-animate-in,
    .sm-pulse-glow,
    .sm-stat-pop,
    .sm-points-badge.sm-has-points {
        animation: none !important;
    }
    .sm-podium-card:hover,
    .sm-counter-btn:hover,
    .sm-rank-badge:hover {
        transform: none !important;
    }
}

/* ===== SKELETON LOADING ===== */
@keyframes sm-skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.sm-skeleton {
    background: var(--sm-border-medium);
    border-radius: var(--sm-radius-xs);
    animation: sm-skeleton-pulse 1.5s ease-in-out infinite;
}

.sm-skeleton-text {
    height: 0.875rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.sm-skeleton-text-sm {
    height: 0.65rem;
    margin-bottom: 0.375rem;
    border-radius: 3px;
}

.sm-skeleton-heading {
    height: 1.25rem;
    margin-bottom: 0.75rem;
    width: 60%;
    border-radius: 4px;
}

.sm-skeleton-stat {
    height: 2rem;
    width: 3rem;
    border-radius: var(--sm-radius-xs);
    display: inline-block;
}

.sm-skeleton-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sm-skeleton-card {
    padding: 1rem;
}

.sm-skeleton-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.sm-skeleton-row + .sm-skeleton-row {
    border-top: 1px solid var(--sm-border-subtle);
}

.sm-skeleton-bar {
    height: 6px;
    border-radius: 3px;
    margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .sm-skeleton {
        animation: none;
        opacity: 0.4;
    }
}

/* ===== LOADING SPINNER ===== */
.sm-loading-state {
    text-align: center;
    padding: 2rem 1rem;
}

.sm-loading-state .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
    color: var(--sm-primary-color);
}

.sm-loading-state p {
    color: var(--sm-text-secondary);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ===== HISTORY PAGE ===== */
.sm-history-item {
    border-radius: var(--sm-radius-sm) !important;
    margin-bottom: 0.5rem;
    border: 1px solid var(--sm-border-subtle);
    transition: var(--sm-transition);
    overflow: hidden;
    background: var(--sm-surface);
}

.sm-history-item:hover {
    border-color: rgba(74, 111, 165, 0.15);
    box-shadow: var(--sm-shadow-sm);
}

.sm-history-perf-dot {
    width: 4px;
    min-height: 100%;
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.sm-history-perf-high { background: var(--sm-color-success); }
.sm-history-perf-mid { background: var(--sm-color-warning); }
.sm-history-perf-low { background: var(--sm-color-danger); }

/* ===== DATE NAVIGATION ===== */
.sm-date-nav {
    border-radius: var(--sm-radius) !important;
    overflow: hidden;
}

.sm-date-nav .btn {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== CLOSE RATE GAUGE ===== */
.sm-gauge-container {
    position: relative;
    display: inline-block;
}

/* ===== COMMISSION TABLE ===== */
.sm-commission-table {
    border-radius: var(--sm-radius-sm);
    overflow: hidden;
}

.sm-commission-table .table {
    margin: 0;
}

.sm-commission-table th {
    background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .sm-commission-table th {
    background: rgba(255, 255, 255, 0.03);
}

/* ===== PAGE HEADERS ===== */
.sm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sm-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sm-text-primary);
}

.sm-page-title i {
    font-size: 1.15rem;
}

/* ===== EMPTY STATES ===== */
.sm-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.sm-empty-state i {
    font-size: 3rem;
    opacity: 0.15;
    margin-bottom: 1rem;
    display: block;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

[data-bs-theme="dark"] .table-light {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .sm-auth-bg {
    background: #111827;
}

[data-bs-theme="dark"] .dark-icon-blue {
    color: #7BA3D0 !important;
}

[data-bs-theme="dark"] .card {
    background: var(--sm-surface);
}

[data-bs-theme="dark"] .sm-card-gradient-dark,
[data-bs-theme="dark"] .sm-card-gradient-primary,
[data-bs-theme="dark"] .sm-card-gradient-success,
[data-bs-theme="dark"] .sm-card-gradient-warning,
[data-bs-theme="dark"] .sm-card-gradient-hero {
    border-color: transparent;
}

[data-bs-theme="dark"] .text-dark {
    color: var(--sm-text-primary) !important;
}

[data-bs-theme="dark"] .text-muted {
    color: var(--sm-text-secondary) !important;
}

/* ===== INFO FOOTER ===== */
.sm-info-footer {
    border-radius: var(--sm-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    background: var(--sm-primary-light);
    border: 1px solid var(--sm-border-subtle);
    color: var(--sm-text-secondary);
}

/* ===== QUICK CAPTURE RADIO BUTTONS ===== */
.btn-check:checked + .btn-outline-secondary,
.btn-check:checked + .btn-outline-danger,
.btn-check:checked + .btn-outline-warning,
.btn-check:checked + .btn-outline-info {
    color: #fff;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.btn-check:checked + .btn-outline-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: #000;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .fixed-bottom,
    .btn {
        display: none !important;
    }
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}

/* ===== MISC UTILITIES ===== */
.sm-text-gradient {
    color: var(--sm-primary-color);
    -webkit-text-fill-color: var(--sm-primary-color);
}

.sm-border-glow {
    border: 1px solid rgba(74, 111, 165, 0.15);
}

.sm-divider {
    height: 1px;
    background: var(--sm-border-subtle);
    margin: 1rem 0;
}

.min-width-0 {
    min-width: 0;
}

/* ===== SCORING BUTTONS ===== */
.sm-scoring-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    border-radius: 50% !important;
    transition: var(--sm-transition);
    box-shadow: var(--sm-shadow-sm);
}

.sm-scoring-btn:hover {
    box-shadow: var(--sm-shadow-md);
    transform: scale(1.03);
}

.sm-scoring-btn:active {
    transform: scale(0.93);
}

/* ===== PROGRESS RING ===== */
.sm-progress-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-progress-ring svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.sm-progress-ring .ring-track {
    fill: none;
    stroke: var(--sm-border-subtle);
    stroke-width: 3;
}

.sm-progress-ring .ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

/* ===== SECTION SPACER ===== */
.sm-section-spacer {
    height: 1px;
    background: var(--sm-border-subtle);
    margin: 0.75rem 0;
}

/* ===== VIEW TABS ===== */
.sm-view-tabs {
    display: flex;
    gap: 0.375rem;
    padding: 0.25rem;
    background: var(--sm-primary-light);
    border-radius: var(--sm-radius-sm);
}

.sm-view-tabs .btn {
    border-radius: var(--sm-radius-xs);
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.sm-view-tabs .btn-primary {
    box-shadow: var(--sm-shadow-sm);
}

.sm-view-tabs .btn-outline-secondary {
    border: none;
    color: var(--sm-text-secondary);
    background: transparent;
}

.sm-view-tabs .btn-outline-secondary:hover {
    background: rgba(74, 111, 165, 0.06);
    color: var(--sm-primary-color);
}

/* ===== MOBILE RESPONSIVE DASHBOARD ===== */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .sm-stat-card .card-body {
        padding: 0.65rem 0.5rem !important;
    }

    .sm-stat-card .stat-value {
        font-size: 1.85rem;
    }

    .sm-stat-card .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
    }

    .sm-counter-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .sm-scoring-btn {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.05rem !important;
    }

    .sm-points-badge {
        font-size: 0.95rem;
        padding: 0.4rem 0.75rem;
    }

    .sm-metric-tile {
        padding: 0.5rem 0.35rem;
    }

    .sm-metric-tile .metric-value {
        font-size: 1.35rem;
    }

    .sm-metric-tile .metric-label {
        font-size: 0.58rem;
        letter-spacing: 0.03em;
    }

    .sm-weekly-table th {
        font-size: 0.58rem;
        padding: 0.5rem 0.15rem;
        letter-spacing: 0.05em;
    }

    .sm-weekly-table td {
        padding: 0.35rem 0.15rem;
        font-size: 0.7rem;
    }

    .card-header {
        padding: 0.7rem 0.875rem;
    }

    .card-body {
        padding: 0.875rem;
    }

    .sm-section-header {
        padding: 0.7rem 0.875rem;
    }

    .sm-section-header h6 {
        font-size: 0.85rem;
    }

    .sm-page-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 359.98px) {
    .sm-stat-card .stat-value {
        font-size: 1.5rem;
    }

    .sm-stat-card .stat-label {
        font-size: 0.55rem;
    }

    .sm-counter-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .sm-scoring-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.95rem !important;
    }

    .sm-metric-tile .metric-value {
        font-size: 1.15rem;
    }

    .sm-weekly-table th {
        font-size: 0.52rem;
        padding: 0.4rem 0.1rem;
    }

    .sm-weekly-table td {
        padding: 0.25rem 0.1rem;
        font-size: 0.65rem;
    }

    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .sm-stat-card .stat-value {
        font-size: 2.25rem;
    }

    .sm-metric-tile .metric-value {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .sm-dashboard-container {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   ADMIN SIDEBAR LAYOUT
   ============================================ */
:root {
    --sm-admin-sidebar-bg: #111827;
    --sm-admin-sidebar-width: 250px;
    --sm-admin-sidebar-hover: rgba(74, 111, 165, 0.1);
    --sm-admin-sidebar-active: rgba(74, 111, 165, 0.15);
    --sm-admin-sidebar-active-border: #4A6FA5;
    --sm-admin-topbar-height: 52px;
    --sm-admin-accent: #7BA3D0;
    --sm-admin-accent-glow: rgba(74, 111, 165, 0.15);
}

.sm-admin-body {
    min-height: 100vh;
}

.sm-admin-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #1F2937;
    height: var(--sm-admin-topbar-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-topbar-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #D1D5DB;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.15s;
}

.sm-topbar-menu-btn:hover,
.sm-topbar-menu-btn:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sm-admin-sidebar {
    background: #111827 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 992px) {
    .sm-admin-sidebar.d-lg-flex {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sm-admin-sidebar-width);
        z-index: 1030;
        overflow-y: auto;
    }
    .sm-admin-content {
        margin-left: var(--sm-admin-sidebar-width);
        min-height: 100vh;
    }
}

@media (max-width: 991.98px) {
    .sm-admin-sidebar.offcanvas {
        width: 280px !important;
    }
    .sm-admin-content {
        min-height: 100vh;
    }
}

.sm-admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.sm-admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sm-admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.sm-sidebar-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px !important;
}

.sm-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #4A6FA5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.sm-office-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 3px 8px;
    letter-spacing: 0.02em;
}

.sm-sidebar-nav {
    overflow-y: auto;
}

.sm-sidebar-section-label {
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 12px 4px 12px;
    margin-top: 4px;
}

.sm-sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #D1D5DB !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 14px 6px 14px;
    margin-top: 2px;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}

.sm-sidebar-section-toggle:hover {
    color: #E5E7EB !important;
}

.sm-sidebar-section-toggle[aria-expanded="true"] {
    color: #D1D5DB !important;
}

.sm-sidebar-chevron {
    font-size: 0.55rem;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.sm-sidebar-section-toggle[aria-expanded="true"] .sm-sidebar-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

a.sm-sidebar-link,
button.sm-sidebar-link,
.sm-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: #D1D5DB !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 4px;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

a.sm-sidebar-link i,
button.sm-sidebar-link i,
.sm-sidebar-link i {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: #9CA3AF !important;
    transition: color 0.15s;
}

a.sm-sidebar-link:hover,
button.sm-sidebar-link:hover,
.sm-sidebar-link:hover {
    background: var(--sm-admin-sidebar-hover);
    color: #fff !important;
    text-decoration: none !important;
}

a.sm-sidebar-link:hover i,
button.sm-sidebar-link:hover i,
.sm-sidebar-link:hover i {
    color: var(--sm-admin-accent) !important;
}

a.sm-sidebar-link.active,
.sm-sidebar-link.active {
    background: rgba(74, 111, 165, 0.15);
    color: #fff !important;
    border-left: 3px solid var(--sm-admin-sidebar-active-border);
    padding-left: 11px;
}

a.sm-sidebar-link.active i,
.sm-sidebar-link.active i {
    color: var(--sm-admin-accent) !important;
}

a.sm-sidebar-link-danger:hover,
.sm-sidebar-link-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #FCA5A5 !important;
}

a.sm-sidebar-link-danger:hover i,
.sm-sidebar-link-danger:hover i {
    color: #F87171 !important;
}

.sm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0,0,0,0.1);
    margin-top: auto;
}

.sm-admin-page-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.sm-admin-page-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.sm-admin-page-header .breadcrumb {
    margin: 0;
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .sm-admin-content {
    background: #111827;
}

[data-bs-theme="dark"] .sm-admin-page-header {
    border-bottom-color: rgba(255,255,255,0.06);
}

.sm-admin-stat-card {
    transition: all 0.15s ease;
    border-radius: var(--sm-radius) !important;
    overflow: hidden;
}

.sm-admin-stat-card:hover {
    box-shadow: var(--sm-shadow-md) !important;
}

[data-bs-theme="dark"] .sm-admin-stat-card {
    background: #1F2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .sm-admin-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--sm-shadow-md) !important;
}

.sm-admin-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sm-admin-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.sm-admin-stat-label {
    font-size: 0.68rem;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-bs-theme="dark"] .sm-admin-stat-label {
    color: #9CA3AF;
}

[data-bs-theme="dark"] .card {
    border-color: rgba(255,255,255,0.06);
}

[data-bs-theme="dark"] .card-header {
    border-bottom-color: rgba(255,255,255,0.06);
}

a.sm-sidebar-link-special,
.sm-sidebar-link-special {
    color: #D1D5DB !important;
}
a.sm-sidebar-link-special:hover,
.sm-sidebar-link-special:hover {
    background: rgba(74, 111, 165, 0.1);
    color: #F3F4F6 !important;
}
a.sm-sidebar-link-special i,
.sm-sidebar-link-special i {
    color: #7BA3D0 !important;
}
