/* =============================================
   SUPPLEMENT TRACKER - CUSTOM STYLES
   Built on Bootstrap 5
   ============================================= */

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
}

/* Taken count */
.taken-count {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.taken-count.full {
    color: #198754 !important;
    animation: pop 0.4s ease;
}

/* Checkboxes - mobile friendly */
.dose-checkbox {
    width: 24px;
    height: 24px;
    transform: scale(1.25);
    cursor: pointer;
    margin-right: 10px;
}

.checkbox-label {
    min-width: 115px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    user-select: none;
}

.checkbox-label:hover {
    background: rgba(13, 110, 253, 0.08);
}

.form-check-input:checked + .form-check-label {
    color: #198754;
    font-weight: 600;
}

/* Summary table */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Date picker */
input[type="date"] {
    border-radius: 10px;
    padding: 10px 14px;
}

/* Toasts */
.toast {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Success state for fully taken supplements */
.card-header.bg-success {
    background-color: #198754 !important;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .checkbox-label {
        min-width: 100px;
        font-size: 0.95rem;
    }
    
    .taken-count {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Animation for full doses */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}