/* Admin Dashboard Styles - Light Theme with Gold Accent */

:root {
    /* Light theme backgrounds */
    --bg-page: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-surface-alt: #fafafa;
    --bg-input: #ffffff;

    /* Borders */
    --border-color: #e0e0e0;
    --border-strong: #d0d0d0;

    /* Text colors */
    --text-primary: #1a1a2e;
    --text-body: #333333;
    --text-muted: #666666;
    --text-light: #888888;

    /* Accent colors (gold) */
    --accent: #FFD700;
    --accent-hover: #e6c200;
    --accent-dark: #b8960a;
    --on-accent: #1a1a2e;

    /* Status colors */
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #dc2626;
    --error-light: #fee2e2;

    /* Legacy mappings (for gradual migration) */
    --black: #1a1a2e;
    --dark-gray: #f5f5f5;
    --medium-gray: #ffffff;
    --light-gray: #fafafa;
    --yellow: #FFD700;
    --yellow-hover: #e6c200;
    --yellow-dark: #b8960a;
    --white: #1a1a2e;
    --neutral-gray: #666666;
    --empty-state-gray: #888888;
    --success-green: #16a34a;
    --warning-orange: #f59e0b;
    --warning-orange-dark: #d97706;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    min-height: 100vh;
}

/* Header */
.admin-header {
    background-color: var(--bg-surface);
    border-bottom: 3px solid var(--accent);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background-color: var(--yellow);
    color: var(--black);
}

