/* ---------- GLOBAL RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

body {
    background: #f7f7f7;
    padding-bottom: 40px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
}

.nav-back, .nav-settings {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.navbar-spacer {
    width: 40px;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    text-align: center;
    margin: 24px 0;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

/* ---------- CARDS ---------- */
.card {
    background: white;
    padding: 20px;
    margin: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ---------- BUTTONS ---------- */
.button {
    display: inline-block;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin: 6px;
    font-weight: 500;
}

.button:hover {
    background: #1e4fc7;
}

/* ---------- INPUTS ---------- */
input, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* ---------- RESULT BOX ---------- */
.result-box {
    background: #f0f4ff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

/* ---------- SAFE / WARN / UNSAFE ---------- */
.safe { color: #16a34a; font-weight: 600; }
.warn { color: #d97706; font-weight: 600; }
.unsafe { color: #dc2626; font-weight: 600; }

/* ---------- SETTINGS PANEL ---------- */
.settings-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: white;
    border-left: 1px solid #ddd;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    padding: 20px;
    transition: right 0.3s ease;
    z-index: 999;
}

.settings-panel.open {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.settings-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

/* ---------- MOBILE FULL WIDTH ---------- */
@media (max-width: 600px) {
    .settings-panel {
        width: 100%;
        right: -100%;
    }
}
