body {
    padding-bottom: 60px;
}

.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
}

.main-container {
    max-width: 1300px;
    margin-top: 30px;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--apple-text);
}

.scrollable-content {
    max-height: 850px;
    overflow-y: auto;
    padding: 25px;
}

/* Form */
.form-label {
    font-weight: 500;
    color: var(--apple-secondary);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #D2D2D7;
    padding: 12px 15px;
    background-color: #FCFCFD;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.btn-primary {
    background-color: var(--apple-blue);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    background-color: #0066CC;
}

.btn-outline-primary {
    border-radius: 12px;
    border: 1.5px solid var(--apple-blue);
    color: var(--apple-blue);
    font-weight: 500;
}

/* Charts */
.chart-box {
    position: relative;
    height: 320px;
    width: 100%;
    border-radius: 12px;
}

.chart-container {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Vaccine list */
.list-group-item {
    border: none;
    background: #F5F5F7;
    border-radius: 14px !important;
    margin-bottom: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.vac-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.vac-meta {
    font-size: 0.85rem;
    color: var(--apple-secondary);
}

.badge-soft-success {
    background: #E4F2E7;
    color: #28a745;
    border: none;
}

.badge-soft-warning {
    background: #FFF5E6;
    color: #FF9500;
    border: none;
}

.form-check-input:checked {
    background-color: #34C759;
    border-color: #34C759;
}

/*slider görüntüsü*/
/* ---------------------------
   Apple-vari 3-durum slider
   0 = Yok (kırmızı)
   1 = —   (nötr)
   2 = Var (yeşil)
   --------------------------- */

.neuro-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 34px;
    /* daha “switch” gibi */
    border-radius: 999px;
    outline: none;
    margin: 0;
    cursor: pointer;

    /* track + orta çizgi hissi */
    background: linear-gradient(to right,
            rgba(255, 59, 48, 0.14) 0%,
            rgba(255, 59, 48, 0.14) 33%,
            rgba(142, 142, 147, 0.20) 33%,
            rgba(142, 142, 147, 0.20) 66%,
            rgba(52, 199, 89, 0.14) 66%,
            rgba(52, 199, 89, 0.14) 100%);

    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.70);

    /* thumb'un gölgesi track üzerinde doğal dursun */
    padding: 0 8px;
    /* thumb track kenarına yapışmasın */
}

/* WebKit thumb */
.neuro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;

    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.18),
        0 1px 2px rgba(0, 0, 0, 0.10);

    transition: transform 120ms ease;
}

/* Firefox thumb */
.neuro-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.18),
        0 1px 2px rgba(0, 0, 0, 0.10);
    transition: transform 120ms ease;
}

/* Firefox track */
.neuro-slider::-moz-range-track {
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    /* asıl background üstte */
}

/* basınca hafif büyüsün (iOS hissi) */
.neuro-slider:active::-webkit-slider-thumb {
    transform: scale(1.04);
}

.neuro-slider:active::-moz-range-thumb {
    transform: scale(1.04);
}

/* küçük ekranlarda sıkışmasın */
@media (max-width: 576px) {
    .neuro-slider {
        height: 32px;
    }

    .neuro-slider::-webkit-slider-thumb,
    .neuro-slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

.neuro-slider.form-range {
    height: 34px;
}

/* Modern Segmented Control for Units */
.weight-unit-toggle {
    display: flex;
    position: relative;
    background-color: #EFEFF4;
    border-radius: 8px;
    padding: 2px;
    width: 120px;
    height: 32px;
    user-select: none;
}

.weight-unit-toggle input {
    display: none;
}

.weight-unit-toggle label {
    flex: 1;
    text-align: center;
    line-height: 28px;
    font-size: 13px;
    font-weight: 600;
    color: #8E8E93;
    z-index: 2;
    cursor: pointer;
    margin: 0;
    transition: color 0.2s;
}

.weight-unit-toggle .toggle-slide {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.2, 0.0, 0.2, 1);
    z-index: 1;
}

#unitKg:checked~.toggle-slide {
    transform: translateX(0);
}

#unitGr:checked~.toggle-slide {
    transform: translateX(100%);
}

#unitKg:checked+label,
#unitGr:checked+label {
    color: #000;
}