/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- THEME DEFINITIONS --- */
body.theme-default { background-color: #111827; color: #d1d5db; }
body.theme-morning { background-color: #0c2431; color: #e0e7ff; }
body.theme-midday { background-color: #2c3e50; color: #ecf0f1; }
body.theme-afternoon { background-color: #46244C; color: #f3e5f5; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: 'Roboto Slab', serif; font-weight: 700; }
.font-roboto-slab { font-family: 'Roboto Slab', serif; }

/* Main Content Area */
.main-content { min-height: calc(100vh - 80px); }

/* --- HEADER STYLES (UPDATED) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #374151;
}

.header-link {
    color: #d1d5db; /* gray-300 */
    transition: background-color 0.2s, color 0.2s;
}

.header-link:hover {
    background-color: #374151; /* gray-700 */
    color: #ffffff;
}

/* This new 'active' class will be added by JavaScript to the current page's link */
.header-link.active {
    background-color: #4f46e5; /* indigo-600 */
    color: #ffffff;
    font-weight: 600;
}


/* --- FLAMEA TEMPLATE STYLES --- */
.text-box {
    background-color: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(55, 65, 81, 0.7);
}

.option-card {
    background-color: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.option-card:hover {
    transform: translateY(-5px);
    background-color: rgba(55, 65, 81, 0.7);
}

/* Accordion Styles */
.accordion-item { background-color: rgba(31, 41, 55, 0.5); backdrop-filter: blur(8px); }
.accordion-header i { transition: transform 0.3s ease; }
.accordion-header i.rotate-180 { transform: rotate(180deg); }

/* Wizard Styles */
.wizard-step { display: none; animation: fadeIn 0.5s ease-in-out; }
.wizard-step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.option-button {
    width: 100%; text-align: left; padding: 1rem;
    background-color: #374151; border: 2px solid #4b5563;
    border-radius: 0.5rem; transition: all 0.2s ease-in-out;
}
.option-button:hover {
    border-color: #10b981; background-color: #4b5563;
    transform: translateY(-2px);
}

/* Form Styles */
.form-input, .form-select, .form-textarea {
    background-color: #374151; border: 1px solid #4b5563;
    color: #d1d5db; border-radius: 0.5rem; padding: 0.75rem 1rem;
    width: 100%; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: #6366f1;
    box-shadow: 0 0 0 2px #4f46e5;
}

/* Button Styles */
.btn { display: inline-block; font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 0.5rem; transition: all 0.3s ease; cursor: pointer; text-align: center; }
.btn-primary { background-color: #4f46e5; color: white; }
.btn-primary:hover { background-color: #4338ca; }
.btn-secondary { background-color: #4b5563; color: white; }
.btn-secondary:hover { background-color: #6b7280; }

/* Card Styles */
.info-card, .resource-card { background-color: #1f2937; border: 1px solid #374151; border-radius: 0.75rem; padding: 1.5rem; transition: all 0.3s ease; }
.info-card:hover, .resource-card:hover { transform: translateY(-3px); border-color: #4f46e5; background-color: #374151; }

.view-container { display: none; animation: fadeIn 0.5s ease-in-out; }
.view-container.active { display: block; }
