body {
    background-color: skyblue;
}
/* Mobile optimizations */
@media (max-width: 767.98px) {
    /* Stack form elements on mobile */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Make buttons full width on mobile */
    .form-group button[type="submit"] {
        width: 100%;
        padding: 0.75rem;
        margin-top: 0.5rem;
    }

    /* Optimize card display on mobile */
    .timeline-card .card-body {
        padding: 0.75rem;
    }

    /* Fixed action button for quick access */
    .mobile-add-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
}

/* Improve form styling */
.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Make timeline more prominent */
.date-separator {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.date-separator .badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Add visual indication for different event types */
.sugar-card {
    border-left: 4px solid var(--bs-danger);
}

.meal-card {
    border-left: 4px solid var(--bs-success);
}

.medication-card {
    border-left: 4px solid var(--bs-primary);
}

.other-card {
    border-left: 4px solid var(--bs-secondary);
}

.form-control.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23888' stroke-width='2' d='M12,1 a11,11 0 1,0 11,11 M12,1 a11,11 0 1,1 -11,11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
    animation: spin 1s linear infinite;
}

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