/* Demo Mode Banner */
.demo-banner {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Flash Messages */
.flash-messages {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.flash {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--yellow);
    background-color: var(--dark-gray);
}

.flash.error {
    border-left-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.flash.success {
    border-left-color: #44ff44;
    background-color: rgba(68, 255, 68, 0.1);
}

/* Tab Navigation */
.tab-nav {
    background-color: var(--bg-surface);
    border-bottom: 2px solid var(--border-color);
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-btn:hover {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
    background-color: var(--bg-surface);
    font-weight: 600;
}

/* Main Content Area */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.tab-content {
    display: none;
}

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

/* Tab Content Sections */
.tab-panel {
    background-color: var(--bg-surface);
    border-radius: 8px;
    padding: 2rem;
    min-height: 400px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-panel h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.tab-panel p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Placeholder Content */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: #666;
}

.placeholder-content .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.placeholder-content h3 {
    color: var(--yellow);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.placeholder-content p {
    color: #888;
}

/* Utility Classes */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tab-nav {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .admin-container {
        padding: 1rem;
    }

    .tab-panel {
        padding: 1rem;
    }

    .tab-panel h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .admin-logo {
        font-size: 1.2rem;
    }

    .logout-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
}

/* Season Card Styles */
.season-card {
    background-color: var(--bg-surface);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
}

.season-card.current {
    border-left-color: var(--success-green);
}

.season-card.no-season {
    border-left-color: var(--warning-orange);
}

.season-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.season-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-warning,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

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

.btn-primary:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    background-color: #e0e0e0;
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.btn-warning {
    background-color: var(--warning-orange);
    color: white;
}

.btn-warning:hover {
    background-color: var(--warning-orange-dark);
}

.btn-danger {
    background-color: var(--medium-gray);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.btn-danger:hover {
    background-color: #ef4444;
    color: white;
}

/* Create Season Form */
.create-season-form {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.create-season-form h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.create-season-form form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.create-season-form input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-body);
    font-size: 1rem;
}

.create-season-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* Shared Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background-color: var(--bg-surface-alt);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: var(--text-primary);
    font-weight: 600;
}

.admin-table td {
    color: var(--text-body);
}

.admin-table tbody tr:hover {
    background-color: var(--bg-surface-alt);
}

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

/* Archived Seasons Table */
.archived-seasons {
    margin-top: 2rem;
}

.archived-seasons h3 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Current Season Tournaments */
.current-season-tournaments {
    margin-top: 3rem; /* 2 line spaces */
    margin-bottom: 3rem;
}

.current-season-tournaments h3 {
    color: var(--yellow);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Empty State Message */
.empty-state-message {
    color: var(--empty-state-gray);
    font-style: italic;
    margin-top: 1rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.active-badge {
    background-color: var(--success-green);
    color: white;
}

.completed-badge {
    background-color: var(--neutral-gray);
    color: white;
}

.setup-badge {
    background-color: var(--warning-orange);
    color: white;
}

/* Create Tournament Form */
.create-tournament-form {
    margin-top: 3rem; /* 2 line spaces */
    margin-bottom: 3rem;
}

.create-tournament-form h3 {
    color: var(--yellow);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.create-tournament-form .form-group {
    margin-bottom: 1.5rem;
}

.create-tournament-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.create-tournament-form input[type="text"],
.create-tournament-form input[type="number"],
.create-tournament-form select,
.create-tournament-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-body);
    min-height: 48px;
    font-family: inherit;
}

.create-tournament-form textarea {
    min-height: 200px;
    resize: vertical;
}

.create-tournament-form input:focus,
.create-tournament-form select:focus,
.create-tournament-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.create-tournament-form .form-hint {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.create-tournament-form button[type="submit"] {
    margin-top: 1rem;
}

/* Tournament Edit Form */
.edit-row {
    background-color: var(--light-gray);
}

.edit-form-container {
    padding: 2rem;
    background-color: var(--bg-surface-alt);
    border-radius: 4px;
    margin: 1rem 0;
}

.edit-form-container h4 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.edit-form-container .form-group {
    margin-bottom: 1.5rem;
}

.edit-form-container label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.edit-form-container .form-input,
.edit-form-container .form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-body);
    font-family: inherit;
}

.edit-form-container .form-textarea {
    min-height: 250px;
    resize: vertical;
    font-family: monospace;
}

.edit-form-container .form-input:focus,
.edit-form-container .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.edit-form-container .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Round 1 Court Assignment Editor */
.round1-preview-section {
    border-top: 2px solid #e0e0e0;
    padding-top: 1.5rem;
}

.court-card {
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.court-header {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.court-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-column {
    padding: 0.5rem;
}

.team-column h5 {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #495057;
}

.player-box {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-box:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.player-box.selected {
    border: 3px solid #FFD700;
    background: #FFFACD;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.player-box.selected::before {
    content: '✓ ';
    color: #FFD700;
    font-weight: bold;
}

.player-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Swap animation */
@keyframes swap-slide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-box.swapping {
    animation: swap-slide 0.5s ease-in-out;
}

/* Button spacing in controls */
#round1-controls button {
    margin-right: 0.5rem;
}

/* Player Points Tab Styles */
.season-info {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.season-info strong {
    color: var(--yellow);
}

.players-table {
    margin-bottom: 2rem;
}

.adjustment-indicator {
    color: var(--warning-orange);
    font-size: 0.85rem;
    margin-left: 0.5rem;
    cursor: help;
}

.player-edit-form {
    background-color: var(--dark-gray);
}

.player-edit-form .points-info {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.player-edit-form .points-info p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.player-edit-form .points-info strong {
    color: var(--yellow);
}

.player-edit-form .form-group {
    margin-bottom: 1rem;
}

.player-edit-form .form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.player-edit-form .form-input {
    width: 150px;
    padding: 0.75rem;
    font-size: 1.2rem;
    background-color: var(--medium-gray);
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    color: var(--white);
    text-align: center;
}

.player-edit-form .form-input:focus {
    outline: none;
    border-color: var(--yellow);
}

/* Season header row with export button */
.season-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Player Validation Results */
.validation-results {
    margin-top: 1rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.validation-list {
    max-height: 300px;
    overflow-y: auto;
}

.validation-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.validation-item.similar {
    flex-wrap: nowrap;
}

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

.validation-item .player-name {
    font-weight: 500;
    color: var(--text-primary);
}

.validation-item.exact {
    background: rgba(34, 197, 94, 0.15);
    border-left: 3px solid var(--success-green);
}

.validation-item.similar {
    background: rgba(255, 152, 0, 0.15);
    border-left: 3px solid var(--warning-orange);
}

.validation-item.new {
    background: rgba(59, 130, 246, 0.15);
    border-left: 3px solid #3b82f6;
}

.validation-item.duplicate {
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
}

.validation-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}

.validation-suggestion {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    color: var(--text-light);
    font-weight: 500;
}

.validation-suggestion .btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
    margin-left: 0.75rem;
}

.validation-suggestion .btn-link:hover {
    color: #60a5fa;
}

.suggestion-links {
    display: flex;
    gap: 0.5rem;
}

.validation-summary {
    padding: 1rem;
    background: var(--bg-surface-alt);
    color: var(--text-body);
    border-bottom: 1px solid var(--medium-gray);
}

.validation-summary .error {
    color: #ef4444;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.new-tag {
    background-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Auth Pages (Login, Setup, Forgot Password) */
body.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-page);
}

.auth-container {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-container.wide {
    max-width: 500px;
}

.auth-container h1 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.auth-container .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-body);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.auth-form .help-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 0.5rem;
}

.auth-info-box {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-info-box strong {
    color: var(--text-primary);
}

.auth-warning {
    background-color: var(--warning-light);
    border: 1px solid var(--warning);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.auth-warning p {
    margin: 0;
    color: var(--text-body);
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--text-primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

.auth-links + .auth-links {
    margin-top: 0.75rem;
}

/* Flash messages for auth pages */
.auth-container .flash-messages {
    margin-bottom: 1.5rem;
    padding: 0;
    max-width: none;
}

.auth-container .flash-error {
    background-color: var(--error-light);
    color: var(--error);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--error);
}

.auth-container .flash-success {
    background-color: var(--success-light);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--success);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.modal {
    background-color: var(--bg-surface);
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body input[type="text"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-body);
    box-sizing: border-box;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.modal-body textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.modal-body .form-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    align-items: stretch;
}

.modal-footer button {
    min-height: 48px;
}

/* Data Management Section */
.data-section {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.data-section h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Season Accordion */
.season-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.season-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.season-row.current {
    border-color: var(--accent);
    border-width: 2px;
}

.season-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    gap: 1rem;
    transition: background 0.2s;
}

.season-header:hover {
    background: var(--bg-surface-alt);
}

.season-toggle-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 15px;
    transition: transform 0.2s;
}

.season-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.season-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.season-badge.current {
    background: var(--accent);
    color: var(--on-accent);
}

.season-badge.ended {
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.season-tournament-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.season-details {
    display: none;
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
}

.season-details.show {
    display: block;
}

.season-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.season-tournaments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.season-tournaments-table th,
.season-tournaments-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.season-tournaments-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.season-tournaments-table .actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.season-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.create-season-inline {
    display: none;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.create-season-inline.show {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.create-season-inline input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
