body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

h1 { text-align: center; color: #333; }

/* Status Panel */
#status-panel {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #eef2f5;
    padding: 10px;
    border-radius: 8px;
}
.status-card h3 { margin: 0 0 5px 0; font-size: 0.9rem; color: #666; }
.status-card p { margin: 0; font-weight: bold; color: #333; }

/* Form Styles */
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 500; }
input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover { background-color: #0056b3; }
button:disabled { background-color: #ccc; cursor: not-allowed; }

#message { text-align: center; margin-top: 15px; font-weight: bold; }
/* Roster Styles */
.roster-section {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.roster-grid {
    display: flex;
    flex-direction: column; /* Stacks the tables vertically */
    gap: 25px; /* Adds space between Registered and Waitlist tables */
}

.roster-section h3 {
    margin-top: 0;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 5px;
}

.roster-grid h4 {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.player-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0;
    font-size: 0.9rem;
    color: #444;
}

.player-list li {
    margin-bottom: 4px;
}

/* Table Styles */
.roster-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.roster-table th, .roster-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.roster-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

/* Zebra striping for readability */
.roster-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

/* Hover effect on rows */
.roster-table tbody tr:hover {
    background-color: #f1f5f9;
}