/* CSS Design System for Sports Registration & Tournament Scheduler */

:root {
    --bg-main: #0a0f1d;
    --bg-card: #121824;
    --bg-card-hover: #1b2436;
    --border-color: #202b3e;
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.25);
    
    --success: #10b981;
    --success-hover: #059669;
    --success-glow: rgba(16, 185, 129, 0.2);
    
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #111827;
    
    --glass-bg: rgba(18, 24, 36, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-family: 'Kanit', sans-serif;
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* App Layout Grid */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-speed) ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-crest {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 11px;
    color: var(--success);
    font-weight: 500;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--text-main);
    background-color: var(--bg-card-hover);
}

.nav-link.active {
    color: white;
    background-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-footer p i {
    color: var(--primary);
}

/* Main Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    min-height: 100vh;
    background-color: var(--bg-main);
    transition: margin-left var(--transition-speed) ease;
}

/* Tab Layout Content Display */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* Header Info */
.content-header {
    margin-bottom: 32px;
}

.content-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.content-header .subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* Base Component: Cards & Panels */
.dashboard-panel, .scheduler-card, .scheduler-matches-view, .standings-display-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 i {
    color: var(--primary);
}

/* Dashboard Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-premium);
    transition: transform var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.team-icon { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.match-icon { background-color: rgba(16, 185, 129, 0.15); color: #34d399; }
.live-icon { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.completed-icon { background-color: rgba(239, 68, 68, 0.15); color: #f87171; }

.stat-info h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.dashboard-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Division Distribution list */
.division-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.division-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.division-stat-item .div-name {
    font-weight: 400;
}

.division-stat-item .div-count {
    background-color: var(--primary-glow);
    color: #93c5fd;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid rgba(147, 197, 253, 0.2);
}

/* General Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

.btn-secondary { background-color: var(--border-color); color: var(--text-main); }
.btn-secondary:hover { background-color: var(--bg-card-hover); }

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

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

.btn-outline-primary {
    background: none;
    border: 1px solid var(--primary);
    color: #60a5fa;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline-success {
    background: none;
    border: 1px solid var(--success);
    color: #34d399;
}
.btn-outline-success:hover {
    background-color: var(--success);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}
.btn-text-link:hover {
    text-decoration: underline;
}

.w-100 { width: 100%; }
.d-none { display: none !important; }

/* Form Elements Styling */
.form-group-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    flex-grow: 1;
}

.col-12 { width: 100%; }
.col-8 { width: calc(66.666% - 8px); }
.col-7 { width: calc(58.33% - 8px); }
.col-6 { width: calc(50% - 8px); }
.col-5 { width: calc(41.66% - 8px); }
.col-4 { width: calc(33.333% - 10px); }
.col-3 { width: calc(25% - 12px); }

@media (max-width: 768px) {
    .form-group-row .form-group {
        width: 100% !important;
    }
}

label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.required {
    color: var(--danger);
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    font-family: var(--font-family);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background-color: rgba(255, 255, 255, 0.05);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0 16px 0;
}

.sub-step-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--success);
}

.flex-align-end {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Wizard Steps Components */
.form-wizard-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    gap: 10px;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    height: 2px;
    background-color: var(--border-color);
    top: 15px;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 140px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.step-indicator.active .step-label {
    color: white;
    font-weight: 500;
}

.step-indicator.completed .step-number {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

@media (max-width: 600px) {
    .wizard-steps {
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start;
    }
    .step-indicator {
        min-width: 110px;
    }
    .wizard-steps::before {
        display: none;
    }
}

.wizard-step-content {
    display: none;
    animation: fadeIn var(--transition-speed) ease;
}

.wizard-step-content.active {
    display: block;
}

.step-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Card Fields block */
.card-field-block {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-block-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-block-title i {
    color: var(--primary);
}

/* Player Form Cards (Wizard step 3) */
.step-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.player-card-input {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    position: relative;
}

.player-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 13px;
    color: var(--primary);
}

.btn-remove-player {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
}
.btn-remove-player:hover {
    color: #f87171;
}

.player-avatar-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.avatar-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 1px solid var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-muted);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: relative;
    overflow: hidden;
}

