/**
 * Hockey Drop-In - Modern Theme
 * Light & Dark Mode with Hockey-Inspired Design
 */

/* ============================================
   CSS VARIABLES - LIGHT THEME (Default)
   ============================================ */
:root {
    /* Primary Colors - Ice Blue & Action Green */
    --hdi-primary: #0077b6;
    --hdi-primary-dark: #005f8a;
    --hdi-primary-light: #00a8e8;
    --hdi-accent: #10b981;
    --hdi-accent-dark: #059669;
    
    /* Ice Rink Inspired */
    --hdi-ice: #e8f4f8;
    --hdi-ice-lines: #0077b6;
    --hdi-boards: #1a1a2e;
    
    /* Neutral Colors */
    --hdi-bg: #f8fafc;
    --hdi-bg-alt: #ffffff;
    --hdi-surface: #ffffff;
    --hdi-surface-hover: #f1f5f9;
    --hdi-border: #e2e8f0;
    --hdi-border-light: #f1f5f9;
    
    /* Text Colors */
    --hdi-text: #1e293b;
    --hdi-text-secondary: #64748b;
    --hdi-text-muted: #94a3b8;
    --hdi-text-inverse: #ffffff;
    
    /* Status Colors */
    --hdi-success: #10b981;
    --hdi-success-bg: #d1fae5;
    --hdi-warning: #f59e0b;
    --hdi-warning-bg: #fef3c7;
    --hdi-danger: #ef4444;
    --hdi-danger-bg: #fee2e2;
    --hdi-info: #3b82f6;
    --hdi-info-bg: #dbeafe;
    
    /* Team Colors - Light Theme */
    --hdi-team-a: #e8f4f8;
    --hdi-team-a-text: #1e293b;
    --hdi-team-a-border: #0077b6;
    --hdi-team-b: #0077b6;
    --hdi-team-b-text: #ffffff;
    --hdi-team-b-border: #005f8a;
    --hdi-bench: #fef3c7;
    --hdi-bench-text: #92400e;
    
    /* Shadows */
    --hdi-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --hdi-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hdi-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --hdi-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --hdi-transition: all 0.2s ease;
    --hdi-transition-slow: all 0.3s ease;
    
    /* Border Radius */
    --hdi-radius-sm: 0.375rem;
    --hdi-radius: 0.5rem;
    --hdi-radius-lg: 0.75rem;
    --hdi-radius-xl: 1rem;
    --hdi-radius-full: 9999px;
    
    /* Navbar */
    --hdi-navbar-bg: linear-gradient(135deg, #0077b6 0%, #005f8a 100%);
    --hdi-navbar-text: #ffffff;
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
    --hdi-primary: #00a8e8;
    --hdi-primary-dark: #0077b6;
    --hdi-primary-light: #48cae4;
    --hdi-accent: #34d399;
    --hdi-accent-dark: #10b981;
    
    --hdi-ice: #1e293b;
    --hdi-ice-lines: #00a8e8;
    --hdi-boards: #0f172a;
    
    --hdi-bg: #0f172a;
    --hdi-bg-alt: #1e293b;
    --hdi-surface: #1e293b;
    --hdi-surface-hover: #334155;
    --hdi-border: #334155;
    --hdi-border-light: #1e293b;
    
    --hdi-text: #f1f5f9;
    --hdi-text-secondary: #94a3b8;
    --hdi-text-muted: #64748b;
    --hdi-text-inverse: #0f172a;
    
    --hdi-success-bg: #064e3b;
    --hdi-warning-bg: #78350f;
    --hdi-danger-bg: #7f1d1d;
    --hdi-info-bg: #1e3a5f;
    
    /* Team Colors - Dark Theme */
    --hdi-team-a: #1e3a5f;
    --hdi-team-a-text: #e0f2fe;
    --hdi-team-a-border: #0ea5e9;
    --hdi-team-b: #0ea5e9;
    --hdi-team-b-text: #ffffff;
    --hdi-team-b-border: #0284c7;
    --hdi-bench: #78350f;
    --hdi-bench-text: #fef3c7;
    
    --hdi-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --hdi-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --hdi-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    
    --hdi-navbar-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--hdi-bg);
    color: var(--hdi-text);
    line-height: 1.6;
    transition: var(--hdi-transition-slow);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--hdi-primary);
    text-decoration: none;
    transition: var(--hdi-transition);
}

