/* General Body and Container Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #fce4ec; /* Light pink background */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* More prominent shadow */
    max-width: 700px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Spacing between sections */
}

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

header h1 {
    color: #e91e63; /* Deep pink */
    font-size: 3.2em;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

header p {
    color: #666;
    font-size: 1.1em;
    margin-top: 0;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flashes {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.flashes li {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 0.95em;
    opacity: 0.9;
}

.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flashes .danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flashes .warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flashes .info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Daily Sections */
.daily-section {
    background-color: #fdfdfd;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.daily-section h2 {
    text-align: center;
    color: #c2185b; /* Medium pink */
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #f8bbd0;
    padding-bottom: 10px;
}

.info-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Quote Section */
.quote-box {
    text-align: center;
    padding: 15px;
}

.quote-text {
    font-size: 1.3em;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.quote-author {
    font-size: 1em;
    font-weight: bold;
    color: #777;
}

/* Weather Section */
.weather-section {
    text-align: center;
}

.weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 2.5em;
    font-weight: bold;
    color: #3f51b5; /* Blue */
    margin: 0;
}

.weather-desc {
    font-size: 1.2em;
    color: #666;
    margin: 0;
}

.weather-feels {
    font-size: 0.9em;
    color: #888;
    margin: 0;
}

/* To-Do List Section */
.add-todo-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-todo-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.add-todo-form button {
    padding: 12px 20px;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.add-todo-form button:hover {
    background-color: #45a049;
}

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

.todo-item {
    background-color: #fef8f9; /* Very light pink */
    border: 1px solid #fdd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.todo-item.completed {
    background-color: #e8f5e9; /* Light green for completed */
    border-color: #c8e6c9;
    text-decoration: line-through;
    color: #888;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-complete-btn {
    background-color: #2196f3; /* Blue */
    color: white;
}

.toggle-complete-btn:hover {
    background-color: #1976d2;
}

.todo-item.completed .toggle-complete-btn {
    background-color: #ff9800; /* Orange to unmark */
}

.todo-item.completed .toggle-complete-btn:hover {
    background-color: #fb8c00;
}

.delete-btn {
    background-color: #f44336; /* Red */
    color: white;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 2.5em;
    }

    .daily-section h2 {
        font-size: 1.5em;
    }

    .add-todo-form {
        flex-direction: column;
    }

    .add-todo-form button {
        width: 100%;
    }

    .todo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .todo-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.pictures-container {
    display: flex;
    justify-content: space-around; /* Or space-between */
    align-items: center;
    gap: 20px; /* Space between the pictures */
    flex-wrap: wrap; /* Allows pictures to stack on small screens */
}

.daily-picture {
    max-width: 45%; /* Each picture takes up slightly less than half the container */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid white;
    transition: transform 0.3s ease;
}

.daily-picture:hover {
    transform: scale(1.05);
}


/* --- Add this inside your existing @media (max-width: 600px) block --- */
@media (max-width: 600px) {
    /* ... (keep existing responsive styles) ... */

    .pictures-container {
        flex-direction: column; /* Stack pictures vertically on small screens */
    }

    .daily-picture {
        max-width: 90%; /* Allow picture to be larger on mobile */
    }
}