:root {
    /* Main Dark Theme Colors */
    --bg-color: #0a0e0f;
    --text-color: #e2e8f0;
    
    /* Section Colors */
    --yellow-bg: rgba(46, 139, 87, 0.1); /* Military Green tint */
    --yellow-border: #2e8b57;
    
    --pink-bg: rgba(245, 158, 11, 0.1); /* Amber tint */
    --pink-border: #f59e0b;
    
    --mint-bg: rgba(76, 175, 80, 0.1); /* Light Green tint */
    --mint-border: #4caf50;
    
    --lavender-bg: rgba(22, 33, 35, 0.7); /* Dark Card BG */
    --lavender-border: #94a3b8; /* Muted border */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px 16px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 672px; /* max-w-2xl */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #4caf50, #2e8b57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0;
    margin-bottom: 0;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

@media (min-width: 768px) {
    .main-title {
        font-size: 3rem;
    }
}

.card {
    border-style: solid;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Date Card */
.date-card {
    background-color: var(--yellow-bg);
    border-color: var(--yellow-border);
    border-width: 2px;
    gap: 16px;
}
.date-card .card-label { color: var(--yellow-border); }

.date-display {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}
@media (min-width: 768px) {
    .date-display {
        font-size: 2.25rem;
    }
}

.date-picker-container {
    display: flex;
    justify-content: center;
}

.date-picker {
    border: 1px solid var(--yellow-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: inherit;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 100%;
    outline: none;
    transition: box-shadow 0.2s, background-color 0.2s;
}
@media (min-width: 640px) {
    .date-picker {
        width: auto;
    }
}
.date-picker:focus {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--yellow-border);
    background-color: rgba(0, 0, 0, 0.8);
}
::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Name Card */
.name-card {
    background-color: var(--pink-bg);
    border-color: var(--pink-border);
    border-width: 2px;
    gap: 8px;
}
.name-card .card-label { color: var(--pink-border); opacity: 0.8; }

.name-display {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: var(--pink-border);
    margin: 8px 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
@media (min-width: 768px) {
    .name-display {
        font-size: 3.75rem;
    }
}

/* Match Card */
.match-card {
    background-color: var(--mint-bg);
    border-color: var(--mint-border);
    border-width: 2px;
    gap: 12px;
}
.match-card .card-label { color: var(--mint-border); opacity: 0.8;}

.match-display {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--mint-border);
    opacity: 0.8;
    padding: 16px 0;
}

/* Admin Card */
.admin-card {
    background-color: var(--lavender-bg);
    border-color: rgba(255, 255, 255, 0.1);
    border-width: 1px;
    padding: 16px;
    gap: 0;
}

.accordion-button {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
}
.accordion-button:hover {
    color: #4caf50;
}

.accordion-button .icon {
    font-size: 1.125rem;
}

.accordion-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.add-form {
    display: flex;
    gap: 8px;
    flex-direction: column;
}
@media (min-width: 640px) {
    .add-form {
        flex-direction: row;
    }
}

.input-field {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.add-form .input-field {
    flex: 1;
}
.input-field:focus {
    box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px #4caf50;
    border-color: #4caf50;
}

.btn-submit {
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background-color: #4caf50;
    transform: translateY(-1px);
}

.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-direction: column;
    margin-top: 8px;
}
@media (min-width: 640px) {
    .search-bar {
        flex-direction: row;
    }
}

.search-input {
    width: 100%;
}
@media (min-width: 640px) {
    .search-input {
        width: 16rem;
    }
}

.record-count {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.table-container {
    overflow-x: auto;
    max-height: 24rem; /* 384px */
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar for dark theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    position: sticky;
    top: 0;
    background-color: #0d1315;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.data-table td {
    padding: 8px 12px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tbody tr {
    background-color: transparent;
    transition: background-color 0.2s;
}
.data-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}
.data-table tbody tr:hover {
    background-color: rgba(46, 139, 87, 0.15);
}

/* Button Back */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