.avatar-upload-btn input[type="file"] {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

/* Warnings and summary boxes (Wizard step 4) */
.warning-box {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.warning-box h4 {
    font-size: 14px;
    font-weight: 500;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.warning-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.submission-summary {
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.submission-summary h4 {
    font-size: 14px;
    font-weight: 500;
    color: #34d399;
    margin-bottom: 12px;
}

.summary-details p {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.summary-details strong {
    color: var(--text-main);
}

/* Filter and Search Bar styles */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group select {
    width: auto;
    min-width: 250px;
}

.search-group {
    position: relative;
    width: 300px;
}

.search-group input {
    padding-right: 36px;
}

.search-group i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-group {
        width: 100%;
    }
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group select {
        width: 100%;
    }
}

/* Teams List Display Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: all 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.team-card-title {
    font-size: 18px;
    font-weight: 500;
}

.team-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.badge-blue { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.25); }
.badge-green { background-color: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }

.team-card-body {
    font-size: 13px;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
}

.team-card-body p {
    margin-bottom: 6px;
}

.team-card-body strong {
    color: var(--text-main);
}

.team-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

/* Scheduler Config Styles */
.scheduler-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.division-info-badge {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    background-color: var(--bg-main);
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-with-actions h3 {
    font-size: 16px;
    font-weight: 500;
}

/* Generated Match / Score Tracker Styles */
.generated-matches-list, .matches-list-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-row-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.match-row-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--border-color);
}

.match-row-card.match-pending::before { background-color: var(--warning); }
.match-row-card.match-live::before { background-color: var(--primary); }
.match-row-card.match-completed::before { background-color: var(--success); }

.match-meta-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.match-round-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.match-time-tag {
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-loc-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.match-teams-vs-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-grow: 1;
}

.match-team-display {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 40%;
}

.match-team-display.team-a { justify-content: flex-end; text-align: right; }
.match-team-display.team-b { justify-content: flex-start; text-align: left; }

.match-team-name-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.match-team-logo {
    width: 32px;
    height: 32px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.match-score-pill {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
}

.match-status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.status-pending { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.status-live { background-color: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.25); }
.status-completed { background-color: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }

.match-action-block {
    display: flex;
    justify-content: flex-end;
    min-width: 100px;
}

@media (max-width: 768px) {
    .match-row-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .match-teams-vs-block {
        justify-content: space-between;
    }
    .match-team-display {
        width: auto;
    }
    .match-action-block {
        justify-content: stretch;
        width: 100%;
    }
    .match-action-block .btn {
        width: 100%;
    }
}

/* Standings Table Styles */
.standings-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--success);
}

.table-responsive {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.standings-table th, .standings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.standings-table th {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 13px;
}

.standings-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.highlight-th {
    color: var(--success) !important;
}

.standings-table td.highlight-score {
    font-weight: 600;
    color: var(--success);
}

/* Bracket View (Single Elimination) Styles */
.bracket-scroll-hint {
    display: none;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .bracket-scroll-hint { display: block; }
}

.bracket-container-wrapper {
    overflow-x: auto;
    padding: 20px 0;
}

.bracket-canvas {
    display: flex;
    gap: 40px;
    min-width: max-content;
    padding: 10px;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 20px;
    width: 220px;
}

.round-title-banner {
    text-align: center;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}

.bracket-match-node {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    position: relative;
}

.bracket-match-node::after {
    /* Bracket connecting lines */
    /* Add logic dynamically or keep styled nodes */
}

.bracket-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    height: 36px;
}

.bracket-team-row:last-child {
    border-bottom: none;
}

.bracket-team-name {
    font-weight: 400;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
}

.bracket-team-score {
    font-weight: 600;
    width: 24px;
    text-align: center;
    color: var(--text-muted);
}

.bracket-team-row.winner .bracket-team-name {
    color: white;
    font-weight: 500;
}

.bracket-team-row.winner .bracket-team-score {
    color: var(--success);
}

.bracket-team-row.bye-row .bracket-team-name {
    font-style: italic;
    color: rgba(255,255,255,0.15);
}

/* Modal Window Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop.active {
    display: flex;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-premium);
    animation: zoomIn 0.3s ease;
    overflow: hidden;
}

.printable-modal-card {
    max-width: 800px;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.modal-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}
.close-modal-btn:hover {
    color: white;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Versus scoring design in modal */
.score-input-versus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    background-color: var(--bg-main);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.score-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.team-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.score-team-block h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-input-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.btn-score-adjust {
    background-color: var(--bg-card);
    border: none;
    color: white;
    width: 32px;
    height: 36px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}
.btn-score-adjust:hover { background-color: var(--bg-card-hover); }

.score-input-control input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
}
.score-input-control input:focus {
    box-shadow: none;
}
.score-input-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.vs-divider {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
}

.match-meta-info {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.match-additional-details {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 14px;
    color: var(--border-color);
}

.empty-state p {
    font-size: 14px;
}

/* Mobile Responsive Sidebar Toggle */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .sidebar-header {
        padding: 16px;
    }
}

/* Print Styles & A4 Optimization */
@page {
    size: A4 portrait;
    margin: 8mm 12mm 8mm 12mm; /* Tight margins to prevent spilling over */
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    
    /* Hide all web dashboard elements */
    .sidebar, 
    .modal-header, 
    .modal-footer, 
    #btn-print-team, 
    #btn-print-report,
    .close-modal-btn, 
    .mobile-nav-toggle, 
    .main-content > *:not(#teamModalBackdrop):not(#printReportModalBackdrop),
    #teamModalBackdrop > *:not(.modal-card),
    #printReportModalBackdrop > *:not(.modal-card),
    .modal-backdrop:not(.active) {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .modal-backdrop.active {
        position: static !important;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: auto !important;
    }

    .modal-card {
        border: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .modal-body {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    /* Print Specific Form Layout styling */
    .print-form-container {
        color: #000000 !important;
        background-color: #ffffff !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .print-form-header {
        text-align: center;
        margin-bottom: 6px !important;
        border-bottom: 2px double #000000 !important;
        padding-bottom: 4px !important;
    }

    .print-form-header h2 {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        margin-bottom: 1px !important;
    }

    .print-form-header h3 {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #000000 !important;
        margin-bottom: 1px !important;
    }

    .print-form-header p {
        font-size: 9px !important;
        color: #333333 !important;
    }

    .print-section-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        margin: 6px 0 3px 0 !important;
        border-bottom: 1px solid #000000 !important;
        padding-bottom: 1px !important;
        color: #000000 !important;
    }

    .print-info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 10px !important;
        margin-bottom: 6px !important;
        font-size: 10px !important;
    }

    .print-info-grid p {
        border-bottom: 1px dotted #888888 !important;
        padding-bottom: 2px !important;
        margin: 0 !important;
    }

    .print-player-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 6px !important;
        font-size: 10px !important;
    }

    .print-player-table th, 
    .print-player-table td {
        border: 1px solid #000000 !important;
        padding: 2px 4px !important; /* Extremely tight padding to guarantee 1 page A4 */
        text-align: left;
        color: #000000 !important;
    }

    .print-player-table th {
        background-color: #eaeaea !important;
        font-weight: 700 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-signatures-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 30px !important;
        margin-top: 8px !important;
        font-size: 10px !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .signature-block {
        text-align: center !important;
    }

    .signature-line {
        border-bottom: 1px solid #000000 !important;
        margin-bottom: 3px !important;
        margin-top: 12px !important;
        width: 70% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Print modes styling */
    body.print-mode-team .printable-photo-board {
        display: none !important;
    }
    body.print-mode-photoboard .print-form-container {
        display: none !important;
    }

    /* Print styles for photo board when printing */
    .printable-photo-board {
        color: #000000 !important;
        background-color: #ffffff !important;
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        margin-top: 0 !important;
        box-shadow: none !important;
    }

    .photoboard-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 6mm !important;
        margin-top: 6mm !important;
        margin-bottom: 6mm !important;
        width: 100% !important;
    }

    .photoboard-card {
        border: 1px solid #000000 !important;
        border-radius: 4px !important;
        padding: 2mm !important;
        text-align: center !important;
        background: #ffffff !important;
        color: #000000 !important;
        box-sizing: border-box !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .photoboard-photo-wrap {
        position: relative !important;
        width: 100% !important;
        padding-top: 130% !important; /* 3:4 Aspect ratio */
        margin-bottom: 2mm !important;
        border-radius: 2px !important;
        overflow: hidden !important;
        background-color: #ffffff !important;
        border: 1px solid #000000 !important;
        box-sizing: border-box !important;
    }

    .photoboard-photo-wrap img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .photoboard-photo-placeholder {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 16px !important;
        color: #000000 !important;
    }

    .photoboard-number {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 11px !important;
        padding: 1px 4px !important;
        border-top-left-radius: 2px !important;
        line-height: 1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .photoboard-name {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #000000 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .photoboard-nickname {
        font-size: 9px !important;
        color: #333333 !important;
    }

    .photoboard-card.empty-card {
        border: 1px dashed #000000 !important;
        opacity: 1 !important;
    }
}

/* Screen Fallback Styles for Printable Modal */
.print-form-container {
    color: #333;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    font-family: var(--font-family);
    line-height: 1.5;
}

.print-form-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px double #333;
    padding-bottom: 12px;
}

.print-form-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.print-form-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.print-form-header p {
    font-size: 12px;
    color: #666;
}

.print-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-bottom: 16px;
    font-size: 13px;
}

.print-info-grid p {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 4px;
}

.print-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    color: #111;
}

.print-player-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 12px;
}

.print-player-table th, .print-player-table td {
    border: 1px solid #aaa;
    padding: 6px 10px;
    text-align: left;
    color: #333;
}

.print-player-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #111;
}

