/* ChessDawgs Navbar Styles - Matching Main Website */
:root {
    --primary-brown: #8B4513;
    --dark-brown: #654321;
    --light-brown: #D2B48C;
    --tan: #F5DEB3;
    --cream: #FFF8DC;
    --dark-text: #3E2723;
    --light-text: #FFFFFF;
    --accent-gold: #DAA520;
    --shadow: rgba(0, 0, 0, 0.2);
}

/* Header & Navigation */
.chessdawgs-header {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-gold);
    color: var(--dark-brown);
}

/* Footer */
.chessdawgs-footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.chessdawgs-footer p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}

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

:root {
    /* ChessDawgs Brown Theme */
    --primary-brown: #8B4513;
    --dark-brown: #654321;
    --light-brown: #D2B48C;
    --tan: #F5DEB3;
    --cream: #FFF8DC;
    --dark-text: #3E2723;
    --light-text: #FFFFFF;
    --accent-gold: #DAA520;
    --shadow: rgba(0, 0, 0, 0.2);
    
    /* Legacy colors for display section */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--cream);
    min-height: 100vh;
    color: var(--dark-text);
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ChessDawgs Header & Navigation */
.chessdawgs-header {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-gold);
    color: var(--dark-brown);
}

.page-header {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-brown);
}

.page-header h1 i {
    margin-right: 15px;
    color: var(--primary-brown);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.8;
}

.main-content {
    background: var(--light-text);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow);
    border: 2px solid var(--tan);
}

.input-section, .selection-section, .display-section {
    animation: fadeIn 0.3s ease-in;
}

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

.input-card, .selection-card, .description-card {
    background: var(--light-text);
    border-radius: 10px;
    padding: 30px;
}

.description-section {
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease-in;
}

.description-card h2 {
    margin-bottom: 15px;
    color: var(--dark-brown);
    font-size: 1.8rem;
    text-align: center;
}

.description-tagline {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-brown);
    font-weight: bold;
    margin-bottom: 25px;
}

.description-content {
    margin-top: 20px;
}

.description-content p {
    color: var(--dark-text);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 15px;
    margin-bottom: 12px;
    background: var(--cream);
    border-left: 4px solid var(--primary-brown);
    border-radius: 5px;
    color: var(--dark-text);
    line-height: 1.6;
}

.feature-list li strong {
    color: var(--dark-brown);
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.description-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--tan);
    font-style: italic;
    color: var(--dark-text);
    text-align: center;
    font-size: 1.05rem;
}

.input-card h2, .selection-card h2 {
    margin-bottom: 20px;
    color: var(--dark-brown);
    font-size: 1.8rem;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--tan);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--cream);
    color: var(--dark-text);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    color: var(--light-text);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-brown));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.btn-secondary {
    background: var(--light-brown);
    color: var(--dark-text);
}

