/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'MedievalSharp', cursive;
    color: #f5deb3; /* Light beige for text */
    background-image: url('../img/background-map.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-container {
    width: 100%;
    height: 100%;
    background-color: rgba(43, 35, 29, 0.85); /* Dark, semi-transparent overlay */
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: #f0e68c;
    text-shadow: 1px 1px 3px #000;
}

.header h1 {
    font-size: 2.5em;
}

.back-button {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #d2b48c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.back-button:hover {
    color: #f0e68c;
}

.back-button img {
    width: 30px;
    height: 30px;
    margin-right: 8px;
}

.header-placeholder {
    width: 150px; /* Adjust to match back-button width for centering h1 */
}

/* Main Content Area */
.stats-content {
    width: 100%;
    max-width: 900px;
    display: grid;
    gap: 25px;
}

/* General Panel Style */
.panel {
    background-color: rgba(210, 180, 140, 0.15); /* Semi-transparent tan */
    border: 2px solid #7a6a5d; /* Darker tan border */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* User Info Panel */
.user-info-panel {
    background-color: rgba(210, 180, 140, 0.25);
    font-size: 1.4em;
    line-height: 1.6;
    text-align: center;
}

.user-info-panel h2 {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
}

/* Charts Panel */
.charts-panel {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.chart-container {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.chart-container h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.chart {
    height: 200px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 1px solid #4b4238;
}

/* Activity Log Panel */
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #7a6a5d;
    padding-bottom: 10px;
}

.log-header h2 {
    font-size: 1.8em;
}

.details-link {
    font-size: 1.1em;
    color: #d2b48c;
    text-decoration: none;
}

.details-link:hover {
    color: #f0e68c;
}

.log-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

.log-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(122, 106, 93, 0.5);
    line-height: 1.5;
}

.log-item:last-child {
    border-bottom: none;
}

.log-date {
    font-weight: bold;
    color: #f0e68c;
    margin-right: 10px;
}

/* Custom Scrollbar */
.log-list::-webkit-scrollbar {
    width: 8px;
}

.log-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.log-list::-webkit-scrollbar-thumb {
    background-color: #7a6a5d;
    border-radius: 4px;
}
.log-list::-webkit-scrollbar-thumb:hover {
    background-color: #d2b48c;
}
.log-list::-webkit-scrollbar-thumb:active {
    background-color: #f0e68c;
}