:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #ffd700; /* Squash Ball Yellow */
    --highlight-color: #4caf50; /* Court Line Green */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#current-date {
    color: var(--text-secondary);
    font-size: 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.highlight {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 10px 0;
}

.subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#order-list {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

#order-list li {
    font-size: 1.4rem;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

#order-list li:last-child {
    border-bottom: none;
}

#order-list li::before {
    content: attr(data-num);
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 1rem;
}

.upcoming {
    margin-top: 40px;
    text-align: left;
}

.upcoming h3 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.upcoming-item {
    background: #252525;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.upcoming-item .date {
    color: var(--text-secondary);
}

.upcoming-item .payer {
    font-weight: bold;
    color: var(--accent-color);
}

.debug-panel {
    margin-top: 50px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px dashed #444;
    border-radius: 12px;
}

.debug-panel h3 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.debug-panel label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 10px;
}

.debug-panel input[type="date"] {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
}

#reset-date {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: transparent;
    border: 1px solid #444;
    color: var(--text-secondary);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

#reset-date:hover {
    background: #333;
    color: #fff;
}

footer {
    margin-top: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Safe Area for iPhones */
body {
    padding-bottom: env(safe-area-inset-bottom);
}
