
/* General Body Styles */
:root {
    --primary-color: #6a1b9a; /* Deep Purple */
    --secondary-color: #f06292; /* Light Pink */
    --background-color: #f3e5f5; /* Light Lavender */
    --text-color: #424242;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #4a148c; /* Darker Purple */
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--secondary-color);
}

.btn-primary:hover {
     background-color: #ec407a; /* Darker Pink */
}


/* Main Content & Sections */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero Section */
#hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Features Section */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
}

/* Forms */
.form-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    box-sizing: border-box; /* Important */
}

.form-container button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.info-text {
    font-size: 0.9rem;
    color: #757575;
    margin-bottom: 1rem;
}

/* Dashboard & Guide Specifics */
#dashboard-section, #guide-section, #games-section {
    text-align: left;
}
#dashboard-section h1, #guide-section h1, #games-section h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}
#dashboard-section p, #guide-section p, #games-section p {
    text-align: center;
    margin-bottom: 2rem;
    color: #616161;
}

#report-history {
    margin-top: 3rem;
}

#report-history h2 {
    text-align: center;
}

.report-item {
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.report-item p {
    text-align: left;
}

.report-item strong {
    color: var(--primary-color);
}

.guide-container {
    display: grid;
    gap: 20px;
}

.guide-item h2 {
    color: var(--secondary-color);
}

/* Games Page */
#quiz-container {
    margin-bottom: 2rem;
}
#quiz-title {
    text-align: center;
    color: var(--primary-color);
}

.question-block {
    margin-bottom: 1.5rem;
}

.question-block p {
    font-weight: bold;
    text-align: left;
}

.options-list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.options-list li {
    margin-bottom: 0.5rem;
}

/* Spinner */
.spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid var(--primary-color); /* Purple */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--white-color);
    border-top: 1px solid #eee;
}
