/* ===== Health Tracker Dark Theme ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 16px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #15171d 0%, #1f2430 100%);
    color: #f3f4f6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.card {
    width: 100%;
    max-width: 430px;
    background: #272b36;
    border: 1px solid #383e4d;
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 20px 60px rgba(0,0,0,.45),
        inset 0 1px rgba(255,255,255,.03);
}

h1 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: #b9c0cf;
}

.row {
    display: flex;
    gap: 14px;
}

.row > div {
    flex: 1;
}

input,
select,
textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #444c5f;
    background: #1d212b;
    color: white;
    font-size: 1rem;
    transition: .2s ease;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6d8cff;
    box-shadow: 0 0 0 3px rgba(109,140,255,.25);
}

#sys,
#dia {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

#pulse,
#sugar {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

button {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg,#6d8cff,#4b6bff);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79,124,255,.35);
}

button:active {
    transform: scale(.98);
}

#status {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
    color: #73d69c;
}

hr {
    border: none;
    border-top: 1px solid #383e4d;
    margin: 22px 0;
}

::placeholder {
    color: #7d8699;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8da2ff 50%),
        linear-gradient(135deg, #8da2ff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
}
