/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* =====================
   LOGIN PAGE
===================== */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(bgmap.png);
    background-size: cover;
}

.login-box {
    background: white;
    width: 340px;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeUp 0.6s ease;
}

.login-box h2 {
    margin-bottom: 25px;
    color: #1e88e5;
    text-shadow: 1px 3px 6px rgb(16, 8, 136);
    letter-spacing: 2px ;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}

.login-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30,136,229,0.35);
}

.hint {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
}

/* =====================
   NAVBAR ENHANCED
===================== */
.navbar {
    height: 60px;
    padding: 0 25px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bolder;
    font-size: 20px;
}

.breadcrumb {
    font-size: 13px;
    opacity: 0.85;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-search {
    width: 260px;
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 13px;
}

.nav-search::placeholder {
    color: #999;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.logout-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* =====================
   MAP LAYOUT
===================== */
.map-section {
    display: flex;
    height: calc(100vh - 60px);
    background: #f2f5f9;
}

/* SIDEBAR */
.sidebar {
    width: 300px;
    padding: 25px;
    background: white;
    border-radius: 0 20px 20px 0;
    box-shadow: 8px 0 20px rgba(0,0,0,0.08);
}

.sidebar h3 {
    margin-bottom: 10px;
    color: #1e88e5;
}

.sidebar p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #fbfbfb;
}

.sidebar hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #eee;
}
.sidebar select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

.sidebar select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}

.info-box {
    background: #e20909;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
}
.school-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.school-list li {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #f7faff;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 14px;
    font-weight: bolder;
}

.school-list li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.school-list li.active {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    font-weight: 600;
}


/* MAP */
#map {
    flex: 1;
    border-radius: 20px;
    margin: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* =====================
   ANIMATION
===================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =====================
   LOADING TRANSITION
===================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.loading-screen.show {
    opacity: 1;
    pointer-events: all;
}

.loading-box {
    background: white;
    padding: 35px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: fadeUp 0.6s ease;
}

.loading-box h3 {
    margin-top: 15px;
    color: #1e88e5;
}

.loading-box p {
    font-size: 13px;
    color: #666;
}

/* SPINNER */
.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ANIMASI */
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* =====================
   LOGOUT MODAL
===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    padding: 30px 35px;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: fadeUp 0.4s ease;
}

.modal-box h3 {
    margin-bottom: 10px;
    color: #1e88e5;
}

.modal-box p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cancel:hover {
    background: #ccc;
}

.btn-logout {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #e53935, #ef5350);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    box-shadow: 0 10px 20px rgba(229,57,53,0.4);
}
/* LINK */
.hint a {
    color: #1e88e5;
    font-weight: 600;
    text-decoration: none;
}

.hint a:hover {
    text-decoration: underline;
}

/* REGISTER BOX */
.register-box {
    background: white;
    width: 380px;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeUp 0.6s ease;
}

.register-box h2 {
    margin-bottom: 25px;
    color: #1e88e5;
    letter-spacing: 1px;
}

.register-box input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
}

.register-box input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
}

.register-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.register-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30,136,229,0.35);
}