.print-signatures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 24px;
    font-size: 12px;
}

.signature-block {
    text-align: center;
}

.signature-line {
    border-bottom: 1px solid #333;
    margin-bottom: 6px;
    margin-top: 24px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Division Visual Selector styling */
.division-visual-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    width: 100%;
}

.div-selector-group {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
}

.div-group-header {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.div-group-header i {
    color: var(--success);
}

.div-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.div-card-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 70px;
    box-sizing: border-box;
}

.div-card-btn:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--primary);
}

.div-card-btn.active {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.div-card-title {
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.div-card-gender {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.div-card-btn.active .div-card-title {
    color: white;
}

.div-card-btn.active .div-card-gender {
    color: #93c5fd;
    font-weight: 500;
}

/* Group Draw Modal styling */
.group-draw-container-layout {
    display: grid;
    grid-template-columns: 200px 280px 1fr;
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 991px) {
    .group-draw-container-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.draw-wheel-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.wheel-outer-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 10px auto;
}

#draw-wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background-color: rgba(255,255,255,0.02);
    display: block;
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid var(--danger);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.wheel-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 5;
    border: 4px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
}

.wheel-announcer {
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    color: var(--warning);
    text-align: center;
    min-width: 180px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.draw-wheel-controls {
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.draw-wheel-controls .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}

.draw-wheel-controls input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.draw-wheel-controls label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.draw-pool-panel {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.draw-pool-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.draw-team-badge {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.draw-team-badge.drawing {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: drawPulse 1s infinite alternate;
}

.draw-team-badge.drawn {
    opacity: 0.3;
    text-decoration: line-through;
    background-color: rgba(255, 255, 255, 0.01);
}

.draw-results-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.draw-group-box {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.draw-group-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
}

.draw-group-teams-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.draw-group-team-item {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: white;
    animation: slideInDraw 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes drawPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.03);
    }
}

@keyframes slideInDraw {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Penalty Icons and Styling */
.card-yellow-icon {
    display: inline-block;
    width: 10px;
    height: 14px;
    background-color: #fbbf24;
    border-radius: 1px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-red-icon {
    display: inline-block;
    width: 10px;
    height: 14px;
    background-color: #ef4444;
    border-radius: 1px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cards-input-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 576px) {
    .cards-input-cols {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Screen Fallback Styles for Photo Board */
.printable-photo-board {
    color: #333;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    font-family: var(--font-family);
    line-height: 1.5;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.photoboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.photoboard-card {
    border: 1px solid #dddddd;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    background: #fbfbfb;
    color: #333333;
}

.photoboard-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 130%; /* Aspect ratio (3:4) */
    margin-bottom: 6px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
}

.photoboard-photo-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photoboard-photo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #94a3b8;
}

.photoboard-number {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 5px;
    border-top-left-radius: 4px;
    line-height: 1;
}

.photoboard-name {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0f172a;
}

.photoboard-nickname {
    font-size: 9px;
    color: #64748b;
}

.photoboard-card.empty-card {
    opacity: 0.6;
    border-style: dashed;
    background-color: #f8fafc;
}

/* Adjust grid for smaller screens inside the modal preview */
@media (max-width: 768px) {
    .photoboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .photoboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