a:hover {
    color: var(--hdi-primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--hdi-text);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

.text-muted {
    color: var(--hdi-text-muted) !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--hdi-navbar-bg) !important;
    box-shadow: var(--hdi-shadow);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--hdi-navbar-text) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .hockey-icon {
    width: 32px;
    height: 32px;
    background: var(--hdi-accent);
    border-radius: var(--hdi-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--hdi-radius);
    transition: var(--hdi-transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar .dropdown-menu {
    background: var(--hdi-surface);
    border: 1px solid var(--hdi-border);
    border-radius: var(--hdi-radius);
    box-shadow: var(--hdi-shadow-lg);
    padding: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--hdi-text);
    border-radius: var(--hdi-radius-sm);
    padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover {
    background: var(--hdi-surface-hover);
    color: var(--hdi-primary);
}

.navbar .dropdown-divider {
    border-color: var(--hdi-border);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--hdi-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hdi-transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Avatar in Navbar */
.user-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

[data-theme="dark"] .user-avatar {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile navbar - avatar needs different styling */
@media (max-width: 991.98px) {
    .navbar-collapse .user-avatar {
        background: var(--hdi-primary);
        color: white;
    }
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--hdi-surface);
    border: 1px solid var(--hdi-border);
    border-radius: var(--hdi-radius-lg);
    box-shadow: var(--hdi-shadow-sm);
    transition: var(--hdi-transition);
    overflow: hidden;
}

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

.card-header {
    background: var(--hdi-surface-hover);
    border-bottom: 1px solid var(--hdi-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--hdi-text);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: var(--hdi-surface-hover);
    border-top: 1px solid var(--hdi-border);
    padding: 1rem 1.25rem;
}

/* Card Variants */
.card.card-primary {
    border-left: 4px solid var(--hdi-primary);
}

.card.card-success {
    border-left: 4px solid var(--hdi-success);
}

.card.card-warning {
    border-left: 4px solid var(--hdi-warning);
}

.card.card-danger {
    border-left: 4px solid var(--hdi-danger);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--hdi-radius);
    transition: var(--hdi-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--hdi-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--hdi-primary-dark);
    color: white;
}

.btn-accent {
    background: var(--hdi-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--hdi-accent-dark);
    color: white;
}

.btn-success {
    background: var(--hdi-success);
    color: white;
}

.btn-warning {
    background: var(--hdi-warning);
    color: var(--hdi-text-inverse);
}

.btn-danger {
    background: var(--hdi-danger);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--hdi-primary);
    color: var(--hdi-primary);
}

.btn-outline-primary:hover {
    background: var(--hdi-primary);
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--hdi-border);
    color: var(--hdi-text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--hdi-surface-hover);
    border-color: var(--hdi-text-secondary);
    color: var(--hdi-text);
}

.btn-ghost {
    background: transparent;
    color: var(--hdi-text-secondary);
}

.btn-ghost:hover {
    background: var(--hdi-surface-hover);
    color: var(--hdi-text);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    background: var(--hdi-surface);
    border: 1px solid var(--hdi-border);
    border-radius: var(--hdi-radius);
    color: var(--hdi-text);
    padding: 0.625rem 0.875rem;
    transition: var(--hdi-transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--hdi-surface);
    border-color: var(--hdi-primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
    color: var(--hdi-text);
    outline: none;
}

.form-control::placeholder {
    color: var(--hdi-text-muted);
}

.form-label {
    font-weight: 500;
    color: var(--hdi-text);
    margin-bottom: 0.375rem;
}

.form-text {
    color: var(--hdi-text-muted);
    font-size: 0.875rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--hdi-border);
    background: var(--hdi-surface);
}

