:root {
    --primary-color: #C0A062; /* Muted Gold */
    --secondary-color: #E6D2A8; /* Light Cream/Gold */
    --accent-color: #FFD700; /* Bright Gold */
    --background-color: #111111; /* Near Black */
    --text-color: #EAEAEA; /* Off-white */
    --card-bg: #1C1C1C; /* Dark Grey */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --gold-glow: rgba(192, 160, 98, 0.15);
    --teal-color: #008080;
    --border-color: #2a2a2a;
    --input-bg-color: #252525;
    --progress-bg: #333;
    --button-text-color: #FFFFFF;
    --chart-text-color: '#212121';
}

h1, h2, h3, h4, h5, h6, p, li, label, figcaption, blockquote {
    text-wrap: balance;
}

body[data-theme="light"] {
    --primary-color: #C0A062; /* Muted Gold */
    --secondary-color: #8C7853; /* Darker Muted Gold for contrast */
    --accent-color: #FFD700; /* Bright Gold */
    --background-color: #F4F6F8; /* Light Grey */
    --text-color: #212121; /* Near Black */
    --card-bg: #FFFFFF; /* White */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gold-glow: rgba(192, 160, 98, 0.15);
    --teal-color: #4682B4; /* Steel Blue as a complementary color */
    --border-color: #E0E0E0;
    --input-bg-color: #EEEEEE;
    --progress-bg: #E0E0E0;
    --button-text-color: #FFFFFF;
    --chart-text-color: '#212121';
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    gap: 1rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

header p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.logo {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
}

.theme-toggle {
    background: var(--input-bg-color);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

nav {
    display: flex;
    justify-content: center;
    background-color: #161616;
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 0.5rem;
}

nav button {
    background-color: transparent;
    border: none;
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav button:hover {
    color: var(--primary-color);
    background-color: var(--gold-glow);
}

nav button.active {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

main {
    padding: 2rem 1rem;
}

section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section Styles */
.welcome-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.welcome-text p {
    margin: 0.5rem 0;
}

.welcome-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Progress Bar Section */
.progress-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin: 0 auto 3rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.progress-section h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.progress-bar {
    flex-grow: 1;
    height: 20px;
    background-color: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-bar-inner {
    height: 100%;
    width: 0%; /* Will be updated by JS */
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 50px; /* To prevent layout shift */
    text-align: right;
}

.progress-motivation {
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--secondary-color);
    font-style: italic;
    min-height: 1.2em;
    font-weight: 600;
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.menu-card, .library-category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-card:hover, .library-category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-color), 0 0 20px var(--gold-glow);
    border-color: var(--primary-color);
}

.menu-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    border-radius: 50%;
    object-fit: cover;
    padding: 5px;
    background-color: var(--input-bg-color);
    border: 1px solid var(--border-color);
}

.menu-card h3 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

/* Library Section */
.library-category-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.5rem;
}

.library-category-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.library-category-card h3 {
    color: var(--secondary-color);
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

.library-category-card p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    flex-grow: 1; /* Helps align items in grid */
}

/* --- Treinos e Dietas Section --- */
.setup-container {
    background-color: var(--input-bg-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.setup-question label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    min-width: 150px;
}

.choice-btn:hover {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--button-text-color);
}

.choice-btn.selected {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border-color: var(--primary-color);
}

#log-workout-btn, #log-diet-btn {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#log-workout-btn:hover, #log-diet-btn:hover {
    background-color: var(--secondary-color);
}

.workout-actions, .diet-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.workout-actions p, .diet-actions p {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.reset-plan-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin: 2rem auto 0 auto;
}

.reset-plan-btn:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.diet-option-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
}
.diet-option-card h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

.select-diet-btn {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    padding: 10px 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1rem;
}
.select-diet-btn:hover {
    background-color: var(--secondary-color);
}

