* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #16213e;
    margin-bottom: 30px;
}

header h1 {
    color: #00d4ff;
    font-size: 2em;
    margin-bottom: 5px;
}

header p {
    color: #888;
    font-size: 0.95em;
}

nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

nav a {
    color: #00d4ff;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #16213e;
    border-radius: 6px;
    transition: background 0.2s;
}

nav a:hover, nav a.active {
    background: #16213e;
}

.card {
    background: #16213e;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.card h2 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 0.9em;
}

input[type="text"],
input[type="date"],
input[type="password"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    background: #0f3460;
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 15px;
}

input:focus, select:focus {
    outline: none;
    border-color: #00d4ff;
}

button, .btn {
    background: #00d4ff;
    color: #1a1a2e;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #00b8d9;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.85em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a4a;
}

th {
    color: #00d4ff;
    font-weight: 600;
}

.msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.msg-success {
    background: #1a4a2e;
    color: #4caf50;
    border: 1px solid #4caf50;
}

.msg-error {
    background: #4a1a1a;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.winner-banner {
    background: linear-gradient(135deg, #0f3460, #16213e);
    border: 2px solid #00d4ff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.winner-banner h2 {
    color: #00d4ff;
    font-size: 1.5em;
}

.winner-banner .date {
    font-size: 1.8em;
    color: #fff;
    margin: 10px 0;
    font-weight: 700;
}

.winner-banner .votes {
    color: #aaa;
}

.vote-bar-container {
    background: #0f3460;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    margin: 5px 0;
    position: relative;
}

.vote-bar {
    background: linear-gradient(90deg, #00d4ff, #00b8d9);
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.vote-bar-label {
    position: absolute;
    right: 10px;
    top: 4px;
    font-size: 0.85em;
    color: #fff;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 12px;
    background: #0f3460;
    border-radius: 6px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #555;
    font-size: 0.85em;
    margin-top: 30px;
}

.player-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.player-bubble {
    display: inline-block;
    background: #0f3460;
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid #2a2a4a;
}

.venue-bubble {
    display: inline-block;
    background: #1a3a2e;
    color: #4caf50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid #2a5a3a;
}

.booked-block {
    margin-bottom: 15px;
    padding: 15px;
    background: #1a4a2e;
    border-radius: 8px;
}

.avail-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.avail-option {
    background: #0f3460;
    border-radius: 8px;
    overflow: hidden;
}

.avail-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 1em;
    cursor: pointer;
    padding: 10px 14px;
}

.avail-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00d4ff;
}

.avail-date { flex: 1; }

.avail-count {
    color: #888;
    font-size: 0.85em;
    white-space: nowrap;
}

.venue-select {
    padding: 10px 14px 12px 44px;
    border-top: 1px solid #2a2a4a;
    background: #0a2a50;
}

.venue-single-note {
    color: #aaa;
    font-size: 0.9em;
    padding: 6px 0;
}

.venue-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.venue-choice-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0;
}

.venue-choice-label input[type="radio"] {
    accent-color: #00d4ff;
    width: 16px;
    height: 16px;
}

.venue-chip {
    background: #1a3a2e;
    color: #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid #2a5a3a;
    transition: border-color 0.2s;
}

.venue-choice-label input[type="radio"]:checked + .venue-chip {
    border-color: #00d4ff;
    color: #00d4ff;
}

.delete-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 4px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
    background: none;
}

.edit-range-form {
    background: #0f3460;
    border-radius: 8px;
    padding: 15px;
}

.edit-range-form label {
    color: #aaa;
    font-size: 0.85em;
}

.edit-range-form input[type="date"],
.edit-range-form input[type="text"] {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .container { padding: 10px; }
    header h1 { font-size: 1.5em; }
    nav { flex-direction: column; align-items: center; }
}
