/* ================================================
   style.css - Waktu Sholat & Adzan (multi-user)
   ================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== ANIMASI ===== */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 217, 61, 0.3); }
    50% { text-shadow: 0 0 40px rgba(255, 217, 61, 0.6), 0 0 60px rgba(255, 217, 61, 0.2); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 217, 61, 0.05); }
    50% { box-shadow: 0 0 40px rgba(255, 217, 61, 0.15); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(255, 255, 255, 0.3); }
    50% { border-color: rgba(255, 217, 61, 0.5); }
}

@keyframes pulseWarning {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.98); }
}

/* ===== KONTAINER UTAMA ===== */
.container {
    max-width: 800px;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 24px;
    padding: 30px 30px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.8s ease-in-out;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-in-out 0.2s both;
}

header h1 {
    font-size: 38px;
    color: #ffd93d;
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
    animation: glow 3s ease-in-out infinite;
}

.mosque-name {
    font-size: 24px;
    color: #ffffff;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 3px;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ================================================
   SPLIT 50%-50% (jam & countdown)
   ================================================ */
.split-container {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    width: 100%;
    animation: fadeIn 0.8s ease-in-out 0.4s both;
}

.split-left,
.split-right {
    flex: 1;
    width: 50%;
    padding: 22px 16px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulseGlow 4s ease-in-out infinite;
}

.split-left:hover,
.split-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.split-left { border-color: rgba(77, 150, 255, 0.3); }
.split-right { border-color: rgba(255, 217, 61, 0.3); }

/* ===== KIRI - WAKTU ===== */
.clock-label {
    font-size: 16px;
    color: #ffd93d;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 6px;
    font-weight: 600;
}

.clock {
    font-size: 64px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    letter-spacing: 3px;
    line-height: 1.1;
}

.date {
    font-size: 18px;
    color: #ffffff;
    margin-top: 4px;
    font-weight: 300;
    opacity: 0.8;
}

/* ===== KANAN - MENUJU ADZAN ===== */
.next-prayer-label {
    font-size: 20px;
    font-weight: 600;
    color: #ffd93d;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.1);
}

.countdown {
    font-size: 58px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #ffd93d;
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.2);
    letter-spacing: 3px;
    line-height: 1.1;
}