#diet-adherence-progress {
    margin: 1.5rem 0;
}
#diet-adherence-progress-bar {
    height: 25px;
    background-color: var(--progress-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
#diet-adherence-progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    text-align: center;
    color: var(--button-text-color);
    font-weight: 600;
    line-height: 25px;
    font-size: 0.9rem;
}
.diet-congrats-message {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--input-bg-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.meal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    background-color: var(--input-bg-color);
    margin-bottom: 0.5rem;
}
.meal-item.completed {
    opacity: 0.6;
}
.meal-item.completed .meal-details {
    text-decoration: line-through;
}
.meal-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}
.meal-details {
    flex-grow: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.meal-details strong {
    color: var(--secondary-color);
}

/* --- Habits Section --- */
.promo-text {
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    margin: 0 auto 1.5rem auto;
    max-width: 800px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-text:hover {
    background-color: var(--input-bg-color);
    box-shadow: 0 0 15px var(--gold-glow);
}

.promo-text p {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 500;
}

.habits-controls {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#restore-defaults-btn, #finalize-routine-btn, #edit-routine-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#restore-defaults-btn:hover, #finalize-routine-btn:hover, #edit-routine-btn:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

#finalize-routine-btn {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}
#finalize-routine-btn:hover {
    background-color: var(--secondary-color);
}

.routine-block {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.routine-block h3 {
    margin-top: 0;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.routine-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allows the list to take up space */
}

.routine-block li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.routine-block li:hover {
    background-color: var(--input-bg-color);
}

.routine-block .task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.routine-block .task-text {
    flex-grow: 1;
    cursor: pointer;
}

.routine-block .task-actions {
    display: flex;
    gap: 8px;
}

.routine-block .task-actions button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}

.routine-block li:hover .task-actions button {
    opacity: 1;
}

.routine-block .task-actions button:hover {
    color: var(--primary-color);
}

.routine-block .empty-state {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

.add-task-form {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.add-task-form input {
    flex-grow: 1;
    background-color: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

.add-task-form button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-task-form button:hover {
    background-color: var(--secondary-color);
}

.habitos-section.routine-locked .routine-block li:hover {
    background-color: transparent;
}

.habitos-section.routine-locked .add-task-form,
.habitos-section.routine-locked .task-actions {
    display: none;
}

/* Performance Section Specifics */
.performance-card {
    text-align: center;
}

.performance-metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 0 0;
}

.motivation-card {
    background-color: var(--input-bg-color);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.performance-motivation {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
}

.category-perf-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-perf-item span {
    font-size: 1.1rem;
}

.category-perf-item strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    justify-self: end;
}

.category-progress-bar-container {
    grid-column: 1 / -1;
    height: 8px;
    background-color: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
}

.category-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Back Button */
.back-button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.back-button:hover {
    background-color: var(--secondary-color);
}

.back-button-library {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.back-button-library:hover {
    background-color: var(--secondary-color);
}

section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-icon {
    width: 32px;
    height: 32px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column; /* Added for layout control */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color), 0 0 20px var(--gold-glow);
    border-color: var(--primary-color);
}

.card h3 {
    margin-top: 0;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.card ul li.completed {
    color: #888;
}

.card ul li.completed .task-text,
.card ul li.completed label {
    text-decoration: line-through;
}

.card ul li strong {
    color: var(--primary-color);
}

/* This targets non-routine checkboxes, keeping existing styles */
.habit-card ul li input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.habit-card ul li label {
    cursor: pointer;
    flex-grow: 1;
}

/* --- Finance Section --- */
.finance-card {
    gap: 1rem;
}

.finance-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.finance-input-group label {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.finance-input, #add-expense-form input {
    background-color: var(--input-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    color: var(--text-color);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#add-expense-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#add-expense-form input {
    flex: 1 1 120px;
}

#add-expense-form button, .finance-card button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    padding: 10px 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 0.5rem;
}

#add-expense-form button {
    flex: 1 1 auto;
    font-size: 1.1rem;
}

.finance-card button:hover {
     background-color: var(--secondary-color);
}

#expense-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

#expense-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 5px;
    background-color: var(--input-bg-color);
    margin-bottom: 5px;
}

.expense-item-name {
    flex-grow: 1;
}
.expense-item-amount {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 1rem;
}

.delete-expense-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}
.delete-expense-btn:hover {
    color: #ff6b6b;
}

.finance-summary {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.finance-summary p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
    font-size: 1.1rem;
}

#final-balance-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visibility-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
    padding: 0;
    line-height: 1;
}

.visibility-toggle:hover {
    opacity: 0.8;
}

.finance-summary span {
    font-weight: 700;
}

.balance-positive {
    color: #2ecc71;
}

.balance-negative {
    color: #e74c3c;
}

#monthly-savings-progress {
    margin-top: 1rem;
}

#edit-savings-goal-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 1rem;
    align-self: center;
}
#edit-savings-goal-btn:hover {
    background-color: var(--primary-color) !important;
    color: var(--button-text-color);
}

#archive-month-btn, .action-btn {
    background-color: var(--teal-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

#archive-month-btn:hover, .action-btn:hover {
    background-color: #006666;
}

#savings-goal-percentage {
    background-color: var(--input-bg-color);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    border-left: 3px solid var(--primary-color);
    margin: 0;
}

#achievement-progress h4, #achievement-view h4 {
    margin-top: 0;
    color: var(--secondary-color);
    text-align: center;
}

.achievement-progress-bar {
    height: 25px;
    background-color: var(--progress-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#achievement-progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
    text-align: center;
    color: var(--button-text-color);
    font-weight: 600;
    line-height: 25px;
    font-size: 0.9rem;
}

.achievement-details {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
#achievement-remaining {
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.achievement-congrats {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

#monthly-savings-progress-bar-inner,
.progress-bar-inner.green {
    background: linear-gradient(90deg, #a8e063, #56ab2f) !important;
}

.progress-bar-inner.red {
    background: linear-gradient(90deg, #ff7e5f, #feb47b) !important;
}

.progress-bar-inner.orange {
    background: linear-gradient(90deg, #fbcB47, #f7971e) !important;
}

#achievement-view h4 {
    margin-top: 1.5rem;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #888;
}

.guide-list {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style-position: inside;
}

.guide-list li {
    padding-left: 0;
    margin-bottom: 1.5rem !important;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.guide-list li strong {
    font-size: 1.1rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.guide-list li p {
    margin: 0;
    line-height: 1.5;
}

.guide-action-button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    padding: 12px 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
    display: block;
    text-decoration: none;
    font-size: 1.1rem;
    box-sizing: border-box;
}

.guide-action-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#library-content-card h2 {
    text-align: left;
    font-size: 1.5rem;
}

.library-content-body p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.library-content-body .final-cta {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 2rem;
}

ul.library-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

ul.library-feature-list li {
    background-color: var(--input-bg-color);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem !important;
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

#library-content-action {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.library-action-button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    padding: 12px 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 400px;
    display: block;
    text-decoration: none;
    font-size: 1.1rem;
    box-sizing: border-box;
}

.library-action-button:hover {
    background-color: var(--secondary-color);
    color: var(--button-text-color);
}

#archive-month-btn:hover, .action-btn:hover {
    background-color: #006666;
}