﻿.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #222; /* Dark background */
    color: white;
    padding: 10px 20px;
    border-bottom: 3px solid #555;
}

.header-logo {
    height: 60px; /* adjust as needed */
    width: auto;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: gold;
    margin: 0;
}

header, .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    padding: 10px 15px;
    box-sizing: border-box;
}

    header h1, .header-title {
        flex: 1;
        text-align: center;
        font-size: 1.5rem;
    }

    header img, .header-logo {
        height: 40px;
        width: auto;
    }

@media (max-width: 600px) {
    header {
        padding: 8px;
    }

        header h1 {
            font-size: 1.2rem; /* slightly smaller on small screens */
        }

        header img {
            height: 30px;
        }
}

/* Fullscreen overlay */
#password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ensure it’s always on top */
}

/* Password popup box */
.password-box {
    background: #222;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    text-align: center;
    max-width: 350px;
    width: 90%;
}

/* Error message */
#passwordError {
    display: none;
    color: red;
    margin-top: 10px;
}

/* Make inputs/buttons match your submit buttons */
.password-box input[type="password"] {
    padding: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.password-box button {
    background-color: red;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

    .password-box button:hover {
        background-color: darkred;
    }


    .password-box h2 {
        margin-bottom: 20px;
        color: gold;
    }


#passwordError {
    color: red;
    margin-top: 10px;
    display: none;
}

/* Global font */
body {
    font-family: Arial, sans-serif; /* already in your stylesheet */
    padding: 2rem;
    background-color: #f9f9f9;
}

h1 {
    color: #333;
    font-family: Arial, sans-serif;
}

ul.nav-list {
    list-style: none;
    padding: 0;
}

    ul.nav-list li {
        margin: 1rem 0;
    }

/* Table styling */
table {
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.8em; /* smaller font */
}


    table td {
        vertical-align: top;
    }


th, td {
    border: 1px solid black;
    padding: 3px 3px; /* Adds left/right margin inside cells */
}

/* Header cells */
th {
    background-color: #f2f2f2;
    text-align: center;
    vertical-align: top;
}

/* Contestant name column */
td:first-child {
    text-align: left;
}

/* Score column */
td.score-cell {
    text-align: center;
}

table.standings-table {
    margin: 20px; /* center table with top/bottom margin */
}

.place-label {
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
}

.points {
    color: darkblue;
    font-weight: bold;
    margin-left: 4px;
}

.first-place {
    color: gold;
    font-weight: bold;
}

.second-place {
    color: silver;
    font-weight: bold;
}

.third-place {
    color: #cd7f32; /* bronze */
    font-weight: bold;
}

.status-label {
    font-weight: bold;
    display: inline-block;
    min-width: 150px; /* or whatever fits your layout */
}

.status-icon {
    font-size: 1.2em;
    margin-right: 6px;
}

/* Style the select dropdowns and inputs */
form select, form input {
    padding: 2px 2px;
    margin-right: 2px;
    font-size: 0.9em;
}

form label {
    font-weight: bold;
    margin-right: 8px;
}

/* Standard form submit buttons (smaller than nav buttons) */
.form-submit {
    background-color: #007BFF;
    color: white;
    padding: 0.5em 1em; /* smaller than nav buttons */
    font-size: 0.75rem;
    border: 1px solid black;
    border-radius: 4px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .form-submit:hover {
        background-color: #0056b3;
    }

    .form-submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Red variant for destructive actions (like Clear Scores) */
.form-submit-red {
    background-color: #d9534f; /* red */
    color: white;
    padding: 0.5em 1em; /* smaller than nav buttons */
    font-size: 0.75rem;
    border: 1px solid #d43f3a;
    border-radius: 4px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .form-submit-red:hover {
        background-color: #c9302c; /* darker red on hover */
    }

    .form-submit-red:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.button-link,a.nav-link {
    display: inline-block;
    padding: 10px 10px;
    margin: 5px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

    .button-link:hover,a.nav-link:hover {
        background-color: #0056b3;
    }


button:disabled, input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* visually greyed out, non-clickable */
.submit-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none; /* prevents clicks on the button */
}

.badge-confirmed {
    color: green;
    font-weight: bold;
}

.badge-unconfirmed {
    color: orange;
    font-weight: bold;
}

.status-message {
    font-size: 0.9em;
    margin-top: 6px;
    margin-left: 32px;
    transition: opacity 0.3s ease-in-out;
}

.status-available {
    color: green;
}

.status-unavailable {
    color: red;
}

.timestamp {
    color: gray;
    font-style: italic; /* optional: to visually distinguish it */
    font-size: 0.9em; /* slightly smaller font */
}

#postInput {
    width: 100%;
    max-width: 600px;
    resize: vertical; /* user can resize vertically only */
    font-size: 1rem;
    padding: 0.5em;
}

/* Style for greying out deleted posts */
.deleted-post {
    color: gray;
    opacity: 0.6;
}
/* Message under delete button */
.delete-message {
    font-size: 0.9em;
    margin-top: 4px;
}

a {
    text-decoration: none;
    color: #0078d7;
    font-size: 1.2rem;
}

    a:hover {
        text-decoration: underline;
    }

.event-timestamp {
    font-size: 0.85em; /* match your other page */
    color: gray;
}

