/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.albert-sans {
  font-family: "Albert Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

/* Floating Chatbot Button */
.floating-chatbot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(104, 211, 145, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-chatbot-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4);
}

.chatbot-icon {
    font-size: 1.5rem;
}

.chatbot-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chatbot-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
}

.floating-chatbot-btn:hover .chatbot-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Hide chat button when chatbot is open */
.chatbot-modal:not(.hidden) ~ .floating-chatbot-btn,
body:has(.chatbot-modal:not(.hidden)) .floating-chatbot-btn {
    display: none;
}

@media (max-width: 768px) {
    .floating-chatbot-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .chatbot-tooltip {
        display: none;
    }
}

body {
    background-color: #f6e9d9;
    min-height: 100vh;
    color: #252525;
    line-height: 1.6;
    position: relative;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #462005;
    margin-bottom: 10px;
}

.app-subtitle {
    font-size: 1.1rem;
    color: #252525;
    font-weight: 300;
}

/* Find this rule in your stylesheet */
.app-title, .app-subtitle {
    opacity: 0;
    
    /* property | duration | timing-function | DELAY */
    transition: opacity 0.8s ease-in-out 0.5s; /* <-- Add the delay here (e.g., 0.5s) */
}

/* The .fade-in class stays the same */
.fade-in {
    opacity: 1;
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Setup Screen */
.setup-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.setup-container h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 500;
}

.setup-container p {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.setup-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.1);
}

/* Date Picker Styles */
.date-picker-container {
    position: relative;
}

.date-picker-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.date-picker-btn:hover {
    border-color: #a0aec0;
    background: #f7fafc;
}

.date-picker-btn:focus {
    outline: none;
    border-color: #a0aec0;
    box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.1);
}

.calendar-icon {
    font-size: 1.2rem;
}

.date-picker-calendar {
    max-width: 100%;
    margin: 0 auto;
}

/* Date Picker Calendar Styles */
#date-picker-days .calendar-day {
    cursor: pointer;
    transition: all 0.2s ease;
}

#date-picker-days .calendar-day:hover {
    background: #e2e8f0;
    border-radius: 8px;
}

#date-picker-days .calendar-day.selected {
    background: #48bb78;
    color: white;
    border-radius: 8px;
}

#date-picker-days .calendar-day.past-date {
    opacity: 0.6;
}

#date-picker-days .calendar-day.today {
    border: 2px solid #48bb78;
    border-radius: 8px;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104, 211, 145, 0.3);
}

/* Garden Screen */
.garden-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Cycle Info */
.cycle-info {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.current-phase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.phase-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phase-label {
    font-weight: 500;
    color: #4a5568;
}

.phase-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.phase-help {
    position: relative;
    display: inline-block;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #a0aec0;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #48bb78;
    transform: scale(1.1);
}

.help-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

.phase-help:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.help-tooltip h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
}

.phase-description {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #4a5568;
}

.phase-description:last-child {
    margin-bottom: 0;
}

.phase-description strong {
    color: #2d3748;
    font-weight: 600;
}

.cycle-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #68d391 0%, #48bb78 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #718096;
    white-space: nowrap;
}

/* Plant Container */
.plant-container {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    overflow: hidden;
}