.btn-secondary:hover {
    background: var(--tan);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.help-text {
    color: var(--dark-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid var(--tan);
    border-top: 4px solid var(--primary-brown);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Modal */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.loading-modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.loading-modal-content h2 {
    color: var(--primary-color);
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
}

.loading-modal-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.loading-modal .spinner {
    width: 60px;
    height: 60px;
    border-width: 5px;
    margin: 0 auto 20px;
}

/* Game Result Overlay */
.game-result-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.game-result-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    min-width: 150px;
    animation: fadeInScale 0.3s ease-out;
}

/* Hide result content when empty to prevent empty box from showing */
.game-result-content:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-result-content.result-white-wins,
.game-result-content.result-black-wins,
.game-result-content.result-draw {
    background: rgba(149, 165, 166, 0.75);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Ensure result overlay works in fullscreen */
body.fullscreen-mode .game-result-overlay,
:fullscreen .game-result-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.game-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.game-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.game-card.selected {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

.game-card input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.game-info {
    margin-top: 10px;
}

.game-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Base player name style */
.player-name {
    font-weight: 600;
    color: #5b84ad;
}

.player-white {
    margin-top: 30px !important; /* Space between board coordinates and white player name */
}

/* Higher contrast for player names in fullscreen mode - always white */
/* Need maximum specificity to override base .player-name and any inline styles */
:fullscreen .player-name,
:fullscreen .player-info .player-name,
:fullscreen .game-board .player-name,
:fullscreen .game-board .player-info .player-name,
:fullscreen .game-board .player-black .player-name,
:fullscreen .game-board .player-white .player-name,
:-webkit-full-screen .player-name,
:-webkit-full-screen .player-info .player-name,
:-webkit-full-screen .game-board .player-name,
:-webkit-full-screen .game-board .player-info .player-name,
:-webkit-full-screen .game-board .player-black .player-name,
:-webkit-full-screen .game-board .player-white .player-name,
:-moz-full-screen .player-name,
:-moz-full-screen .player-info .player-name,
:-moz-full-screen .game-board .player-name,
:-moz-full-screen .game-board .player-info .player-name,
:-moz-full-screen .game-board .player-black .player-name,
:-moz-full-screen .game-board .player-white .player-name,
:-ms-fullscreen .player-name,
:-ms-fullscreen .player-info .player-name,
:-ms-fullscreen .game-board .player-name,
:-ms-fullscreen .game-board .player-info .player-name,
:-ms-fullscreen .game-board .player-black .player-name,
:-ms-fullscreen .game-board .player-white .player-name,
body.fullscreen-mode .player-name,
body.fullscreen-mode .player-info .player-name,
body.fullscreen-mode .game-board .player-name,
body.fullscreen-mode .game-board .player-info .player-name,
body.fullscreen-mode .game-board .player-black .player-name,
body.fullscreen-mode .game-board .player-white .player-name,
body.fullscreen-mode #boardsContainer .player-name,
body.fullscreen-mode #boardsContainer .player-info .player-name,
body.fullscreen-mode #boardsContainer .game-board .player-name,
:fullscreen #boardsContainer .player-name,
:fullscreen #boardsContainer .player-info .player-name,
:fullscreen #boardsContainer .game-board .player-name {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
}

.player-white, .player-black {
    display: inline-block;
    margin: 0 5px;
}

.clock {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid var(--border-color);
    min-width: 50px;
    text-align: center;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* White player's clock - light background */
[id$="-white-clock"].clock {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2c3e50 !important;
    border-color: rgba(44, 62, 80, 0.3) !important;
}

/* Black player's clock - dark background */
[id$="-black-clock"].clock {
    background: rgba(44, 62, 80, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Dimmed clock (inactive player) */
.clock.clock-dimmed {
    opacity: 0.4;
}

/* Active clock (player whose turn it is) */
.clock.clock-active {
    opacity: 1;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

/* Paused clock */
.clock.clock-paused {
    opacity: 0.6;
    font-style: italic;
    position: relative;
}

.clock.clock-paused::after {
    content: ' (PAUSED)';
    font-size: 0.7em;
    color: #e74c3c;
    font-weight: bold;
}

.game-board h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Custom chess board styles - Lichess-style grid layout */
.cg-board {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    grid-template-rows: repeat(8, 1fr) !important;
    gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Ensure no borders on board container or any child elements */
.chessboard,
.chessboard > * {
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Ensure board container has no padding or margin that could create gaps */
.chessboard {
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.cg-square {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    aspect-ratio: 1 !important;
    outline: none !important;
    float: none !important;
    clear: none !important;
}

.cg-square img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

.cg-square-light {
    background-color: #f0d9b5 !important;
    border: none !important;
    outline: none !important;
}

.cg-square-dark {
    background-color: #b58863 !important;
    border: none !important;
    outline: none !important;
}

.cg-notation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.cg-notation-rank,
.cg-notation-file {
    user-select: none;
    pointer-events: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure notation is visible in fullscreen */
body.fullscreen-mode .cg-notation-rank,
body.fullscreen-mode .cg-notation-file,
:fullscreen .cg-notation-rank,
:fullscreen .cg-notation-file {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6) !important;
}

.display-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.display-header h2 {
    flex: 1;
    color: var(--primary-color);
}

#fullscreenBtn {
    margin-left: auto;
}

.boards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* Clock/Standings Widget - styled like a game-board - must match game-board exactly */
/* Widget container - matches game-board exactly */
#clockStandingsWidget {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.clock-standings-widget {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
    box-sizing: border-box;
    margin: 0;
    align-items: stretch;
}

/* Left column: Clock + Tournament Info */
.widget-left-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 0;
    width: 200px;
    gap: 12px;
}

/* Right column: Standings */
.widget-right-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

/* Tournament Info Section */
.tournament-info {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.tournament-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tournament-round {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
}

body.fullscreen-mode .clock-standings-widget {
    background: rgba(0, 0, 0, 0.85) !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 16px !important;
}

body.fullscreen-mode .widget-left-column {
    width: 240px !important;
    gap: 16px !important;
}

body.fullscreen-mode .tournament-info {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

body.fullscreen-mode .tournament-name,
body.fullscreen-mode .tournament-round {
    color: white !important;
}

body.fullscreen-mode .clock-standings-widget .standings-display,
body.fullscreen-mode .clock-standings-widget .standings-list {
    background: transparent !important;
}

body.fullscreen-mode .standings-table thead {
    background: rgba(102, 126, 234, 0.9) !important;
}

body.fullscreen-mode .standings-table tbody {
    background: transparent !important;
}

body.fullscreen-mode .standings-table,
body.fullscreen-mode .standings-table td,
body.fullscreen-mode .standings-table th {
    color: white !important;
}

.clock-display {
    text-align: center;
    padding: 10px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.clock-time {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.clock-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.standings-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
}

.btn-refresh-standings {
    background: rgba(52, 152, 219, 0.8);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
}

.btn-refresh-standings:hover {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.05);
}

.btn-refresh-standings:active {
    transform: scale(0.95);
}

.btn-refresh-standings i {
    font-size: 0.9rem;
}

body.fullscreen-mode .btn-refresh-standings,
:fullscreen .btn-refresh-standings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.fullscreen-mode .btn-refresh-standings:hover,
:fullscreen .btn-refresh-standings:hover {
    background: rgba(255, 255, 255, 0.3);
}

.standings-update-feedback {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    animation: fadeInOut 2.3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-5px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-5px); }
}

body.fullscreen-mode .standings-update-feedback,
:fullscreen .standings-update-feedback {
    background: rgba(39, 174, 96, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.standings-display {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.standings-list {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    flex: 1;
    display: table;
    table-layout: fixed;
}

.standings-table thead {
    background: var(--primary-color);
    color: white;
}

.standings-table th {
    padding: 5px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.standings-table th:first-child {
    width: 15%;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
}

.standings-table th:nth-child(2) {
    width: 65%;
    padding-left: 8px;
    padding-right: 8px;
}

.standings-table th:last-child {
    width: 20%;
    text-align: right;
    padding-left: 6px;
    padding-right: 6px;
}

.standings-table td {
    padding: 3px 6px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standings-table td:first-child {
    text-align: center;
    font-weight: 600;
}

.standings-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.standings-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.standings-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* Fullscreen styles for clock/standings widget */
:fullscreen .clock-standings-widget,
:-webkit-full-screen .clock-standings-widget,
:-moz-full-screen .clock-standings-widget,
:-ms-fullscreen .clock-standings-widget {
    background: rgba(0, 0, 0, 0.85) !important;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:fullscreen .clock-standings-widget .standings-display,
:-webkit-full-screen .clock-standings-widget .standings-display,
:-moz-full-screen .clock-standings-widget .standings-display,
:-ms-fullscreen .clock-standings-widget .standings-display,
:fullscreen .clock-standings-widget .standings-list,
:-webkit-full-screen .clock-standings-widget .standings-list,
:-moz-full-screen .clock-standings-widget .standings-list,
:-ms-fullscreen .clock-standings-widget .standings-list {
    background: transparent !important;
}

body.fullscreen-mode .clock-standings-widget {
    background: rgba(0, 0, 0, 0.85) !important;
}

:fullscreen .clock-display,
:-webkit-full-screen .clock-display,
:-moz-full-screen .clock-display,
:-ms-fullscreen .clock-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

:fullscreen .clock-time,
:-webkit-full-screen .clock-time,
:-moz-full-screen .clock-time,
:-ms-fullscreen .clock-time {
    font-size: 1.6rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

:fullscreen .clock-date,
:-webkit-full-screen .clock-date,
:-moz-full-screen .clock-date,
:-ms-fullscreen .clock-date {
    font-size: 0.85rem;
}

:fullscreen .tournament-name,
:-webkit-full-screen .tournament-name,
:-moz-full-screen .tournament-name,
:-ms-fullscreen .tournament-name {
    font-size: 1rem !important;
    color: white !important;
}

:fullscreen .tournament-round,
:-webkit-full-screen .tournament-round,
:-moz-full-screen .tournament-round,
:-ms-fullscreen .tournament-round {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

:fullscreen .standings-table thead,
:-webkit-full-screen .standings-table thead,
:-moz-full-screen .standings-table thead,
:-ms-fullscreen .standings-table thead {
    background: rgba(102, 126, 234, 0.9);
}

:fullscreen .standings-table th,
:-webkit-full-screen .standings-table th,
:-moz-full-screen .standings-table th,
:-ms-fullscreen .standings-table th {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding: 6px 8px;
}

:fullscreen .standings-table td,
:-webkit-full-screen .standings-table td,
:-moz-full-screen .standings-table td,
:-ms-fullscreen .standings-table td {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    padding: 4px 8px;
}

body.fullscreen-mode .standings-table td {
    color: white !important;
}

body.fullscreen-mode .standings-table th {
    color: white !important;
}

:fullscreen .standings-table tbody tr:hover,
:-webkit-full-screen .standings-table tbody tr:hover,
:-moz-full-screen .standings-table tbody tr:hover,
:-ms-fullscreen .standings-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

:fullscreen .standings-table tbody tr:nth-child(even),
:-webkit-full-screen .standings-table tbody tr:nth-child(even),
:-moz-full-screen .standings-table tbody tr:nth-child(even),
:-ms-fullscreen .standings-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

body.fullscreen-mode {
    padding: 0;
    background: #000;
}

/* Styles for when browser is in fullscreen */
:fullscreen .boards-container.fullscreen-boards,
:-webkit-full-screen .boards-container.fullscreen-boards,
:-moz-full-screen .boards-container.fullscreen-boards,
:-ms-fullscreen .boards-container.fullscreen-boards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    grid-template-columns: repeat(auto-fit, minmax(29vw, 1fr));
    gap: 20px;
    padding: 20px;
    overflow: hidden; /* No scrolling - everything must fit */
    background: #000;
    grid-auto-rows: auto; /* Rows fit content but constrained by container */
}


:fullscreen body,
:-webkit-full-screen body,
:-moz-full-screen body,
:-ms-fullscreen body {
    background: #000;
}

:fullscreen header,
:fullscreen footer,
:fullscreen .display-header,
:fullscreen .input-section,
:fullscreen .selection-section,
:-webkit-full-screen header,
:-webkit-full-screen footer,
:-webkit-full-screen .display-header,
:-webkit-full-screen .input-section,
:-webkit-full-screen .selection-section,
:-moz-full-screen header,
:-moz-full-screen footer,
:-moz-full-screen .display-header,
:-moz-full-screen .input-section,
:-moz-full-screen .selection-section,
:-ms-fullscreen header,
:-ms-fullscreen footer,
:-ms-fullscreen .display-header,
:-ms-fullscreen .input-section,
:-ms-fullscreen .selection-section {
    display: none !important;
}

/* Ensure boards container is visible in fullscreen */
:fullscreen .boards-container.fullscreen-boards,
:-webkit-full-screen .boards-container.fullscreen-boards,
:-moz-full-screen .boards-container.fullscreen-boards,
:-ms-fullscreen .boards-container.fullscreen-boards {
    display: grid !important;
    visibility: visible !important;
    grid-template-columns: repeat(auto-fit, minmax(29vw, 1fr)) !important;
    gap: 20px !important;
    padding: 20px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important; /* Constrain to viewport */
    overflow: hidden !important; /* No scrolling - everything must fit */
    background: #000 !important;
    box-sizing: border-box !important;
    grid-auto-rows: auto !important; /* Rows fit content but constrained by container */
}

body.fullscreen-mode .boards-container.fullscreen-boards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(29vw, 1fr)) !important;
    gap: 20px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important; /* Constrain to viewport */
    overflow: hidden !important; /* No scrolling - everything must fit */
    background: #000 !important;
    align-items: start !important;
    justify-items: stretch !important;
    grid-auto-rows: auto !important; /* Rows fit content but constrained by container */
}

/* Ensure each game-board in fullscreen maintains proper grid item behavior */
body.fullscreen-mode .boards-container.fullscreen-boards > .game-board,
:fullscreen .boards-container.fullscreen-boards > .game-board {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

:fullscreen .main-content,
:-webkit-full-screen .main-content,
:-moz-full-screen .main-content,
:-ms-fullscreen .main-content {
    display: block !important;
    height: 100vh;
    width: 100vw;
}

/* Ensure game-board maintains all styling in fullscreen */
body.fullscreen-mode .game-board,
:fullscreen .game-board,
:-webkit-full-screen .game-board,
:-moz-full-screen .game-board,
:-ms-fullscreen .game-board {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    position: relative;
    margin: 0 !important; /* Remove margin, grid gap handles spacing */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: fit-content !important; /* Ensure content fits */
    overflow: visible !important; /* Don't clip content */
    display: flex !important;
    flex-direction: column !important;
}

/* Ensure board container and children maintain proper display */
body.fullscreen-mode .boards-container .game-board > div,
:fullscreen .boards-container .game-board > div,
:-webkit-full-screen .boards-container .game-board > div,
:-moz-full-screen .boards-container .game-board > div,
:-ms-fullscreen .boards-container .game-board > div {
    display: block;
    position: relative;
}

body.fullscreen-mode .boards-container .chessboard-container,
:fullscreen .boards-container .chessboard-container,
:-webkit-full-screen .boards-container .chessboard-container,
:-moz-full-screen .boards-container .chessboard-container,
:-ms-fullscreen .boards-container .chessboard-container {
    display: inline-block;
    position: relative;
}

/* Ensure player info and other elements maintain their display */
body.fullscreen-mode .player-info,
:fullscreen .player-info,
:-webkit-full-screen .player-info,
:-moz-full-screen .player-info,
:-ms-fullscreen .player-info {
    display: block !important;
    text-align: center !important;
    margin: 5px 0 !important;
    padding: 5px 0 !important;
    visibility: visible !important;
    overflow: visible !important;
}

body.fullscreen-mode .board-header-info,
:fullscreen .board-header-info,
:-webkit-full-screen .board-header-info,
:-moz-full-screen .board-header-info,
:-ms-fullscreen .board-header-info {
    display: block !important;
    text-align: center !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
    visibility: visible !important;
    overflow: visible !important;
}

/* Ensure status text is visible */
body.fullscreen-mode .game-board > p,
:fullscreen .game-board > p {
    visibility: visible !important;
    overflow: visible !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Ensure inline-block wrapper for chessboard is preserved */
body.fullscreen-mode .game-board > div[style*="inline-block"],
:fullscreen .game-board > div[style*="inline-block"],
:-webkit-full-screen .game-board > div[style*="inline-block"],
:-moz-full-screen .game-board > div[style*="inline-block"],
:-ms-fullscreen .game-board > div[style*="inline-block"] {
    display: inline-block !important;
    position: relative !important;
}

body.fullscreen-mode .display-header {
    display: none !important;
}

/* Floating exit button in fullscreen */
#fullscreenBtn.fullscreen-active {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#fullscreenBtn.fullscreen-active:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.9);
}

.board-wrapper {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.board-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.board-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.board-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.chessboard-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    overflow-x: auto;
}

.chessboard-container > div {
    min-width: 320px;
    max-width: 100%;
}

.move-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.recent-moves {
    margin-top: 5px;
    padding: 3px 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.move-list::-webkit-scrollbar {
    width: 6px;
}

.move-list::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.move-list::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.8;
}

.chessdawgs-footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.chessdawgs-footer p {
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .input-group {
        flex-direction: column;
    }

    .boards-container {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .chessboard-container {
        justify-content: flex-start;
    }

    .chessboard-container > div {
        width: 100% !important;
        max-width: 100%;
    }

    .board-wrapper {
        padding: 15px;
    }

    .display-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.error-message {
    background: #fee;
    color: var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--accent-color);
}

.success-message {
    background: #efe;
    color: var(--success-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--success-color);
}

/* Board Color Themes */
.chessboard {
    --light-square: #f0d9b5;
    --dark-square: #b58863;
}

/* Brown theme (default) */
body.board-color-brown .chessboard,
body.board-color-brown .chessboard .white-1e1d7,
body.board-color-brown .chessboard .black-3c85d0 {
    --light-square: #f0d9b5;
    --dark-square: #b58863;
}

/* Blue theme */
body.board-color-blue .chessboard .white-1e1d7 {
    background-color: #dee3e6 !important;
}
body.board-color-blue .chessboard .black-3c85d0 {
    background-color: #8ca2ad !important;
}

/* Red theme */
body.board-color-red .chessboard .white-1e1d7 {
    background-color: #eecccc !important;
}
body.board-color-red .chessboard .black-3c85d0 {
    background-color: #b22222 !important;
}

/* Green theme */
body.board-color-green .chessboard .white-1e1d7 {
    background-color: #eeeed2 !important;
}
body.board-color-green .chessboard .black-3c85d0 {
    background-color: #769656 !important;
}

/* Purple theme */
body.board-color-purple .chessboard .white-1e1d7 {
    background-color: #e8e4d8 !important;
}
body.board-color-purple .chessboard .black-3c85d0 {
    background-color: #7d4a8d !important;
}

/* Apply to custom board renderer squares */
body.board-color-blue .cg-square-light {
    background-color: #dee3e6 !important;
}
body.board-color-blue .cg-square-dark {
    background-color: #8ca2ad !important;
}

/* Apply to all chessboard squares - target white-square and black-square classes */
body.board-color-blue .chessboard .white-square,
body.board-color-blue .chessboard [class*="white-"],
body.board-color-blue .chessboard [class^="white-"],
body.board-color-blue .chessboard td.white-square,
body.board-color-blue .chessboard td[class*="white"] {
    background-color: #dee3e6 !important;
}
body.board-color-blue .chessboard .black-square,
body.board-color-blue .chessboard [class*="black-"],
body.board-color-blue .chessboard [class^="black-"],
body.board-color-blue .chessboard td.black-square,
body.board-color-blue .chessboard td[class*="black"] {
    background-color: #8ca2ad !important;
}

/* Apply to custom board renderer squares */
body.board-color-red .cg-square-light {
    background-color: #eecccc !important;
}
body.board-color-red .cg-square-dark {
    background-color: #b22222 !important;
}

body.board-color-red .chessboard .white-square,
body.board-color-red .chessboard [class*="white-"],
body.board-color-red .chessboard [class^="white-"],
body.board-color-red .chessboard td.white-square,
body.board-color-red .chessboard td[class*="white"] {
    background-color: #eecccc !important;
}
body.board-color-red .chessboard .black-square,
body.board-color-red .chessboard [class*="black-"],
body.board-color-red .chessboard [class^="black-"],
body.board-color-red .chessboard td.black-square,
body.board-color-red .chessboard td[class*="black"] {
    background-color: #b22222 !important;
}

/* Apply to custom board renderer squares */
body.board-color-green .cg-square-light {
    background-color: #eeeed2 !important;
}
body.board-color-green .cg-square-dark {
    background-color: #769656 !important;
}

body.board-color-green .chessboard .white-square,
body.board-color-green .chessboard [class*="white-"],
body.board-color-green .chessboard [class^="white-"],
body.board-color-green .chessboard td.white-square,
body.board-color-green .chessboard td[class*="white"] {
    background-color: #eeeed2 !important;
}
body.board-color-green .chessboard .black-square,
body.board-color-green .chessboard [class*="black-"],
body.board-color-green .chessboard [class^="black-"],
body.board-color-green .chessboard td.black-square,
body.board-color-green .chessboard td[class*="black"] {
    background-color: #769656 !important;
}

/* Apply to custom board renderer squares */
body.board-color-purple .cg-square-light {
    background-color: #e8e4d8 !important;
}
body.board-color-purple .cg-square-dark {
    background-color: #7d4a8d !important;
}

body.board-color-purple .chessboard .white-square,
body.board-color-purple .chessboard [class*="white-"],
body.board-color-purple .chessboard [class^="white-"],
body.board-color-purple .chessboard td.white-square,
body.board-color-purple .chessboard td[class*="white"] {
    background-color: #e8e4d8 !important;
}
body.board-color-purple .chessboard .black-square,
body.board-color-purple .chessboard [class*="black-"],
body.board-color-purple .chessboard [class^="black-"],
body.board-color-purple .chessboard td.black-square,
body.board-color-purple .chessboard td[class*="black"] {
    background-color: #7d4a8d !important;
}

/* Apply to custom board renderer squares */
body.board-color-brown .cg-square-light {
    background-color: #f0d9b5 !important;
}
body.board-color-brown .cg-square-dark {
    background-color: #b58863 !important;
}

body.board-color-brown .chessboard .white-square,
body.board-color-brown .chessboard [class*="white-"],
body.board-color-brown .chessboard [class^="white-"],
body.board-color-brown .chessboard td.white-square,
body.board-color-brown .chessboard td[class*="white"] {
    background-color: #f0d9b5 !important;
}
body.board-color-brown .chessboard .black-square,
body.board-color-brown .chessboard [class*="black-"],
body.board-color-brown .chessboard [class^="black-"],
body.board-color-brown .chessboard td.black-square,
body.board-color-brown .chessboard td[class*="black"] {
    background-color: #b58863 !important;
}


/* Logo container as link */
a.logo-container {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

a.logo-container:hover {
    opacity: 0.9;
}
/* Improved Two-Column Layout for Input Section */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    font-weight: 600;
}

.page-header h1 i {
    color: var(--primary-brown);
    margin-right: 10px;
}

/* Two Column Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

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

/* Input Section - Left Column */
.input-section {
    animation: fadeIn 0.3s ease-in;
}

.input-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--tan);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.input-card h2 {
    margin-bottom: 25px;
    color: var(--dark-brown);
    font-size: 1.6rem;
    font-weight: 600;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--tan);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cream);
    color: var(--dark-text);
    font-family: 'Georgia', 'Times New Roman', serif;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.1);
    background: white;
}

input[type="text"]::placeholder {
    color: #999;
    opacity: 0.7;
}

.btn-primary {
    width: 100%;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-brown));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: var(--cream);
    border-radius: 8px;
    color: #666;
    font-size: 0.95rem;
    border-left: 4px solid var(--accent-gold);
}

.help-text i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Description Section - Right Column */
.description-section {
    animation: fadeIn 0.3s ease-in;
}

.description-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--tan);
}

.description-tagline {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tan);
}

.description-content {
    color: var(--dark-text);
    line-height: 1.8;
}

.description-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: var(--cream);
    border-radius: 8px;
    border-left: 4px solid var(--primary-brown);
    font-size: 1.05rem;
}

.feature-list li strong {
    color: var(--dark-brown);
    display: block;
    margin-bottom: 5px;
}

.description-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--tan);
    text-align: center;
    font-style: italic;
    color: var(--primary-brown);
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-card {
        position: static;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .input-group {
        gap: 12px;
    }
}
/* More Distinctive Help Text Styling */
.help-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe4c4 100%);
    border-radius: 8px;
    color: #5d4037;
    font-size: 0.9rem;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.15);
    font-style: italic;
    line-height: 1.6;
}

.help-text i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Ensure input field looks more distinct */
input[type="text"] {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--tan);
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-text);
    font-family: 'Courier New', monospace;
    font-weight: 500;
    letter-spacing: 0.3px;
}
