/* static/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

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

h1, h2 {
    color: #2c3e50;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 25px;
}

/* Forms and Inputs */
input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

button {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* Lists */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

ul li:last-child {
    border-bottom: none;
}

/* Judge Page Specifics */
.scoring-criteria {
    margin: 20px 0;
}
.slider {
    width: 100%;
    cursor: pointer;
}
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}
select.scored {
    color: #95a5a6;
    font-style: italic;
}

/* Results Page Specifics */
.results-list {
    list-style-type: decimal;
    padding-left: 30px;
}
.results-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
}
.team-name {
    font-weight: bold;
}
.team-score {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}
.prize-winner {
    background-color: #e8f6fd;
    border-left: 4px solid #3498db;
}
.prize-winner .team-name {
    color: #2980b9;
}

/* Utility Classes */
.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none; /* Hidden by default */
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Style for destructive action buttons (Added Feature) */
.button-danger {
    background-color: #e74c3c; /* A clear, alarming red */
}

.button-danger:hover {
    background-color: #c0392b; /* A darker red for hover state */
}

/* Styles for the judge editing form (Added Feature) */
.judge-form ul {
    width: 100%;
}

.judge-entry {
    display: flex;
    align-items: center;
    gap: 15px; /* Creates space between the input and the code */
    margin-bottom: 10px;
    padding-bottom: 10px; /* Add some space below the border */
}

.judge-entry input[type="text"] {
    flex-grow: 1; /* Allows the input field to take up available space */
    margin-bottom: 0; /* Override the default margin for inputs */
}

.judge-entry code {
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid #ddd;
}

