html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: #1E3A5F;
    color: #E0E8F0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    color: #E0E8F0;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    width: 350px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    filter: grayscale(100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
    z-index: 1;
}

.card:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.card-content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card:hover {
    filter: grayscale(0%);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-todolist {
    background-image: url("/images/todolist.jpg");
}

.card-logs {
    background-image: url('/images/winter2.jpg');
}

.card-webdevjs {
    background-image: url('/images/winter3.jpg');
}

.footer {
    background-color: #162A40;
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    font-size: 0.9rem;
    color: #E0E8F0;
    border-top: 1px solid #2A4A6B;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: #ccc;
    margin: 0 15px;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    color: #FF0000;
    transform: scale(1.2);
}

.social-links a:first-child:hover {
    color: #5865F2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card-container {
        flex-direction: column;
        gap: 20px;
    }

    .card {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .title {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .card {
        width: 95%;
        height: 180px;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .card {
        height: 160px;
    }

    .card-content h2 {
        font-size: 1.3rem;
    }

    .footer {
        margin-top: 40px;
        padding: 15px;
    }
}

/* TodoList Styles */
.todo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #3B82F6, #1E40AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin: 0;
}

/* Add Meal Form */
.add-meal-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    margin-bottom: 2rem;
}

.add-meal-card h2 {
    margin: 0 0 1.5rem 0;
    color: #1F2937;
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 200px 200px;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Meals Section */
.meals-section {
    margin-top: 2rem;
}

.meals-section h2 {
    font-size: 1.75rem;
    color: #1F2937;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #6B7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6B7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.meal-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
    border-left: 4px solid #E5E7EB;
}

.meal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.meal-card.breakfast {
    border-left-color: #F59E0B;
}

.meal-card.lunch {
    border-left-color: #10B981;
}

.meal-card.dinner {
    border-left-color: #8B5CF6;
}

.meal-card.snack {
    border-left-color: #F97316;
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.meal-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    color: #1F2937;
    font-weight: 600;
}

.meal-type {
    background: #F3F4F6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.meal-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-complete, .btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-complete:hover {
    background: #D1FAE5;
    transform: scale(1.1);
}

.btn-delete:hover {
    background: #FEE2E2;
    transform: scale(1.1);
}

.meal-info {
    space-y: 0.75rem;
}

.meal-info > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.meal-info .icon {
    font-size: 1rem;
}

.meal-notes {
    color: #374151 !important;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .todo-container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .meals-grid {
        grid-template-columns: 1fr;
    }

    .meal-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meal-actions {
        align-self: flex-end;
    }
}