.status {
    font-size: 15px;
    color: #ffd93d;
    margin-top: 4px;
    font-weight: 300;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.countdown-warning {
    animation: pulseWarning 1s ease-in-out infinite;
    color: #ff6b6b !important;
}

/* ================================================
   TABEL SHOLAT
   ================================================ */
.prayer-table-section {
    margin: 12px 0 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
    animation: fadeIn 0.8s ease-in-out 0.6s both;
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
}

.prayer-table th {
    padding: 12px 10px;
    text-align: center;
    color: #ffd93d;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 2px solid rgba(255, 217, 61, 0.15);
    font-weight: 600;
}

.prayer-table td {
    padding: 14px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 20px;
    color: #cccccc;
    font-weight: 400;
    transition: all 0.3s ease;
}

.prayer-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.prayer-table .passed { color: #555; }
.prayer-table .upcoming { color: #aaaaaa; }

.prayer-table .next-prayer {
    background: rgba(255, 217, 61, 0.08);
    animation: borderGlow 2s ease-in-out infinite;
    border-radius: 4px;
}

.prayer-table .next-prayer td:first-child {
    color: #ffd93d;
    font-weight: 700;
}

.prayer-table .next-prayer td:last-child {
    color: #ffd93d;
    font-weight: 600;
}

.prayer-table tr { transition: all 0.3s ease; }
.prayer-table tr:hover { transform: scale(1.01); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
    animation: fadeIn 0.8s ease-in-out 0.8s both;
}

.refresh-btn {
    background: rgba(255, 217, 61, 0.12);
    color: #ffd93d;
    border: 1px solid rgba(255, 217, 61, 0.2);
    padding: 10px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.refresh-btn:hover {
    background: rgba(255, 217, 61, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.1);
}

.location-bar-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 8px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

.location-bar-bottom .location-icon { font-size: 14px; }

.location-bar-bottom .location-text {
    font-size: 13px;
    color: #4d96ff;
    font-weight: 500;
}

.location-bar-bottom .coords {
    font-size: 11px;
    color: #555;
    font-family: monospace;
}

.location-bar-bottom .gps-btn,
.location-bar-bottom .debug-btn {
    background: rgba(77, 150, 255, 0.15);
    color: #4d96ff;
    border: 1px solid rgba(77, 150, 255, 0.2);
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
}

.location-bar-bottom .gps-btn:hover {
    background: rgba(77, 150, 255, 0.3);
    transform: scale(1.05);
}

.credit {
    color: #555;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 4px 0;
}

.login-name {
    color: #ffd93d;
    font-weight: 600;
}

.footer-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
}

.footer-user .login-name {
    font-size: 13px;
    color: #555;
    font-weight: 400;
}

.footer-user .location-text {
    font-size: 13px;
    color: #555;
    font-weight: 400;
}

.footer-user .coords {
    color: #555;
    font-family: monospace;
}

.footer-sep {
    color: #555;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.footer-actions .login-name {
    font-size: 18px;
}

.footer-actions .gps-btn,
.footer-actions .btn-logout {
    font-size: 15px;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 8px;
}

body.display-mode .footer-actions .gps-btn,
body.display-mode .footer-actions .btn-logout {
    font-size: 16px;
    padding: 10px 24px;
}

body.display-mode .footer-user {
    font-size: 15px;
    color: #555;
}

body.display-mode .footer-user .login-name,
body.display-mode .footer-user .location-text {
    font-size: 15px;
    color: #555;
    font-weight: 400;
}

body.display-mode .footer-user .coords {
    color: #555;
}

.email-link {
    color: #4d96ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #6baeff;
    text-decoration: underline;
    text-shadow: 0 0 20px rgba(77, 150, 255, 0.3);
}

.credit-separator {
    color: #444;
    margin: 0 6px;
}

/* ================================================
   TOP NAVIGATION BAR
   ================================================ */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.nav-brand {
    font-size: 16px;
    font-weight: 700;
    color: #ffd93d;
    letter-spacing: 1px;
}

.nav-links { display: flex; gap: 8px; }

.nav-link {
    color: #aaa;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.08);
}

.nav-link.active {
    color: #ffd93d;
    background: rgba(255, 217, 61, 0.12);
    font-weight: 600;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-username {
    font-size: 14px;
    color: #ddd;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    text-decoration: none;
    border: 1px solid rgba(255, 107, 107, 0.2);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.03);
}

/* ================================================
   LOGIN PAGE
   ================================================ */
.login-page {
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.8s ease-in-out;
}

.login-logo {
    font-size: 60px;
    margin-bottom: 10px;
    animation: glow 3s ease-in-out infinite;
}

.login-box h1 {
    font-size: 28px;
    color: #ffd93d;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-subtitle {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 24px;
}

.login-error {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.login-warning {
    background: rgba(255, 217, 61, 0.1);
    color: #ffd93d;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid rgba(255, 217, 61, 0.2);
    line-height: 1.5;
}

.login-warning code {
    background: rgba(0,0,0,0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #444;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.google-icon { flex-shrink: 0; }

.login-footnote {
    margin-top: 24px;
    color: #666;
    font-size: 12px;
}

.login-footnote a {
    color: #4d96ff;
    text-decoration: none;
}

/* ================================================
   SETTINGS / SETUP PAGE
   ================================================ */
.settings-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    animation: fadeIn 0.6s ease-in-out;
}

.settings-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.map-section {
    flex: 1;
    min-width: 300px;
}

.map-section > label {
    display: block;
    font-size: 15px;
    color: #ffd93d;
    margin-bottom: 10px;
    font-weight: 600;
}

#map {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 1;
}

.map-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgba(255, 217, 61, 0.5);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.08);
}

.form-group input[readonly] {
    opacity: 0.7;
    background: rgba(255,255,255,0.03);
}

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ffd93d;
    color: #24243e;
}

.btn-primary:hover {
    background: #ffe15c;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.2);
}

.btn-gps {
    background: rgba(77, 150, 255, 0.15);
    color: #4d96ff;
    border: 1px solid rgba(77, 150, 255, 0.3);
}

.btn-gps:hover { background: rgba(77, 150, 255, 0.3); }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    animation: fadeIn 0.4s ease-in-out;
}

