/* GLOBAL */
body {
    margin: 0;
    background: #000;
    font-family: "SamsungOne", sans-serif;
    color: white;
}

.content {
    padding: 90px 16px 120px;
}

/* HEADER */
.oneui-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    backdrop-filter: blur(6px);
}

.app-title {
    font-size: 1.4rem;
    font-weight: 700;
}

/* CARDS */
.card {
    background: #111418;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* BG CARD */
.bg-card {
    text-align: center;
    padding: 26px;
}

.bg-value {
    font-size: 2.8rem;
    font-weight: 700;
}

/* CHIPS */
.chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chip.green { background: #064e3b; color: #a7f3d0; }
.chip.orange { background: #9a3412; color: #ffedd5; }
.chip.red { background: #7f1d1d; color: #fecaca; }

/* INPUTS */
.input-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: none;
    background: #0d0f12;
    color: white;
    font-size: 1rem;
}

#profilesBody input {
    width: 120px;
    display: inline-block;
    margin-right: 12px;
}

#profilesBody label {
    display: inline-block;
    width: 58px;
    margin-bottom: 8px;
}

#profilesBody h4 {
    margin-top: 16px;
}

/* CALCULATE BUTTON */
.calculate-btn {
    width: 100%;
    padding: 16px;
    background: #0a84ff;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* RESULTS */
.dose-value {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 10px 0 16px;
}

/* TAB BAR */
.oneui-tabbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 72px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-item {
    background: none;
    border: none;
    color: #0a84ff;
    font-size: 1rem;
}

/* BOTTOM SHEET */
.bottom-sheet {
    position: fixed;
    inset: 0;
    background: #000;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 18px;
    transform: translateY(100%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.6);
    overflow-y: auto;
    z-index: 50;
    pointer-events: none;
}

.bottom-sheet.show {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sheet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.4rem;
}

/* SETTINGS SECTIONS */
.settings-section {
    background: #111418;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.section-header {
    width: 100%;
    background: none;
    border: none;
    padding: 18px;
    font-size: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chevron {
    transition: transform 0.25s ease;
    font-size: 1.4rem;
    color: #6b7280;
}

.section-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.section-body.open {
    padding: 18px;
}

#profilesHeader .chevron {
    transform: rotate(90deg);
}

.section-header.open .chevron {
    transform: rotate(90deg);
}

.section-body h4 {
    margin: 10px 0 4px;
    font-size: 0.95rem;
    color: #e5e7eb;
}

/* DARK MODE TOGGLE */
.menu-item {
    width: 100%;
    background: none;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

/* TOAST */
#toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(0,0,0,0.85);
    padding: 14px 20px;
    border-radius: 18px;
    opacity: 0;
    transition: all 0.35s ease;
    font-size: 0.95rem;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
