/* MyHealthApp — Global Styles */

:root {
    --app-primary:   #0d6efd;
    --app-teal:      #0dcaf0;
    --app-success:   #198754;
    --app-warning:   #ffc107;
    --app-danger:    #dc3545;
    --app-bg:        #f8f9fa;
    --app-card-shadow: 0 1px 4px rgba(0,0,0,.08);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--app-bg);
    font-size: 0.925rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--app-card-shadow);
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-size: .875rem;
    font-weight: 600;
}

/* Stat cards on dashboard */
.stat-card {
    border-left: 4px solid var(--app-primary);
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6c757d;
}

/* Hunger & Fullness sliders */
input[type=range] {
    accent-color: var(--app-primary);
}

/* Range value badge */
.range-value {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* Bilingual labels */
.label-th {
    font-size: .78rem;
    color: #6c757d;
    display: block;
    margin-top: 1px;
}

/* Footer */
.footer {
    font-size: .78rem;
}

/* Mobile improvements */
@media (max-width: 576px) {
    .stat-card .stat-value { font-size: 1.4rem; }
    .container-fluid { padding-left: 12px; padding-right: 12px; }
    .card-body { padding: 12px; }

    /* Full-width overrides for constrained inputs */
    .input-limit-mobile { max-width: 100% !important; width: 100% !important; }

    /* Slightly smaller card headers */
    .card-header { font-size: .82rem; padding: .5rem .75rem; }

    /* Tables easier to read */
    .table { font-size: .82rem; }
    .table td, .table th { padding: .35rem .5rem; }

    /* Better touch targets for buttons */
    .btn { min-height: 40px; }
    .btn-sm { min-height: 32px; }

    /* Page titles */
    h5.fw-bold { font-size: 1rem; }

    /* Navbar brand */
    .navbar-brand { font-size: .9rem; }

    /* Period toggle buttons */
    .period-btn { font-size: .8rem; padding: .3rem .65rem; }

    /* Slider labels */
    .range-value { min-width: 36px; font-size: .9rem; }

    /* Quick add buttons wrap better */
    .quick-add-btn { font-size: .8rem; padding: .35rem .8rem; }
}

/* Quick-add buttons */
.quick-add-btn {
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .85rem;
}