.alert-success {
    background: rgba(107, 203, 119, 0.15);
    color: #6bcb77;
    border: 1px solid rgba(107, 203, 119, 0.3);
}

.alert-error {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* ================================================
   PANEL SLIDER DISPLAY (settings.php)
   ================================================ */
.slider-panel {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: fadeIn 0.6s ease-in-out;
}

.slider-panel .panel-title {
    font-size: 22px;
    color: #ffd93d;
    margin-bottom: 6px;
}

.slider-panel .panel-desc {
    font-size: 13px;
    color: #bbb;
    margin-bottom: 18px;
    line-height: 1.6;
}

.slider-add-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.slider-subtitle {
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
}

.slider-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.slider-table th {
    background: rgba(255,217,61,0.08);
    color: #ffd93d;
    padding: 12px 10px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
    font-size: 14px;
    color: #ddd;
}

.slider-thumb {
    width: 80px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
}

.slider-inline-update {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-inline-update input[type="text"],
.slider-inline-update input[type="number"] {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 6px 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.btn-mini {
    background: rgba(255,217,61,0.12);
    color: #ffd93d;
    border: 1px solid rgba(255,217,61,0.2);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-mini:hover {
    background: rgba(255,217,61,0.25);
}

.btn-danger {
    background: rgba(255,107,107,0.12);
    color: #ff6b6b;
    border-color: rgba(255,107,107,0.25);
}

.btn-danger:hover {
    background: rgba(255,107,107,0.25);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-on {
    background: rgba(107,203,119,0.15);
    color: #6bcb77;
    border: 1px solid rgba(107,203,119,0.3);
}

.badge-off {
    background: rgba(255,107,107,0.12);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.25);
}

.slider-actions { white-space: nowrap; }

.slider-empty {
    color: #888;
    font-style: italic;
    padding: 12px;
}

/* ================================================
   DESIGN MODERN SETTINGS + GRID SLIDE CARD
   ================================================ */
.settings-container {
    max-width: 1040px;
}

/* Halaman settings konten panjang: allow scroll tanpa terpotong bagian atas */
body.settings-page {
    display: block;
    padding: 20px;
}

body.settings-page .settings-container {
    margin: 0 auto;
}

/* ================================================
   HALAMAN DASHBOARD (bisa di-scroll, tampilan normal)
   ================================================ */
body.dashboard-page {
    display: block;
    padding: 20px;
    overflow: auto;
    min-height: 100vh;
}

body.dashboard-page .dashboard-container {
    margin: 0 auto;
    max-width: 800px;
    animation: fadeIn 0.6s ease-in-out;
}

body.dashboard-page .split-left,
body.dashboard-page .split-right {
    min-height: 200px;
}

body.dashboard-page .split-container {
    margin-bottom: 20px;
}

body.dashboard-page .prayer-table-section {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 16px;
}

body.dashboard-page .footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

body.dashboard-page .footer-user {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0;
}

body.dashboard-page .footer-user .login-name {
    color: #ffd93d;
    font-weight: 600;
}

body.dashboard-page .footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}

body.dashboard-page .gps-btn {
    background: rgba(77, 150, 255, 0.15);
    color: #4d96ff;
    border: 1px solid rgba(77, 150, 255, 0.3);
    font-size: 14px;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.dashboard-page .gps-btn:hover {
    background: rgba(77, 150, 255, 0.3);
}

body.dashboard-page .btn-logout {
    font-size: 14px;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 8px;
}

body.dashboard-page .credit {
    font-size: 13px;
    color: #555;
}

/* Header section modern */
.settings-hero {
    background: linear-gradient(135deg, rgba(255,217,61,0.10), rgba(77,150,255,0.08));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease-in-out;
}

.settings-hero-icon {
    font-size: 42px;
    filter: drop-shadow(0 0 15px rgba(255,217,61,0.4));
}

.settings-hero-title {
    font-size: 20px;
    color: #ffd93d;
    font-weight: 700;
    letter-spacing: 1px;
}

.settings-hero-sub {
    font-size: 13px;
    color: #bbb;
    margin-top: 2px;
}

/* Sections / kartu glassmorphism */
.settings-section {
    background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
}

.settings-section .section-title {
    font-size: 17px;
    color: #ffd93d;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section .section-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Form styling di dalam kartu */
.settings-section .form-group {
    margin-bottom: 12px;
}

.settings-section .form-group label {
    font-size: 13px;
    color: #ccc;
}

.settings-section .form-group input,
.settings-section .form-group select,
.settings-section .form-group textarea {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 10px;
    color: #fff;
    padding: 11px 13px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.settings-section .form-group input:focus,
.settings-section .form-group select:focus,
.settings-section .form-group textarea:focus {
    border-color: rgba(255,217,61,0.55);
    box-shadow: 0 0 18px rgba(255,217,61,0.12);
}

.settings-section .form-group input[readonly] {
    opacity: 0.75;
    background: rgba(255,255,255,0.03);
}

/* Grid 2 kolom untuk kartu slide */
/* Setiap kartu selebar 50% dari kontainer, 2 kartu per baris */
.slides-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.slide-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
    border-color: rgba(255,217,61,0.3);
}

.slide-card.is-inactive {
    opacity: 0.55;
    filter: grayscale(0.7);
}

.slide-card-top {
    position: relative;
}

.slide-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a14;
    position: relative;
}

.slide-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.slide-thumb-wrap:hover .slide-photo {
    transform: scale(1.06);
}

.slide-thumb-wrap::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-thumb-wrap:hover::after {
    opacity: 1;
}

.slide-actions-top {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-number {
    background: rgba(255,217,61,0.9);
    color: #24243e;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Tombol mini biru untuk urutan */
.btn-mini-blue {
    background: rgba(77,150,255,0.25);
    color: #fff;
    border: 1px solid rgba(77,150,255,0.4);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-mini-blue:hover {
    background: rgba(77,150,255,0.45);
    transform: scale(1.1);
}

/* Body kartu */
.slide-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.slide-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slide-duration {
    background: rgba(255,217,61,0.10);
    color: #ffd93d;
    border: 1px solid rgba(255,217,61,0.2);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.slide-edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-title-input {
    width: 100%;
    min-height: 54px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.4;
}

.slide-edit-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.slide-delay-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.slide-delay-field label {
    font-size: 11px;
    color: #888;
}

.slide-delay-field input {
    width: 100%;
    font-size: 13px;
}

.btn-mini-save {
    background: rgba(107,203,119,0.18);
    color: #6bcb77;
    border: 1px solid rgba(107,203,119,0.35);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mini-save:hover {
    background: rgba(107,203,119,0.32);
    transform: scale(1.03);
}

.slide-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-opt {
    flex: 1;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-opt-on {
    background: rgba(107,203,119,0.15);
    color: #6bcb77;
    border-color: rgba(107,203,119,0.3);
}

.btn-opt-on:hover { background: rgba(107,203,119,0.3); }

.btn-opt-off {
    background: rgba(255,217,61,0.12);
    color: #ffd93d;
    border-color: rgba(255,217,61,0.25);
}

.btn-opt-off:hover { background: rgba(255,217,61,0.25); }

.btn-opt-del {
    background: rgba(255,107,107,0.13);
    color: #ff6b6b;
    border-color: rgba(255,107,107,0.25);
}

.btn-opt-del:hover { background: rgba(255,107,107,0.28); }

/* Tombol tambah slide (drop zone) */
.slider-add-form {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,217,61,0.03));
    border: 1px dashed rgba(255,217,61,0.25);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slider-add-form .form-group label {
    font-size: 13px;
    color: #ddd;
}

/* Responsive grid */
@media (max-width: 900px) {
    .slides-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 820px) {
    .settings-container { max-width: 100%; }
}

/* ================================================
   SETUP PAGE
   ================================================ */
.setup-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px;
}

.setup-container {
    max-width: 900px;
    align-self: center;
}

.setup-intro {
    text-align: center;
    color: #bbb;
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.6;
}

.setup-intro strong { color: #ffd93d; }

.setup-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 600px) {
    .container {
        padding: 16px 14px 14px;
        border-radius: 16px;
    }

    .split-container {
        flex-direction: column;
        gap: 12px;
    }

    .split-left,
    .split-right {
        width: 100%;
        min-height: 140px;
        padding: 16px 12px;
    }

    header h1 { font-size: 26px; }
    .mosque-name { font-size: 18px; }
    .clock-label { font-size: 13px; }
    .clock { font-size: 44px; }
    .date { font-size: 15px; }
    .next-prayer-label { font-size: 16px; }
    .countdown { font-size: 40px; }
    .status { font-size: 13px; }

    .location-bar-bottom {
        gap: 6px;
        font-size: 12px;
        padding: 8px 0;
    }
    .location-bar-bottom .coords { display: none; }

    .prayer-table th {
        font-size: 12px;
        padding: 8px 6px;
    }
    .prayer-table td {
        padding: 10px 6px;
        font-size: 16px;
    }
    .credit { font-size: 11px; }

    /* topnav & settings responsif */
    .topnav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .settings-wrapper { flex-direction: column; }
    .form-row { flex-direction: column; }
    #map { height: 320px; }

    /* setup responsif */
    .setup-page { padding: 12px; }
}

@media (max-width: 380px) {
    header h1 { font-size: 22px; }
    .mosque-name { font-size: 15px; }
    .clock { font-size: 36px; }
    .countdown { font-size: 32px; }
    .next-prayer-label { font-size: 14px; }
    .prayer-table td {
        font-size: 14px;
        padding: 8px 4px;
    }
    .prayer-table th {
        font-size: 10px;
        padding: 6px 4px;
    }
    .credit { font-size: 10px; }
}

/* ================================================
   PANEL RUNNING TEXT (settings.php)
   ================================================ */
.rt-add-form {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,169,77,0.03));
    border: 1px dashed rgba(255,169,77,0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.rt-add-form .form-row {
    align-items: flex-end;
}

.rt-input-grow {
    flex: 1;
    min-width: 240px;
}

.rt-add-action {
    padding-bottom: 0;
    display: flex;
    align-items: flex-end;
    margin: 0;
}

.rt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.rt-item {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,169,77,0.2);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: fadeIn 0.4s ease-in-out;
}

.rt-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255,169,77,0.45);
}

.rt-item.is-inactive {
    opacity: 0.55;
    filter: grayscale(0.7);
}

.rt-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rt-actions-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rt-edit-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rt-text-input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,169,77,0.3);
    border-radius: 8px;
    color: #fff;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.rt-text-input:focus {
    border-color: rgba(255,169,77,0.7);
    box-shadow: 0 0 14px rgba(255,169,77,0.15);
}

.rt-actions {
    display: flex;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rt-delete-all {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.rt-delete-all form {
    text-align: right;
}

/* Pengaturan kecepatan running text */
.rt-speed-form {
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,169,77,0.03));
    border: 1px solid rgba(255,169,77,0.2);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.rt-speed-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffe0b0;
    margin-bottom: 4px;
}

.rt-speed-desc {
    font-size: 13px;
    color: #b9b9b9;
    margin: 0 0 14px 0;
}

.rt-speed-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.rt-speed-inputs {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex: 1;
    min-width: 300px;
}

.rt-speed-row .form-group {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

.rt-speed-row input[type="range"] {
    width: 100%;
    accent-color: #ffa94d;
    cursor: pointer;
}

.rt-speed-value {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.rt-speed-value span {
    font-size: 18px;
    font-weight: 700;
    color: #ffa94d;
    background: rgba(255,169,77,0.12);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,169,77,0.3);
    white-space: nowrap;
}

/* Responsive running text setelan */
@media (max-width: 600px) {
    .rt-edit-form {
        flex-wrap: wrap;
    }
    .rt-text-input {
        min-width: 100%;
    }
}

/* ================================================
   MODE TAMPILAN PENUH LAYAR (Display Monitor)
   ================================================ */
body.display-mode {
    padding: 0;
    display: block;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow: hidden;
}

.display-full {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 48px;
}

.display-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 18px;
}

.display-title {
    font-size: clamp(24px, 5.5vh, 56px);
    line-height: 1.2;
}

body.display-mode header {
    margin-bottom: clamp(6px, 1.8vh, 20px);
}

body.display-mode .mosque-name {
    font-size: clamp(16px, 3.2vh, 34px);
    margin-top: 2px;
}

body.display-mode .split-container {
    width: 100%;
    flex: 1;
    gap: clamp(14px, 3vw, 40px);
    margin-bottom: clamp(8px, 2vh, 24px);
    min-height: 0;
}

body.display-mode .split-left,
body.display-mode .split-right {
    min-height: clamp(200px, 34vh, 360px);
    padding: clamp(14px, 2.5vh, 30px) 20px;
    border-radius: 24px;
}

body.display-mode .clock-label {
    font-size: clamp(14px, 1.8vh, 22px);
}

body.display-mode .clock {
    font-size: clamp(40px, 12vh, 120px);
    line-height: 1.1;
}

body.display-mode .date {
    font-size: clamp(14px, 2.4vh, 26px);
    margin-top: 4px;
}

body.display-mode .next-prayer-label {
    font-size: clamp(15px, 2.4vh, 30px);
    margin-bottom: 4px;
}

body.display-mode .countdown {
    font-size: clamp(40px, 11vh, 110px);
    line-height: 1.1;
}

body.display-mode .status {
    font-size: clamp(13px, 1.9vh, 20px);
    margin-top: 4px;
}

body.display-mode .prayer-table-section {
    width: 100%;
    padding-top: clamp(10px, 1.6vh, 16px);
    margin-top: clamp(6px, 1.2vh, 16px);
}

body.display-mode .prayer-table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: clamp(4px, 1vh, 12px);
}

body.display-mode .prayer-table th {
    font-size: clamp(12px, 2vh, 24px);
    padding: clamp(6px, 1.4vh, 18px) 12px;
}

body.display-mode .prayer-table td {
    font-size: clamp(14px, 2.8vh, 34px);
    padding: clamp(6px, 1.4vh, 18px) 12px;
}

body.display-mode .footer {
    width: 100%;
    padding-top: clamp(10px, 1.5vh, 16px);
    margin-top: clamp(12px, 2vh, 24px);
}

body.display-mode .footer-user {
    font-size: clamp(12px, 1.7vh, 15px);
}

body.display-mode .footer-user .login-name,
body.display-mode .footer-user .location-text {
    font-size: clamp(12px, 1.7vh, 15px);
}

body.display-mode .location-bar-bottom {
    font-size: 16px;
}

body.display-mode .location-bar-bottom .location-text {
    font-size: 18px;
}

body.display-mode .refresh-btn {
    font-size: clamp(13px, 1.8vh, 18px);
    padding: 10px 24px;
}

body.display-mode .credit {
    font-size: clamp(11px, 1.5vh, 15px);
}

@media (max-width: 1100px) {
    body.display-mode .clock { font-size: clamp(40px, 10vh, 90px); }
    body.display-mode .countdown { font-size: clamp(40px, 9vh, 84px); }
    body.display-mode .display-title { font-size: clamp(20px, 4.5vh, 40px); }
    body.display-mode .clock-label { font-size: clamp(13px, 1.6vh, 18px); }
    body.display-mode .next-prayer-label { font-size: clamp(14px, 2vh, 24px); }
}

                