/*
==========================================
DARK MODE - USER SIDE (index, checkin, checkout)
==========================================
*/

body.dark-mode{

    background:var(--bg-body) !important;

}

/* ===== NAVBAR (index.blade.php) ===== */

body.dark-mode .navbar{

    background:var(--bg-surface) !important;

    border-bottom:1px solid var(--border-color);

}

body.dark-mode .navbar-brand{

    color:var(--secondary);

}

body.dark-mode .nav-link{

    color:var(--text-main) !important;

}

body.dark-mode .navbar-toggler-icon{

    filter:invert(1);

}

body.dark-mode .navbar-collapse{

    background:var(--bg-surface) !important;

}

/* ===== LANDING SECTIONS ===== */

body.dark-mode .features,
body.dark-mode .about-section{

    background:var(--bg-body) !important;

}

body.dark-mode .how-it-works{

    background:#0B0F19 !important;

}

body.dark-mode .feature-card,
body.dark-mode .step-card{

    background:var(--bg-surface) !important;

    border-color:var(--border-color) !important;

}

body.dark-mode .feature-card h4,
body.dark-mode .step-card h5{

    color:var(--text-main) !important;

}

body.dark-mode .feature-card p,
body.dark-mode .step-card p,
body.dark-mode .section-subtitle,
body.dark-mode .about-description,
body.dark-mode .hero-description{

    color:var(--text-muted) !important;

}

body.dark-mode .section-title{

    color:var(--text-main) !important;

}

body.dark-mode .about-list div{

    color:var(--text-main);

}

body.dark-mode .footer{

    background:#0B0F19 !important;

}

/* ===== CHECK IN / CHECK OUT PAGE WRAPPER ===== */
/* Background sudah pakai gradasi var(--bg-body/--bg-surface-2)
   langsung di checkin.css/checkout.css, otomatis ikut tema. */

body.dark-mode .back-button{

    color:var(--secondary) !important;

}

body.dark-mode .page-header h1{

    color:var(--text-main) !important;

}

body.dark-mode .page-header p{

    color:var(--text-muted) !important;

}

/* ===== CARDS ===== */

body.dark-mode .checkin-card,
body.dark-mode .checkout-card,
body.dark-mode .visitor-card{

    background:var(--bg-surface) !important;

    color:var(--text-main) !important;

}

body.dark-mode .visitor-card label{

    color:var(--text-muted) !important;

}

body.dark-mode .visitor-card h6,
body.dark-mode .visitor-card p,
body.dark-mode .visitor-card h4{

    color:var(--text-main) !important;

}

body.dark-mode .visitor-photo{

    background:#111827 !important;

    border-color:#374151 !important;

}

/* ===== FORM ELEMENTS ===== */

body.dark-mode .form-label{

    color:var(--text-main) !important;

}

body.dark-mode .form-control,
body.dark-mode .form-select{

    background-color:#111827 !important;

    color:var(--text-main) !important;

    border-color:var(--border-color) !important;

}

body.dark-mode .form-control::placeholder{

    color:var(--text-muted) !important;

}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus{

    background-color:#111827 !important;

    color:var(--text-main) !important;

}

/* ===== PHOTO PREVIEW (checkin) ===== */

body.dark-mode .photo-preview{

    background:#111827 !important;

    border-color:#374151 !important;

    color:var(--text-muted) !important;

}

/* ===== MODALS ===== */

body.dark-mode .modal-content{

    background-color:var(--bg-surface) !important;

    color:var(--text-main) !important;

}

body.dark-mode .modal-title{

    color:var(--text-main) !important;

}

body.dark-mode .modal-body{

    color:var(--text-main) !important;

}

body.dark-mode .btn-close{

    filter:invert(1);

}

body.dark-mode .text-muted{

    color:var(--text-muted) !important;

}

/* ===== SUCCESS ICON BG (keep colorful, just adjust ring) ===== */

body.dark-mode .success-icon{

    background:#0f2f1e !important;

}

/* ===== THEME TOGGLE BUTTON (index navbar) ===== */

.theme-toggle-user{

    display:flex;

    align-items:center;

    justify-content:center;

    width:42px;

    height:42px;

    border-radius:50%;

    background:var(--bg-surface-2);

    color:var(--secondary);

    border:1px solid var(--border-color);

    font-size:18px;

    cursor:pointer;

    transition:.3s;

    margin-left:15px;

}

.theme-toggle-user:hover{

    background:var(--secondary);

    color:#fff;

    transform:scale(1.08);

}