@font-face {
    font-family: 'MinecraftRegular';
    src: url('../decorations/fonts/MinecraftRegular.otf') format('opentype'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

body {
    font-family: 'MinecraftRegular', Arial, sans-serif; 
    margin: 0;
    background-color: #1a1a1a; 
    color: #e0e0e0; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #2a2a2a; 
    color: #f0f0f0; 
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
    position: relative; 
    flex-shrink: 0; 
    border-bottom: 1px solid #444; 
}

.header h1 {
    margin: 0;
    font-size: 2.2em;
    color: #FFFFFF; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
    letter-spacing: 1px;
}

.nav-buttons {
    position: absolute;
    top: 15px;
    right: 20px;
}

.nav-buttons .button {
    background-color: #556B2F; 
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'MinecraftRegular', Arial, sans-serif;
    font-size: 1em;
    text-decoration: none; 
    transition: background-color 0.3s ease;
    white-space: nowrap; 
}

.nav-buttons .button:hover {
    background-color: #6B8E23; 
}

.container {
    flex-grow: 1; 
    max-width: 900px;
    width: 95%;
    margin: 0 auto 20px auto; 
    padding: 20px;
    background-color: #2a2a2a; 
    box-shadow: 0 0 20px rgba(0,0,0,0.4); 
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.container.graph-container {
    max-width: 1200px; 
    padding: 30px;
    text-align: center;
}

#growthChart {
    background-color: #3a3a3a; 
    border-radius: 8px;
    padding: 20px;
    max-height: 500px; 
}

.chart-controls {
    margin-top: 20px;
    margin-bottom: 20px; 
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center; 
    gap: 20px; 
    color: #f0f0f0;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.chart-control-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chart-controls label {
    font-size: 1.1em;
    margin-right: 5px;
    white-space: nowrap; 
}

.chart-controls select,
.chart-controls input[type="date"] {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #2a2a2a;
    color: #f0f0f0;
    font-family: 'MinecraftRegular', Arial, sans-serif; 
    min-width: 120px; 
    box-sizing: border-box; 
}

.chart-controls input[type="checkbox"] {
    width: 20px; 
    height: 20px;
    accent-color: #007bff; 
    cursor: pointer;
}

.member-list-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.member-list-content {
    background-color: #2a2a2a;
    margin: auto;
    padding: 25px;
    border: 1px solid #555;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90%;
    overflow-y: auto; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-family: 'MinecraftRegular', Arial, sans-serif;
    color: #f0f0f0;
    text-align: left;
}

.member-list-content h3 {
    margin-top: 0;
    color: #81D4FA; 
    font-size: 1.6em;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.member-list-close-btn {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.member-list-close-btn:hover,
.member-list-close-btn:focus {
    color: #f0f0f0;
    text-decoration: none;
    cursor: pointer;
}

.member-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #3a3a3a;
}
.member-list-item:last-child {
    border-bottom: none;
}

.member-list-item span {
    font-size: 1.2em;
    color: #e0e0e0;
}

.no-data, .error-message {
    text-align: center;
    padding: 20px;
    color: #f8d7da; 
    background-color: #8c0000; 
    border: 1px solid #f5c6cb; 
    border-radius: 5px;
    margin-top: 20px;
    font-family: 'MinecraftRegular', Arial, sans-serif;
}
.no-data {
    color: #bbbbbb; 
    background-color: #3a3a3a; 
    border-color: #555; 
}

@media (max-width: 768px) {
    body {
        padding: 10px; 
    }
    .header {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    .header h1 {
        font-size: 1.8em;
    }
    .nav-buttons {
        top: 10px;
        right: 10px;
    }
    .nav-buttons .button {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .container {
        padding: 15px;
    }
    .container.graph-container {
        padding: 20px;
    }
    .chart-controls {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px;
    }
    .chart-control-group {
        width: 100%; 
        justify-content: space-between; 
    }
    .chart-controls select,
    .chart-controls input[type="date"] {
        min-width: unset; 
        width: 60%; 
    }
    .member-list-content {
        width: 95%;
        padding: 15px;
    }
    .member-list-content h3 {
        font-size: 1.4em;
    }
    .member-list-close-btn {
        font-size: 28px;
    }
    .member-list-item span {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    .container {
        padding: 10px;
    }
    .container.graph-container {
        padding: 15px;
    }
    .chart-controls label {
        font-size: 1em;
    }
    .member-list-content {
        padding: 10px;
    }
    .member-list-content h3 {
        font-size: 1.2em;
    }
    .member-list-close-btn {
        font-size: 24px;
    }
}