/* =========================================
   THEMA VARIABELEN
   ========================================= */

:root {
    --bg: #f4f4f4;
    --card-bg: #ffffff;
    --text: #000000;
    --accent: #139ed0;
    --input-bg: #ffffff;
    --input-border: #cccccc;
    --navbar-bg: #139ed0;
}

/* Donker thema + live preview */
.dark,
.preview-dark {
    --bg: #0d1117;
    --card-bg: #161b22;
    --text: #ffffff;
    --accent: #58a6ff;
    --input-bg: #0f172a;
    --input-border: #334155;
    --navbar-bg: #111827;
}

/* =========================================
   BASIS
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg);
    min-height: 100vh;
    padding-bottom: 72px;
    color: var(--text);
}

/* =========================================
   HEADER
   ========================================= */

.app-header {
    background-color: var(--accent);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    font-size: 50px;
}

.app-titel {
    font-size: 24px;
    font-weight: bold;
}

.nav-icon-settings {
    font-size: 40px;
    color: white;
}

.app-header a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   MAIN
   ========================================= */

.settings-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================================
   SECTIES
   ========================================= */

.settings-section {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent);
}

/* =========================================
   ROWS
   ========================================= */

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

.settings-label {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
}

.settings-desc {
    font-size: 14px;
    color: var(--text);
    opacity: 0.7;
}

/* =========================================
   SELECT
   ========================================= */

.settings-select {
    padding: 10px;
    font-size: 16px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    outline: none;
    background-color: var(--input-bg);
    color: var(--text);
}

/* =========================================
   SUB-INSTELLINGEN (tijd)
   ========================================= */

.settings-sub {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-sub input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text);
}

/* =========================================
   TOGGLE SWITCH
   ========================================= */

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle input {
    display: none;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--input-border);
    border-radius: 26px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* =========================================
   OPSLAAN KNOP
   ========================================= */

.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 14px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #0d7aa5;
}

/* =========================================
   NAVBAR
   ========================================= */

.Bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.Bottom-nav a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-icon {
    font-size: 24px;
    align-self: center;
}

.Bottom-nav a.active {
    color: #000000;
    font-weight: bold;
}
