body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
}

* {
    color: #e0e0e0; 
}

h1 { text-align: center; color: #ffffff; }

.controls {
    max-width: 600px;
    margin: 0 auto 20px auto;
    text-align: center;
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

#suitabilityMenu {
    background: #1e1e1e;
}

select {
    padding: 8px 12px;
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.table-container {
    max-width: 600px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}

th {
    border-radius: 10px;
    background-color: #331c1c;
    color: #ffffff;
}

tr:hover {
    background-color: #2a2a2a;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid #444;
}

.close-btn {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 0.9rem;
    line-height: 1.6;
}

.stat-box strong {
    display: block;
    color: #64b5f6;
    margin-bottom: 5px;
    border-bottom: 1px solid #444;
}

.lookup-container {
    color: white;
    max-width: 600px;
    margin: 20px auto;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #454545;
    text-align: center;
}

.main-container {
    color: white;
    margin: 20px auto;
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #454545;
    text-align: center;
}

.lookup-container h2 {
    font-size: 25px;
    margin-bottom: 0px;
}
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
}
.search-box input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #565656;
    background-color: #252525;
    border-radius: 4px;
    color: white;
}
.search-box button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #411c1c;
    color: white;
    border: none;
    border-radius: 4px;
}
.search-box button:hover {
    background-color: #004494;
}
.stats-list {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.stat {
    line-height: 1;
    width: 100px;
    height: 100px;
    background-color: rgb(83, 43, 43);
    border: 1px solid rgb(136, 136, 136);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    justify-content: center;
    gap: 8px;
    padding: 5px;
}

.stat-subcontainer {
    width: 100%;
    flex-direction: row;
    background-color: transparent;
    text-align: center;
    padding: 5px;
    margin: 0;
    background-color: #252525;
    border-radius: 8px;
    border: 1px solid gray;
}

.stat-subcontainer h4 {
    margin: 0;
    margin-bottom: 8px;
    padding: 0;
}

br {
    display: none;
}

.stat * {
    margin: 0;
    text-align: center;
    font-weight: 400;
}

.stat p {
    font-size: 25px;
    font-weight: 700;
}
.error-msg {
    color: #d9534f;
    font-weight: bold;
}

.search-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lookup-container { position: relative; }

.loader-container {
    display: none; /* Hidden by default */
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-btn {
    background-color: #2e7f50;
    color: white;
    padding: 0px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    height: 40px;
}

.refresh-btn:hover { background-color: #27ae60; }

#resultsContainer { transition: opacity 0.3s ease; }

.data-section {
    text-align: center;
}

.data-section h3 {
    font-size: 22px;

}

.red-teams .team-card {
    color: rgb(255, 178, 178) !important;
    font-size: 16px;
}

.blue-teams .team-card{
    color: rgb(178, 192, 255) !important;
    font-size: 16px;
}

.match-table td {
    font-size: 22px;
    padding: 10px;
}

.match-table thead td {
    font-size: 16px;
    padding: 5px;
}