/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #333;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

body.dark {
    background: linear-gradient(120deg, #2b5876 0%, #4e4376 100%);
    color: #e0e0e0;
}

/* App Container */
#app-container {
    max-width: 95%;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

body.dark #app-container {
    background: rgba(43, 88, 118, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#settings-icon-container {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1002;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

nav button {
    font-size: 1.4rem;
    padding: 0.8rem 2.5rem;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    color: #fff;
}

nav button.active {
    background: rgba(0, 123, 255, 0.5);
    border-color: rgba(0, 123, 255, 0.7);
}

/* Card Style */
.content-card {
    display: none; /* Hide all content cards by default */
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 600px;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 1.1rem;
}

.content-card.active {
    display: flex; /* Show the active content card */
}

body.dark .content-card {
    background: rgba(78, 67, 118, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1rem;
}

header h1 {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-weight: 700;
}

header h1 .fuel {
    font-weight: 300;
}

header h1 .n {
    font-size: 3rem;
    font-weight: 700;
    color: #ffde7d;
}

header h1 .flex {
    font-weight: 700;
}

body.dark header h1 {
    color: #e0e0e0;
}

header p {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-top: 0;
}

body.dark header p {
    color: #aaa;
}


/* Buttons & Inputs */
button, input, select {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 15px;
    color: #333;
    backdrop-filter: blur(5px);
    font-size: 1rem;
}

button:hover {
    background: rgba(255, 255, 255, 0.4);
}

body.dark button, body.dark input, body.dark select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.selection-group {
    text-align: center;
    margin-bottom: 1.5rem;
}

.selection-group h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}


button#generate-plan-btn {
    background: rgba(40, 167, 69, 0.5);
    border-color: rgba(40, 167, 69, 0.7);
    font-size: 1.2rem;
    padding: 12px 20px;
}

/* Plan Container */
.plan-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.plan-table .plan-week h3 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: #fff;
    text-align: left;
}

body.dark .plan-table .plan-week h3 {
    color: #e0e0e0;
}

.plan-table th {
    text-align: left;
    padding: 1rem;
}

.plan-table .plan-day td {
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .plan-table .plan-day td {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.plan-table .plan-day td:first-child {
    width: 40px;
}

.plan-table .plan-day td:nth-child(2) {
    width: 120px;
}

.plan-day.completed label {
    text-decoration: line-through;
    color: #888;
}

body.dark .plan-day.completed label {
    color: #666;
}

.plan-day input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}