:root {
    --primary-color: #BDA0D9;
    --secondary-color: #FFFFFF;
    --accent-color: #3C8883;
    --highlight-color: #F3C4D9;
    --bg-gradient: linear-gradient(135deg, #BDA0D9, #F3C4D9);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: #333;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 850px;
    width: 96%;
    margin-top: 20px;
    padding: 25px;
    background: var(--secondary-color);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

header, footer {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: var(--accent-color);
    font-size: 2.1rem;
    margin-bottom: 0.2em;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 500;
}

h2 {
    color: var(--accent-color);
    margin-bottom: 0.5em;
}

main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

section {
    padding: 18px 15px 15px 15px;
    border-radius: 12px;
    background: #f9f9f9;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(189,160,217,0.04);
}

/* Auth Forms */
#auth-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

#auth-tabs button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#auth-tabs button.active {
    opacity: 1;
    background: var(--accent-color);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.auth-form input {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 80%;
}

.auth-form button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.auth-form .auth-msg {
    color: #c00;
    font-size: 0.95em;
    min-height: 1.2em;
}

.hidden { display: none !important; }

.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-bar button {
    background: var(--highlight-color);
    color: #3C8883;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Calendar */
.calendar-section {
    background: #f7f3fa;
    border: 1px solid #f3c4d9;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 8px;
}

.calendar-controls button {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 16px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.calendar-controls button:hover {
    background: var(--primary-color);
}

#calendar-month-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.calendar-day {
    background: #eee;
    border-radius: 6px;
    padding: 8px 0;
    text-align: center;
    color: #555;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    border: 1px solid #f3c4d9;
}

.calendar-day.period-day {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 2px #fff;
}

.calendar-help {
    font-size: 0.98em;
    color: #888;
    margin-top: 2px;
    text-align: center;
}

/* Symptom Form */
.symptom-section {
    background: #f9f7fb;
    border: 1px solid #bda0d9;
}

.symptom-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px 18px;
    width: 100%;
}

.symptom-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1em;
    color: #3C8883;
    background: #f3f0fa;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 500;
}

.symptom-form button {
    margin-top: 10px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    align-self: center;
}

.symptom-help {
    font-size: 0.98em;
    color: #888;
    margin-top: 2px;
    text-align: center;
}

/* Dashboard */
.dashboard-section {
    background: #f3f0fa;
    border: 1px solid #bda0d9;
}

#cycle-summary {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #3C8883;
    font-weight: 500;
}

.symptom-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.symptom-bar-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.symptom-bar-row span:first-child {
    width: 110px;
    font-size: 0.97em;
    color: #3C8883;
    font-weight: 500;
}

.symptom-bar {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #eee;
    border-radius: 3px;
    margin-right: 2px;
    border: 1px solid #ddd;
}

.symptom-bar.active {
    background: var(--highlight-color);
    border-color: var(--accent-color);
}

/* AI Section */
.ai-section {
    background: #f7f9fa;
    border: 1px solid #3C8883;
}

.ai-section textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    font-family: inherit;
    font-size: 1em;
}

.ai-section button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: var(--accent-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    font-weight: 600;
}

.ai-section button:hover {
    opacity: 0.8;
}

.ai-badge {
    background: var(--highlight-color);
    color: var(--accent-color);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 6px;
}

.ai-response {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3f2;
    border-radius: 8px;
    color: #555;
    font-size: 1.05em;
}

.ai-alert {
    color: #c00;
    font-size: 1.3em;
    margin-right: 6px;
}

.ai-help {
    font-size: 0.95em;
    color: #888;
    margin-top: 4px;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    color: #999;
}

/* Responsive design */
@media (max-width: 700px) {
    .container {
        padding: 7px;
    }
    .symptom-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .symptom-bar-row span:first-child {
        width: 70px;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 1.2rem;
    }
    .container {
        padding: 2px;
    }
    .symptom-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
    .symptom-bar-row span:first-child {
        width: 40px;
    }
}

/* Remove forgot password modal and related styles */
.forgot-link, .forgot-modal, .forgot-form, .forgot-msg, #reset-email-info, .close-modal {
    display: none !important;
}