.form-check-input:checked {
    background-color: var(--hdi-primary);
    border-color: var(--hdi-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* ============================================
   TABLES
   ============================================ */
.table {
    color: var(--hdi-text);
    margin-bottom: 0;
    --bs-table-bg: var(--hdi-surface);
    --bs-table-color: var(--hdi-text);
    --bs-table-border-color: var(--hdi-border);
    --bs-table-striped-bg: var(--hdi-surface-hover);
    --bs-table-striped-color: var(--hdi-text);
    --bs-table-hover-bg: var(--hdi-surface-hover);
    --bs-table-hover-color: var(--hdi-text);
}

.table th {
    background: var(--hdi-surface-hover) !important;
    font-weight: 600;
    color: var(--hdi-text) !important;
    border-bottom: 2px solid var(--hdi-border) !important;
    padding: 0.875rem;
}

.table td {
    padding: 0.875rem;
    border-bottom: 1px solid var(--hdi-border) !important;
    vertical-align: middle;
    background: var(--hdi-surface) !important;
    color: var(--hdi-text) !important;
}

.table tbody tr {
    transition: var(--hdi-transition);
}

.table tbody tr:hover td {
    background: var(--hdi-surface-hover) !important;
}

.table-responsive {
    border-radius: var(--hdi-radius);
    overflow: hidden;
}

/* Table variants for dark mode */
.table-light,
.table-light td,
.table-light th,
.table-light > td,
.table-light > th {
    background: var(--hdi-surface) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

.table-warning,
.table-warning td,
.table-warning th,
.table-warning > td,
.table-warning > th,
tr.table-warning td,
tr.table-warning th {
    background: var(--hdi-warning-bg) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

.table-danger,
.table-danger td,
.table-danger th,
.table-danger > td,
.table-danger > th,
tr.table-danger td,
tr.table-danger th {
    background: var(--hdi-danger-bg) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

.table-success,
.table-success td,
.table-success th,
.table-success > td,
.table-success > th,
tr.table-success td,
tr.table-success th {
    background: var(--hdi-success-bg) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

.table-info,
.table-info td,
.table-info th,
.table-info > td,
.table-info > th,
tr.table-info td,
tr.table-info th {
    background: var(--hdi-info-bg) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

.table-primary,
.table-primary td,
.table-primary th,
.table-primary > td,
.table-primary > th,
tr.table-primary td,
tr.table-primary th {
    background: rgba(0, 119, 182, 0.15) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

/* Fix table hover on colored rows */
.table-hover .table-warning:hover td,
.table-hover .table-danger:hover td,
.table-hover .table-success:hover td,
.table-hover .table-info:hover td,
.table-hover .table-primary:hover td {
    filter: brightness(0.95);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--hdi-radius-full);
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--hdi-primary) !important;
}

.badge.bg-success {
    background: var(--hdi-success) !important;
}

.badge.bg-warning {
    background: var(--hdi-warning) !important;
    color: #1e293b !important; /* Always dark text on warning */
}

.badge.bg-warning.text-dark {
    color: #1e293b !important;
}

.badge.bg-danger {
    background: var(--hdi-danger) !important;
}

.badge.bg-secondary {
    background: var(--hdi-text-muted) !important;
}

.badge.bg-info {
    background: var(--hdi-info) !important;
}

/* Position Badges */
.badge-forward {
    background: #10b981 !important;
    color: white !important;
}

.badge-defense {
    background: #3b82f6 !important;
    color: white !important;
}

.badge-goalie {
    background: #f59e0b !important;
    color: #1e293b !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border: none;
    border-radius: var(--hdi-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: var(--hdi-success-bg);
    color: var(--hdi-success);
}

.alert-warning {
    background: var(--hdi-warning-bg);
    color: #92400e;
}

[data-theme="dark"] .alert-warning {
    color: #fef3c7;
}

.alert-danger {
    background: var(--hdi-danger-bg);
    color: var(--hdi-danger);
}

.alert-info {
    background: var(--hdi-info-bg);
    color: var(--hdi-info);
}

.alert .btn-close {
    filter: none;
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ============================================
   TEAM DISPLAY
   ============================================ */
.team-card {
    border-radius: var(--hdi-radius-lg);
    overflow: hidden;
}

.team-card.team-a {
    background: var(--hdi-team-a);
    border: 2px solid var(--hdi-team-a-border);
}

.team-card.team-a .card-header {
    background: var(--hdi-team-a);
    color: var(--hdi-team-a-text);
    border-bottom: 1px solid var(--hdi-team-a-border);
}

.team-card.team-a .list-group-item {
    background: var(--hdi-team-a);
    color: var(--hdi-team-a-text);
    border-color: rgba(0, 119, 182, 0.2);
}

.team-card.team-b {
    background: var(--hdi-team-b);
    border: 2px solid var(--hdi-team-b-border);
}

.team-card.team-b .card-header {
    background: var(--hdi-team-b);
    color: var(--hdi-team-b-text) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.team-card.team-b .card-header h5,
.team-card.team-b .card-header span {
    color: var(--hdi-team-b-text) !important;
}

.team-card.team-b .list-group-item {
    background: var(--hdi-team-b);
    color: var(--hdi-team-b-text) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

.team-card.team-b .list-group-item .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.team-card.bench {
    background: var(--hdi-bench);
    border: 2px solid var(--hdi-warning);
}

.team-card.bench .card-header {
    background: var(--hdi-warning);
    color: #1e293b;
}

.team-card.bench .list-group-item {
    background: var(--hdi-bench);
    color: var(--hdi-bench-text);
}

/* ============================================
   EVENT CARDS
   ============================================ */
.event-card {
    border-left: 4px solid var(--hdi-primary);
    transition: var(--hdi-transition);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hdi-shadow-lg);
}

.event-card.cancelled {
    border-left-color: var(--hdi-danger);
    opacity: 0.7;
}

.event-date {
    font-size: 0.875rem;
    color: var(--hdi-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   PAYMENT STATUS
   ============================================ */
.payment-card {
    border-radius: var(--hdi-radius-lg);
}

.payment-card.payment-required {
    border: 2px solid var(--hdi-warning);
}

.payment-card.payment-required .card-header {
    background: var(--hdi-warning);
    color: var(--hdi-text-inverse);
}

.payment-card.payment-complete {
    border: 2px solid var(--hdi-success);
}

.payment-card.payment-complete .card-header {
    background: var(--hdi-success);
    color: white;
}

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hdi-text);
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hdi-primary);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--hdi-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-group-item {
    background: var(--hdi-surface);
    border-color: var(--hdi-border);
    color: var(--hdi-text);
    padding: 0.875rem 1.25rem;
}

.list-group-item:hover {
    background: var(--hdi-surface-hover);
}

.list-group-item.active {
    background: var(--hdi-primary);
    border-color: var(--hdi-primary);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--hdi-boards) !important;
    color: var(--hdi-text-inverse);
    margin-top: auto;
}

footer h5 {
    color: white !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: white;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-ice {
    background: var(--hdi-ice) !important;
}

.text-primary {
    color: var(--hdi-primary) !important;
}

.text-accent {
    color: var(--hdi-accent) !important;
}

.border-primary {
    border-color: var(--hdi-primary) !important;
}

.rounded-lg {
    border-radius: var(--hdi-radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--hdi-radius-xl) !important;
}

.shadow-lg {
    box-shadow: var(--hdi-shadow-lg) !important;
}

/* ============================================
   HOCKEY DECORATIONS
   ============================================ */
.ice-pattern {
    background: 
        linear-gradient(90deg, transparent 49.5%, var(--hdi-ice-lines) 49.5%, var(--hdi-ice-lines) 50.5%, transparent 50.5%),
        var(--hdi-ice);
    background-size: 100% 100%;
}

.puck-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--hdi-boards);
    color: white;
    border-radius: var(--hdi-radius-full);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Key widths: 375px, 768px, 1024px, 1280px, 1440px+
   ============================================ */

/* -----------------------------------------
   MOBILE FIRST: Base styles (375px target)
   Applies to all screens, optimized for small mobile
   ----------------------------------------- */

/* Force viewport recalculation and prevent overflow */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.container-fluid {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Force repaint on resize - helps with emulator issues */
@media screen {
    html {
        transform: translateZ(0);
    }
}

/* -----------------------------------------
   SMALL MOBILE (max-width: 575px)
   Targets: 375px phones
   ----------------------------------------- */
@media (max-width: 575px) {
    body {
        font-size: 0.875rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1, .h1 { font-size: 1.375rem; }
    h2, .h2 { font-size: 1.2rem; }
    h3, .h3 { font-size: 1.1rem; }
    h4, .h4, h5, .h5 { font-size: 1rem; }
    
    /* Mobile header adjustments */
    .mobile-header {
        padding: 0.5rem 0;
    }
    
    .mobile-brand {
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }
    
    .mobile-brand .hockey-icon {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
    
    .mobile-brand .brand-text {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-header .theme-toggle,
    .mobile-header .navbar-toggler {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .mobile-header .user-avatar {
        width: 30px !important;
        height: 30px !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.5rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .badge {
        font-size: 0.65rem;
    }
    
    .small, small {
        font-size: 0.75rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .payment-amount {
        font-size: 1.25rem;
    }
    
    /* Mobile navbar collapse */
    .navbar-collapse {
        background: var(--hdi-navbar-bg);
        border-radius: var(--hdi-radius);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--hdi-shadow-lg);
    }
    
    .navbar-collapse .nav-link {
        color: var(--hdi-navbar-text) !important;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .btn-outline-light {
        color: #ffffff;
        border-color: #ffffff;
    }
    
    .navbar-collapse .dropdown-menu {
        background: var(--hdi-navbar-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .dropdown-item {
        color: var(--hdi-navbar-text) !important;
    }
    
    .navbar-collapse .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* -----------------------------------------
   LARGE PHONE / SMALL TABLET (576px - 767px)
   Uses mobile header with hamburger menu
   ----------------------------------------- */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        font-size: 0.9rem;
    }
    
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.3rem; }
    h3, .h3 { font-size: 1.15rem; }
    
    .card-body {
        padding: 1rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .btn {
        font-size: 0.85rem;
    }
    
    .badge {
        font-size: 0.7rem;
    }
    
    /* Mobile header adjustments for this size */
    .mobile-header {
        padding: 0.6rem 0;
    }
    
    .mobile-brand {
        font-size: 1.15rem;
    }
    
    .mobile-brand .hockey-icon {
        width: 30px;
        height: 30px;
    }
    
    .mobile-brand .brand-text {
        max-width: 160px;
    }
    
    .mobile-header .theme-toggle,
    .mobile-header .navbar-toggler {
        width: 42px;
        height: 42px;
    }
    
    .mobile-header .user-avatar {
        width: 34px !important;
        height: 34px !important;
    }
    
    /* Navbar collapse styling */
    .navbar-collapse {
        background: var(--hdi-navbar-bg);
        border-radius: var(--hdi-radius);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--hdi-shadow-lg);
    }
    
    .navbar-collapse .nav-link {
        color: var(--hdi-navbar-text) !important;
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .dropdown-menu {
        background: var(--hdi-navbar-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .dropdown-item {
        color: var(--hdi-navbar-text) !important;
    }
}

/* -----------------------------------------
   TABLET PORTRAIT (768px - 1023px)
   Targets: iPad portrait, small tablets
   Uses mobile header with hamburger menu
   ----------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 0.925rem;
    }
    
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    
    .container {
        max-width: 720px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    /* Mobile header adjustments for tablet size */
    .mobile-header {
        padding: 0.75rem 0;
    }
    
    .mobile-brand {
        font-size: 1.25rem;
    }
    
    .mobile-brand .hockey-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .mobile-brand .brand-text {
        max-width: 200px;
    }
    
    .mobile-header .theme-toggle,
    .mobile-header .navbar-toggler {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .mobile-header .user-avatar {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Navbar collapse for tablet */
    .navbar-collapse {
        background: var(--hdi-navbar-bg);
        border-radius: var(--hdi-radius);
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--hdi-shadow-lg);
    }
    
    .navbar-collapse .nav-link {
        color: var(--hdi-navbar-text) !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .dropdown-menu {
        background: var(--hdi-navbar-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-collapse .dropdown-item {
        color: var(--hdi-navbar-text) !important;
    }
}

/* -----------------------------------------
   TABLET LANDSCAPE / SMALL LAPTOP (1024px - 1279px)
   Targets: iPad landscape, small laptops
   ----------------------------------------- */
@media (min-width: 1024px) and (max-width: 1279px) {
    body {
        font-size: 0.95rem;
    }
    
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.35rem; }
    
    .container {
        max-width: 960px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* -----------------------------------------
   STANDARD LAPTOP (1280px - 1439px)
   Targets: Most laptops
   ----------------------------------------- */
@media (min-width: 1280px) and (max-width: 1439px) {
    body {
        font-size: 1rem;
    }
    
    h1, .h1 { font-size: 2.25rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    
    .container {
        max-width: 1140px;
    }
}

/* -----------------------------------------
   DESKTOP (1440px+)
   Targets: Desktop monitors, large screens
   ----------------------------------------- */
@media (min-width: 1440px) {
    body {
        font-size: 1rem;
    }
    
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.5rem; }
    
    .container {
        max-width: 1320px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--hdi-surface-hover) 25%, var(--hdi-surface) 50%, var(--hdi-surface-hover) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--hdi-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ============================================
   BOOTSTRAP OVERRIDES FOR DARK MODE
   ============================================ */

/* Background utilities */
.bg-light {
    background-color: var(--hdi-surface-hover) !important;
}

.bg-white {
    background-color: var(--hdi-surface) !important;
}

.bg-dark {
    background-color: var(--hdi-boards) !important;
}

.bg-body {
    background-color: var(--hdi-bg) !important;
}

.bg-body-secondary {
    background-color: var(--hdi-surface-hover) !important;
}

/* Text utilities */
.text-dark {
    color: var(--hdi-text) !important;
}

.text-body {
    color: var(--hdi-text) !important;
}

.text-body-secondary {
    color: var(--hdi-text-secondary) !important;
}

/* Border utilities */
.border {
    border-color: var(--hdi-border) !important;
}

.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--hdi-border) !important;
}

/* Modal */
.modal-content {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
    color: var(--hdi-text);
}

.modal-header {
    border-bottom-color: var(--hdi-border);
}

.modal-footer {
    border-top-color: var(--hdi-border);
}

.btn-close {
    filter: var(--hdi-btn-close-filter, none);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dropdown */
.dropdown-menu {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
    box-shadow: var(--hdi-shadow-lg);
}

.dropdown-item {
    color: var(--hdi-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--hdi-surface-hover);
    color: var(--hdi-text);
}

.dropdown-divider {
    border-color: var(--hdi-border);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: var(--hdi-primary);
}

.breadcrumb-item.active {
    color: var(--hdi-text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--hdi-text-muted);
}

/* Pagination */
.page-link {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
    color: var(--hdi-text);
}

.page-link:hover {
    background-color: var(--hdi-surface-hover);
    border-color: var(--hdi-border);
    color: var(--hdi-primary);
}

.page-item.active .page-link {
    background-color: var(--hdi-primary);
    border-color: var(--hdi-primary);
}

.page-item.disabled .page-link {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
    color: var(--hdi-text-muted);
}

/* Nav tabs & pills */
.nav-tabs {
    border-bottom: 3px solid var(--hdi-border);
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    color: var(--hdi-text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--hdi-border) !important;
    border-bottom: 2px solid var(--hdi-border) !important;
    border-radius: 8px 8px 0 0;
    background-color: #f1f5f9 !important;
    margin-bottom: -3px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    border-color: var(--hdi-primary) !important;
    color: var(--hdi-primary);
    background-color: #e2e8f0 !important;
}

.nav-tabs .nav-link.active {
    background-color: var(--hdi-surface) !important;
    border-color: var(--hdi-primary) var(--hdi-primary) var(--hdi-surface) !important;
    border-bottom-color: var(--hdi-surface) !important;
    color: var(--hdi-primary);
    font-weight: 700;
}

.nav-pills .nav-link {
    color: var(--hdi-text-secondary);
}

.nav-pills .nav-link:hover {
    background-color: var(--hdi-surface-hover);
    color: var(--hdi-text);
}

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

/* Input group */
.input-group-text {
    background-color: var(--hdi-surface-hover);
    border-color: var(--hdi-border);
    color: var(--hdi-text);
}

/* Progress bar */
.progress {
    background-color: var(--hdi-surface-hover);
}

/* Accordion */
.accordion-item {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
}

.accordion-button {
    background-color: var(--hdi-surface);
    color: var(--hdi-text);
}

.accordion-button:not(.collapsed) {
    background-color: var(--hdi-surface-hover);
    color: var(--hdi-primary);
}

.accordion-button::after {
    filter: var(--hdi-accordion-icon-filter, none);
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Offcanvas */
.offcanvas {
    background-color: var(--hdi-surface);
    color: var(--hdi-text);
}

.offcanvas-header {
    border-bottom-color: var(--hdi-border);
}

/* Toast */
.toast {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
    color: var(--hdi-text);
}

.toast-header {
    background-color: var(--hdi-surface-hover);
    border-bottom-color: var(--hdi-border);
    color: var(--hdi-text);
}

/* Popover & Tooltip */
.popover {
    background-color: var(--hdi-surface);
    border-color: var(--hdi-border);
}

.popover-header {
    background-color: var(--hdi-surface-hover);
    border-bottom-color: var(--hdi-border);
    color: var(--hdi-text);
}

.popover-body {
    color: var(--hdi-text);
}

.tooltip-inner {
    background-color: var(--hdi-boards);
}

/* Specific fixes for common patterns */
.bg-transparent {
    background-color: transparent !important;
}

/* Card footer/header in dark mode */
.card-footer,
.card-header {
    background-color: var(--hdi-surface-hover);
    border-color: var(--hdi-border);
}

/* Fix for inline bg-white classes */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background-color:#fff"] {
    background-color: var(--hdi-surface) !important;
}

/* Fix for text-dark in dark mode */
[data-theme="dark"] .text-dark {
    color: var(--hdi-text) !important;
}

/* Fix for border-dark */
[data-theme="dark"] .border-dark {
    border-color: var(--hdi-border) !important;
}

/* Fix for hr elements */
hr {
    border-color: var(--hdi-border);
    opacity: 0.5;
}

/* Fix for code/pre elements */
code {
    color: var(--hdi-accent);
    background-color: var(--hdi-surface-hover);
    padding: 0.125rem 0.375rem;
    border-radius: var(--hdi-radius-sm);
}

pre {
    background-color: var(--hdi-surface-hover);
    border: 1px solid var(--hdi-border);
    border-radius: var(--hdi-radius);
    padding: 1rem;
    color: var(--hdi-text);
}

pre code {
    background: transparent;
    padding: 0;
}

/* Fix for blockquote */
blockquote {
    border-left: 4px solid var(--hdi-primary);
    padding-left: 1rem;
    color: var(--hdi-text-secondary);
}

/* ============================================
   ADDITIONAL DARK MODE FIXES
   ============================================ */

/* Force ALL table cells to use theme colors in dark mode */
[data-theme="dark"] table td,
[data-theme="dark"] table th,
[data-theme="dark"] .table td,
[data-theme="dark"] .table th,
[data-theme="dark"] .table thead th,
[data-theme="dark"] .table tbody td,
[data-theme="dark"] .table tbody tr td {
    background-color: var(--hdi-surface) !important;
    color: var(--hdi-text) !important;
    border-color: var(--hdi-border) !important;
}

[data-theme="dark"] .table thead th,
[data-theme="dark"] table thead th {
    background-color: var(--hdi-surface-hover) !important;
}

[data-theme="dark"] .table-hover tbody tr:hover td {
    background-color: var(--hdi-surface-hover) !important;
}

/* Colored table rows in dark mode - MAXIMUM SPECIFICITY */
[data-theme="dark"] tr.table-danger td,
[data-theme="dark"] .table-danger td,
[data-theme="dark"] .table tbody tr.table-danger td,
[data-theme="dark"] table tbody tr.table-danger td,
html[data-theme="dark"] tr.table-danger td,
html[data-theme="dark"] .table tr.table-danger td {
    background-color: #7f1d1d !important;
    color: #fecaca !important;
}

[data-theme="dark"] tr.table-warning td,
[data-theme="dark"] .table-warning td,
[data-theme="dark"] .table tbody tr.table-warning td,
html[data-theme="dark"] tr.table-warning td {
    background-color: #78350f !important;
    color: #fef3c7 !important;
}

[data-theme="dark"] tr.table-success td,
[data-theme="dark"] .table-success td,
[data-theme="dark"] .table tbody tr.table-success td,
html[data-theme="dark"] tr.table-success td {
    background-color: #064e3b !important;
    color: #d1fae5 !important;
}

[data-theme="dark"] tr.table-info td,
[data-theme="dark"] .table-info td,
[data-theme="dark"] .table tbody tr.table-info td,
html[data-theme="dark"] tr.table-info td {
    background-color: #1e3a5f !important;
    color: #dbeafe !important;
}

/* Fix Bootstrap's default bg classes in dark mode */
[data-theme="dark"] .bg-light {
    background-color: var(--hdi-surface-hover) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--hdi-surface) !important;
}

[data-theme="dark"] .bg-body {
    background-color: var(--hdi-bg) !important;
}

/* Fix list-group in dark mode */
[data-theme="dark"] .list-group-item {
    background-color: var(--hdi-surface) !important;
    border-color: var(--hdi-border) !important;
    color: var(--hdi-text) !important;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: var(--hdi-surface-hover) !important;
}

/* Fix form elements in dark mode */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--hdi-surface) !important;
    border-color: var(--hdi-border) !important;
    color: var(--hdi-text) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background-color: var(--hdi-surface) !important;
    border-color: var(--hdi-primary) !important;
    color: var(--hdi-text) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--hdi-text-muted) !important;
}

/* Fix input-group in dark mode */
[data-theme="dark"] .input-group-text {
    background-color: var(--hdi-surface-hover) !important;
    border-color: var(--hdi-border) !important;
    color: var(--hdi-text) !important;
}

/* Fix select dropdown options */
[data-theme="dark"] option {
    background-color: var(--hdi-surface) !important;
    color: var(--hdi-text) !important;
}

/* Fix dl/dt/dd definition lists (Group Info section) */
[data-theme="dark"] dt,
[data-theme="dark"] dd,
[data-theme="dark"] dl dt,
[data-theme="dark"] dl dd,
[data-theme="dark"] .row dt,
[data-theme="dark"] .row dd {
    color: var(--hdi-text) !important;
}

[data-theme="dark"] dt {
    color: var(--hdi-text-secondary) !important;
}

/* Fix any remaining text colors */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label {
    color: inherit;
}

/* Ensure card body text is visible */
[data-theme="dark"] .card-body {
    color: var(--hdi-text);
}

[data-theme="dark"] .card-body p,
[data-theme="dark"] .card-body span,
[data-theme="dark"] .card-body dt,
[data-theme="dark"] .card-body dd {
    color: var(--hdi-text) !important;
}

/* ============================================
   MOBILE HEADER STYLES
   ============================================ */
.mobile-header {
    background: var(--hdi-navbar-bg);
    color: var(--hdi-navbar-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--hdi-shadow);
}

.mobile-header .container-fluid {
    padding: 0;
}

.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--hdi-navbar-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    flex: 1;
    margin: 0 1rem;
}

.mobile-brand:hover {
    color: var(--hdi-navbar-text);
    text-decoration: none;
}

.mobile-brand .hockey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--hdi-radius-full);
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-brand .brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header .hockey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--hdi-radius-full);
    font-size: 1.125rem;
}

.mobile-header .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--hdi-navbar-text);
    width: 40px;
    height: 40px;
    border-radius: var(--hdi-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hdi-transition);
    font-size: 1.125rem;
}

.mobile-header .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mobile-header .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    color: var(--hdi-navbar-text);
}

.mobile-header .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.mobile-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.mobile-header .dropdown-toggle::after {
    display: none;
}

.mobile-header .dropdown {
    position: relative;
}

.mobile-header .container-fluid {
    overflow: visible !important;
}

.mobile-header .d-flex.align-items-center.gap-2 {
    overflow: visible !important;
}

/* Mobile user dropdown - moved to body via JS */
body > .dropdown-menu[aria-labelledby="mobileUserDropdown"] {
    position: fixed !important;
    border: 1px solid var(--hdi-border);
    border-radius: var(--hdi-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 99999;
    background-color: var(--hdi-surface);
    color: var(--hdi-text);
    min-width: 220px;
    max-width: calc(100vw - 20px);
    margin: 0;
    padding: 0;
}

.mobile-header .dropdown-menu.show {
    display: block;
}

.mobile-header .dropdown-menu .dropdown-header {
    background-color: var(--hdi-surface-hover);
    border-bottom: 1px solid var(--hdi-border);
    padding: 0.75rem 1rem;
    margin: 0;
}

.mobile-header .dropdown-menu .dropdown-item {
    color: var(--hdi-text);
    padding: 0.75rem 1rem;
    transition: var(--hdi-transition);
}

.mobile-header .dropdown-menu .dropdown-item:hover {
    background-color: var(--hdi-surface-hover);
    color: var(--hdi-primary);
}

.mobile-header .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: var(--hdi-danger-bg);
    color: var(--hdi-danger);
}

.mobile-header .dropdown-menu .dropdown-divider {
    border-color: var(--hdi-border);
    margin: 0.25rem 0;
}

.mobile-header .user-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hdi-navbar-text);
    font-size: 0.875rem;
}

/* Mobile Navigation Menu */
.navbar.d-md-none {
    background: var(--hdi-navbar-bg);
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.d-md-none .navbar-collapse {
    background: var(--hdi-navbar-bg);
}

.navbar.d-md-none .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--hdi-transition);
}

.navbar.d-md-none .nav-link:hover {
    color: var(--hdi-navbar-text);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.d-md-none .nav-link i {
    margin-right: 0.5rem;
}

.navbar.d-md-none .btn-accent {
    margin: 0.5rem 1rem;
    width: calc(100% - 2rem);
}

/* Desktop Navigation Bar */
.navbar.d-none.d-lg-block {
    background: var(--hdi-navbar-bg) !important;
    padding: 0.75rem 0;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.navbar.d-none.d-lg-block .container {
    background: transparent !important;
}

.navbar.d-none.d-lg-block .navbar-collapse {
    background: transparent !important;
}

.navbar.d-none.d-lg-block .navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hdi-navbar-text);
    margin-right: 2rem;
    background: transparent !important;
}

.navbar.d-none.d-lg-block .hockey-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--hdi-radius-full);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.navbar.d-none.d-lg-block .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    transition: var(--hdi-transition);
    font-weight: 500;
    background: transparent !important;
}

.navbar.d-none.d-lg-block .nav-link:hover {
    color: var(--hdi-navbar-text);
    background: transparent !important;
}

.navbar.d-none.d-lg-block .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--hdi-navbar-text);
    width: 40px;
    height: 40px;
    border-radius: var(--hdi-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hdi-transition);
    font-size: 1.125rem;
}

.navbar.d-none.d-lg-block .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.navbar.d-none.d-lg-block .dropdown-menu {
    border: none;
    border-radius: var(--hdi-radius-lg);
    box-shadow: var(--hdi-shadow-lg);
    background-color: var(--hdi-surface);
    color: var(--hdi-text);
}

.navbar.d-none.d-lg-block .dropdown-menu .dropdown-header {
    background-color: var(--hdi-surface-hover);
    border-bottom: 1px solid var(--hdi-border);
}

.navbar.d-none.d-lg-block .dropdown-menu .dropdown-item {
    color: var(--hdi-text);
    transition: var(--hdi-transition);
}

.navbar.d-none.d-lg-block .dropdown-menu .dropdown-item:hover {
    background-color: var(--hdi-surface-hover);
    color: var(--hdi-primary);
}

.navbar.d-none.d-lg-block .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: var(--hdi-danger-bg);
    color: var(--hdi-danger);
}

.navbar.d-none.d-lg-block .user-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hdi-navbar-text);
}

/* ============================================
   DEBUG: Breakpoint Indicator (enable with .debug-breakpoints on body)
   Shows current breakpoint in corner during development
   ============================================ */
body.debug-breakpoints::before {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border-radius: 4px;
    z-index: 9999;
    pointer-events: none;
}

body.debug-breakpoints::before {
    content: "XS (<576px)";
    background: #dc3545;
}

@media (min-width: 576px) {
    body.debug-breakpoints::before {
        content: "SM (576-767px)";
        background: #fd7e14;
    }
}

@media (min-width: 768px) {
    body.debug-breakpoints::before {
        content: "MD (768-1023px)";
        background: #ffc107;
        color: #000;
    }
}

@media (min-width: 1024px) {
    body.debug-breakpoints::before {
        content: "LG (1024-1279px)";
        background: #20c997;
    }
}

@media (min-width: 1280px) {
    body.debug-breakpoints::before {
        content: "XL (1280-1439px)";
        background: #0d6efd;
    }
}

@media (min-width: 1440px) {
    body.debug-breakpoints::before {
        content: "XXL (1440px+)";
        background: #6f42c1;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar, .mobile-header, footer, .btn, .no-print, .theme-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
