/* ============================================ */
/* SETTINGS PANEL                              */
/* ============================================ */

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Language Switch (Split Toggle) */
.lang-switch {
    display: inline-flex;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
}

.lang-switch input {
    display: none;
}

.lang-switch label {
    font-size: 13px;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-switch input:checked + label {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Toggle Switch - iOS style */
.switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9e9eb;
    transition: 0.3s;
    border-radius: 31px;
    -webkit-tap-highlight-color: transparent;
}

body.dark .slider {
    background-color: #39393d;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Clear Data Button */
.clear-data-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: 12px;
    padding: 12px;
    color: var(--danger);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    margin-top: 20px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.clear-data-btn:hover {
    background: var(--danger-bg);
}

/* Version */
#appVersion {
    color: var(--text-muted);
    font-size: 16px;
}

/* Install App Button */
.btn-install-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    height: 42px;
}

.btn-install-app:hover {
    background: var(--primary-dark);
}

.btn-install-app:active {
    transform: scale(0.97);
}

/* Mock Data Button */
.btn-mock-data {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px dashed var(--glass-border);
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.btn-mock-data:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notification-setting {
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.notification-setting-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-setting label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.notification-setting p {
    margin: 3px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.notification-help {
    padding: 9px 10px;
    margin-top: 10px !important;
    border: 1px solid var(--glass-border);
    border-radius: 9px;
    background: var(--glass-surface);
}

.notification-scope {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 9px !important;
    color: var(--text-secondary) !important;
}