/* Dirt Background */
.dirt-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: 
        /* Particle texture on top */
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.3) 2.5px, transparent 2.5px),
        radial-gradient(circle at 40% 80%, rgba(101, 67, 33, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 90% 70%, rgba(93, 64, 55, 0.3) 2.5px, transparent 2.5px),
        radial-gradient(circle at 10% 30%, rgba(74, 44, 42, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 60% 40%, rgba(139, 69, 19, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(circle at 30% 70%, rgba(160, 82, 45, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 70% 10%, rgba(101, 67, 33, 0.2) 1.2px, transparent 1.2px),
        radial-gradient(circle at 15% 60%, rgba(93, 64, 55, 0.25) 1px, transparent 1px),
        radial-gradient(circle at 85% 50%, rgba(74, 44, 42, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 15%, rgba(139, 69, 19, 0.15) 0.5px, transparent 0.5px),
        radial-gradient(circle at 45% 25%, rgba(160, 82, 45, 0.1) 0.3px, transparent 0.3px),
        radial-gradient(circle at 65% 35%, rgba(101, 67, 33, 0.15) 0.4px, transparent 0.4px),
        radial-gradient(circle at 35% 45%, rgba(93, 64, 55, 0.1) 0.3px, transparent 0.3px),
        radial-gradient(circle at 55% 55%, rgba(74, 44, 42, 0.15) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 65%, rgba(139, 69, 19, 0.1) 0.3px, transparent 0.3px),
        radial-gradient(circle at 5% 75%, rgba(160, 82, 45, 0.15) 0.4px, transparent 0.4px),
        radial-gradient(circle at 95% 85%, rgba(101, 67, 33, 0.1) 0.3px, transparent 0.3px),
        /* Gradient overlay in middle */
        linear-gradient(180deg, 
            #8b4513 0%, 
            #a0522d 20%, 
            #8b4513 40%, 
            #654321 60%, 
            #5d4037 80%, 
            #4a2c2a 100%),
        /* Solid base color behind everything */
        #8b4513;
    border-radius: 0 0 20px 20px;
    z-index: 1;
}

.plant {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.plant:hover {
    transform: scale(1.05);
}

.plant:active {
    transform: scale(0.95);
}

.plant-image {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    transition: all 0.5s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Confetti Styles */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
}

.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #68d391, #48bb78, #38a169);
    border-radius: 50%;
    animation: confetti-fall 2s ease-out forwards;
}

.confetti-particle:nth-child(odd) {
    background: linear-gradient(45deg, #48bb78, #38a169, #2f855a);
    width: 6px;
    height: 6px;
}

.confetti-particle:nth-child(3n) {
    background: linear-gradient(45deg, #68d391, #9ae6b4, #48bb78);
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(720deg);
        opacity: 0;
    }
}

/* Plant Phase Styles */
.plant.menstrual .plant-image {
    transform: scale(0.9);
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) brightness(0.9);
}

.plant.follicular .plant-image {
    transform: scale(1.0);
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) brightness(1.1);
}

.plant.ovulation .plant-image {
    transform: scale(1.1);
    opacity: 1;
    animation: pulse 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) brightness(1.2);
}

.plant.luteal .plant-image {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) brightness(1.0);
}

@keyframes pulse {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

/* Weather Effects */
.weather-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(transparent, rgba(59, 130, 246, 0.1));
    opacity: 0;
    animation: rain 2s ease-in-out infinite;
}

.sunshine {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, 
        rgba(255, 255, 0, 0.8) 0%, 
        rgba(255, 215, 0, 0.6) 30%, 
        rgba(255, 191, 36, 0.4) 60%, 
        rgba(251, 191, 36, 0.2) 80%, 
        transparent 100%);
    border-radius: 50%;
    opacity: 0;
    animation: sunshine 3s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(255, 255, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
}

@keyframes rain {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes sunshine {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05);
    }
}

/* Plant Status */
.plant-status {
    text-align: center;
    margin-bottom: 30px;
}

.plant-status h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.plant-status p {
    color: #718096;
    margin-bottom: 20px;
}

.growth-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    padding: 20px;
    background-color: #4cbd75;
    border-radius: 10px;
    min-width: 153px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* Self-Care Section */
.self-care-section {
    margin-bottom: 30px;
}

.self-care-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.self-care-section h3 {
    text-align: center;
    color: #2d3748;
    margin: 0;
    font-size: 1.3rem;
}

.self-care-help {
    position: relative;
    display: inline-block;
}

.self-care-help .help-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.self-care-help .help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.self-care-help:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.self-care-help .help-tooltip p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #4a5568;
}

.care-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.care-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.care-btn:hover {
    background: rgba(72, 187, 120, 0.1);
    border-color: #a0aec0;
    transform: translateY(-2px);
}

.care-btn:active {
    transform: translateY(0);
}

.care-btn.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.mood-logging {
    text-align: center;
}

.mood-phase-divider {
    margin: 32px auto;
    border: none;
    border-top: 2px solid #f472b6;
    width: 60%;
}

.mood-logging h4 {
    color: #462005;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.mood-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mood-btn:hover {
    background: #FFB3C9;
    border-color: #F65583;
}

.mood-btn.selected {
    background: linear-gradient(135deg, #ef8ea9 0%, #f7608b 100%);
    color: white;
    border-color: #F65583;
}

/* Other mood container */
.other-mood-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.other-mood-input {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.other-mood-input:focus {
    outline: none;
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.other-mood-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* Garden Notes */
.garden-notes {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
}

.garden-notes .note {
    color: #4a5568;
    font-style: italic;
    line-height: 1.6;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(104, 211, 145, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.hidden {
    display: none;
}

/* Calendar Styles */
.calendar-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-period-start {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-period-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-period-end {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-period-end:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.calendar-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin: 0;
}

.btn-secondary {
    padding: 8px 16px;
    background: rgba(104, 211, 145, 0.1);
    color: #48bb78;
    border: 2px solid #48bb78;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #48bb78;
    color: white;
}

.calendar-container.hidden {
    display: none;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-btn {
    background: rgba(72, 187, 120, 0.1);
    border: 2px solid #48bb78;
    color: #48bb78;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.calendar-btn:hover {
    background: #48bb78;
    color: white;
}

#current-month-year {
    color: #2d3748;
    font-size: 1.2rem;
    margin: 0;
}

.calendar-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.weekday {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
}

.calendar-day {
    background: white;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4a5568;
}

.calendar-day:hover {
    background: #f7fafc;
}

.calendar-day.other-month {
    color: #a0aec0;
    background: #f7fafc;
}

.calendar-day.today {
    background: #48bb78;
    color: white;
    font-weight: 600;
}

.calendar-day.has-flow {
    position: relative;
}

.calendar-day.has-flow::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.calendar-day.light-flow::after {
    background: #fbb6ce;
}

.calendar-day.medium-flow::after {
    background: #f472b6;
}

.calendar-day.heavy-flow::after {
    background: #ec4899;
}

.calendar-day.spotting::after {
    background: #a78bfa;
}

.calendar-day.period-start {
    background: linear-gradient(135deg, #fbb6ce 0%, #f9a8d4 100%);
    color: #be185d;
    font-weight: 600;
}

.calendar-day.period-end {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    color: #059669;
    font-weight: 600;
}

.calendar-day.period-active {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5568;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.light-flow {
    background: #fbb6ce;
}

.legend-color.medium-flow {
    background: #f472b6;
}

.legend-color.heavy-flow {
    background: #ec4899;
}

.legend-color.spotting {
    background: #a78bfa;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.modal-body {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
}

.period-type-section,
.flow-options,
.symptoms-section {
    margin-bottom: 20px;
}

.period-type-section h4,
.flow-options h4,
.symptoms-section h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.optional {
    color: #a0aec0;
    font-weight: 400;
    font-size: 0.9rem;
}

.period-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.period-type-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.period-type-btn:hover {
    background: rgba(72, 187, 120, 0.1);
    border-color: #a0aec0;
}

.period-type-btn.selected {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    border-color: #48bb78;
}

.flow-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.symptom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #4a5568;
}

.symptom-checkbox:hover {
    background: rgba(72, 187, 120, 0.1);
}

.symptom-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: #48bb78;
}

.symptom-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #48bb78;
}

.flow-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
}

.flow-btn:hover {
    background: rgba(72, 187, 120, 0.1);
    border-color: #a0aec0;
}

.flow-btn.selected {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    border-color: #48bb78;
}

.flow-notes {
    margin-top: 20px;
}

.flow-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.flow-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.flow-notes textarea:focus {
    outline: none;
    border-color: #a0aec0;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-danger {
    padding: 10px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Chatbot Styles */
.chatbot-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    background: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 1000;
    padding: 0;
}

.chatbot-modal.hidden {
    display: none;
}

.chatbot-container {
    background: white;
    border-radius: 20px 0 0 20px;
    width: 100%;
    height: 50vh;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.chatbot-modal:not(.hidden) .chatbot-container {
    transform: translateX(0);
}

.chatbot-header {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-icon {
    font-size: 1.5rem;
}

.chatbot-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bot-message .message-content {
    background: #f7fafc;
    color: #2d3748;
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-input-container {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f7fafc;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.chatbot-input {
    flex: 1;
    padding: 15px 60px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    min-height: 60px;
    max-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
    width: 100%;
}

.chatbot-input:focus {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.chatbot-send-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.chatbot-send-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(104, 211, 145, 0.3);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.chatbot-send-btn:disabled:hover {
    transform: translateY(-50%);
    box-shadow: none;
}

.send-icon {
    font-size: 1rem;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    padding: 6px 12px;
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.2);
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: rgba(72, 187, 120, 0.2);
    transform: translateY(-1px);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f7fafc;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #a0aec0;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-modal {
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        align-items: flex-end;
        justify-content: center;
    }
    
    .chatbot-container {
        width: 100%;
        max-width: 600px;
        height: 80vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .chatbot-modal:not(.hidden) .chatbot-container {
        transform: translateY(0);
    }
    
    .chatbot-messages {
        padding: 15px;
    }
    
    .chatbot-input-container {
        padding: 15px;
    }
    
    .chatbot-suggestions {
        gap: 6px;
    }
    
    .suggestion-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        height: 85vh;
    }
    
    .chatbot-header {
        padding: 12px 15px;
    }
    
    .chatbot-title h3 {
        font-size: 1rem;
    }
    
    .chatbot-messages {
        padding: 12px;
    }
    
    .chatbot-input-container {
        padding: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .setup-container {
        padding: 30px 20px;
    }
    
    .garden-container {
        padding: 20px;
    }
    
    .growth-stats {
        gap: 20px;
    }
    
    .care-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mood-buttons {
        gap: 8px;
    }
    
    .mood-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .calendar-legend {
        gap: 15px;
    }
    
    .flow-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-body {
        padding: 10px 15px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .care-actions {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }
    
    .symptoms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .period-type-options,
    .flow-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mood-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .flow-options {
        grid-template-columns: 1fr;
    }
}
