/* ===== RESET & VARIABEL ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gradient-1: linear-gradient(145deg, #0b3b5c, #1f6e9e, #f18f01);
    --gradient-2: linear-gradient(135deg, #f3f7fc, #e1eef9);
    --primary-blue: #0b3b5c;
    --accent-orange: #f18f01;
    --text-dark: #1a2a3a;
    --text-light: #5e6f8d;
    --card-bg: rgba(255, 255, 255, 0.8);
    --shadow: 0 20px 35px -10px rgba(0, 50, 80, 0.2);
    --font-main: 'Inter', system-ui, sans-serif;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at 20% 30%, #c7e2f2, #ecf5fc);
    color: var(--text-dark);
    line-height: 1.5;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}
@media (max-width: 768px) {
    #particle-canvas { display: none; }
}

.login-overlay, .main-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ===== OVERLAY LOGIN ===== */
.login-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 20, 40, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.login-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    max-width: 720px;
    width: 100%;
    border-radius: clamp(32px, 8vw, 64px);
    padding: clamp(24px, 6vw, 40px);
    text-align: center;
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5) inset, 0 0 0 4px rgba(241, 143, 1, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: modalFloat 6s infinite alternate ease-in-out;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-modal::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 30% 40%, rgba(241, 143, 1, 0.15), transparent 60%);
    z-index: -1;
    animation: rotateSlow 20s infinite linear;
}
@keyframes modalFloat {
    0% { transform: translateY(0); box-shadow: 0 40px 70px -15px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.5) inset, 0 0 0 4px rgba(241,143,1,0.2); }
    100% { transform: translateY(-8px); box-shadow: 0 50px 80px -10px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.7) inset, 0 0 0 6px rgba(241,143,1,0.4); }
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.login-modal .logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.login-modal img {
    max-height: 90px;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 16px rgba(0, 40, 60, 0.3));
}
.login-modal h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(145deg, #0b3b5c, #f18f01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}
.login-modal h2 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}
.login-modal p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 500;
    word-break: break-word;
    max-width: 90%;
}
.btn-login {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    box-shadow: 0 10px 25px -5px #b35f00, 0 0 0 2px rgba(255,215,150,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    white-space: nowrap;
}
.btn-login::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(25deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { left: -20%; }
    20% { left: 120%; }
    100% { left: 120%; }
}
.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 30px -5px #b35f00, 0 0 0 3px rgba(255,215,150,0.9);
}

/* ===== KONTEN UTAMA ===== */
.notification-desktop {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 20px 30px -10px rgba(241,143,1,0.3);
    border: 1px solid rgba(255,180,80,0.5);
    animation: slideDownFade 0.6s ease;
}
@keyframes slideDownFade {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification-text {
    font-size: 0.95rem;
    word-break: break-word;
}
.notification-text strong {
    color: var(--primary-blue);
}
.close-notification {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: 0.2s;
    line-height: 1;
}
.close-notification:hover {
    background: #eef2f6;
    color: var(--accent-orange);
}

.header {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    padding: 18px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.9);
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.header-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 240px;
}
.logo-img {
    max-height: 70px;
    width: auto;
    filter: drop-shadow(0 6px 12px rgba(0,40,60,0.2));
    transition: transform 0.2s;
}
.logo-img:hover {
    transform: scale(1.02);
}
.logo-text h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(145deg, #0b3b5c, #1f6e9e, #f18f01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.logo-text p {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}
.date-time {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 60px;
    font-weight: 600;
    color: var(--primary-blue);
    border: 1px solid rgba(203,221,238,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: 0 0 auto;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-refresh, .btn-home, .btn-backup, .btn-restore {
    background: white;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 8px -4px rgba(0,0,0,0.1);
}
.btn-refresh {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}
.btn-refresh:hover {
    background: var(--accent-orange);
    color: white;
}
.btn-home:hover {
    background: var(--primary-blue);
    color: white;
}
.btn-backup {
    border-color: #27ae60;
    color: #27ae60;
}
.btn-backup:hover {
    background: #27ae60;
    color: white;
}
.btn-restore {
    border-color: #e67e22;
    color: #e67e22;
}
.btn-restore:hover {
    background: #e67e22;
    color: white;
}

#audioPlayerContainer {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-radius: 100px;
    padding: 12px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(241,143,1,0.5);
    flex-wrap: wrap;
}
.audio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-blue);
}
.audio-title i {
    color: var(--accent-orange);
    margin-right: 6px;
}
.close-btn button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
    padding: 2px 6px;
}
.close-btn button:hover {
    color: var(--accent-orange);
}
#audioPlayer {
    flex: 1;
    min-width: 200px;
    height: 40px;
    border-radius: 60px;
    outline: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 20px 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.8);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    animation: cardFadeIn 0.8s ease;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-card:hover {
    box-shadow: 0 30px 45px -15px rgba(241,143,1,0.5);
    transform: translateY(-6px) scale(1.01);
    background: rgba(255,255,255,0.9);
}
.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    justify-content: center; /* center header */
}
.stat-header i {
    font-size: 1.8rem;
    color: var(--accent-orange);
}
.stat-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}
.stat-value {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(145deg, #0b3b5c, #1f6e9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1.1;
    text-align: center; /* center value */
}
.stat-value .unit {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
    background: none;
}
.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    text-align: left; /* keep labels left */
}
.stat-label i {
    color: var(--accent-orange);
    width: 16px;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 12px;
    font-size: 0.85rem;
}
.btn-outline:hover {
    background: #e3f0fa;
}

.tips-section, .edu-section, .insight-section, .agenda-section, .map-section {
    margin: 40px 0;
    background: rgba(255, 245, 235, 0.4);
    backdrop-filter: blur(8px);
    border-radius: clamp(30px, 6vw, 60px);
    padding: clamp(20px, 5vw, 36px) clamp(16px, 4vw, 28px);
    border: 1px solid rgba(241,143,1,0.3);
}
.section-header {
    text-align: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    font-weight: 700;
    background: linear-gradient(145deg, #0b3b5c, #f18f01);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    word-break: break-word;
}
.section-subtitle {
    font-size: clamp(0.85rem, 3vw, 1.1rem);
    color: var(--text-light);
}
.tips-grid, .edu-grid, .insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.tip-card, .edu-card, .insight-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-radius: 36px;
    padding: 24px 20px;
    border: 1px solid rgba(241,143,1,0.3);
    box-shadow: 0 20px 30px -15px rgba(241,143,1,0.2);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}
.tip-card:hover, .edu-card:hover, .insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 45px -15px rgba(241,143,1,0.5);
    background: rgba(255,255,255,0.9);
}
.tip-icon-wrapper {
    background: rgba(241,143,1,0.1);
    width: 70px; height: 70px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px dashed var(--accent-orange);
}
.tip-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--accent-orange);
}
.tip-card h3, .edu-card h3, .insight-card h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    border-bottom: 3px solid var(--accent-orange);
    padding-bottom: 10px;
    text-align: center;
}
.tip-list, .edu-list, .insight-list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}
.tip-list li, .edu-list li, .insight-list li {
    margin: 12px 0;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.tip-list i, .edu-list i, .insight-list i {
    color: var(--accent-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.edu-card h3 i {
    color: var(--accent-orange);
}

/* Agenda */
.agenda-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.agenda-form, .agenda-list {
    background: rgba(255,255,255,0.9);
    border-radius: 36px;
    padding: 24px;
}
.agenda-form h3, .agenda-list h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(11,59,92,0.2);
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background: white;
    transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}
.btn-agenda {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    font-size: 1rem;
}
.btn-agenda:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px var(--primary-blue);
}
#cancelEditBtn {
    background: #6c757d;
    width: auto;
    flex: 1;
}
.agenda-item {
    background: white;
    border-radius: 30px;
    padding: 14px 18px;
    margin-bottom: 16px;
    border-left: 8px solid var(--accent-orange);
    box-shadow: 0 5px 15px -5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    word-break: break-word;
    gap: 10px;
}
.agenda-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px -8px var(--accent-orange);
}
.agenda-info {
    flex: 1;
}
.agenda-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.agenda-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 4px;
}
.agenda-info small {
    display: block;
    color: var(--accent-orange);
    font-weight: 600;
    margin-top: 6px;
    font-size: 0.8rem;
}
.agenda-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.delete-agenda, .edit-agenda {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: 0.2s;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.delete-agenda {
    color: #ff6b6b;
}
.delete-agenda:hover {
    background: #ffeeee;
    color: red;
}
.edit-agenda {
    color: var(--primary-blue);
}
.edit-agenda:hover {
    background: #e3f0fa;
    color: var(--accent-orange);
}

/* Peta */
.map-container {
    height: 500px;
    max-height: 70vh;
    border-radius: 36px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow);
    margin-top: 30px;
}
#map {
    height: 100%; width: 100%;
}
.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
}
.map-controls input {
    padding: 8px 12px;
    border-radius: 40px;
    border: 2px solid rgba(11,59,92,0.2);
    font-size: 0.85rem;
    width: clamp(120px, 18vw, 180px);
    min-width: 100px;
}
.map-controls button {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.map-controls button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px -5px var(--primary-blue);
}
.btn-map-danger { background: #e74c3c !important; }
.btn-map-danger:hover { background: #c0392b !important; }
.btn-map-success { background: #27ae60 !important; }
.btn-map-success:hover { background: #2ecc71 !important; }
.btn-map-warning { background: #f39c12 !important; }
.btn-map-warning:hover { background: #e67e22 !important; }
.route-info {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 14px 20px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue);
    border: 2px solid var(--accent-orange);
    display: none;
    font-size: 0.9rem;
}
.route-info.show { display: block; }

.card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: clamp(20px, 5vw, 32px);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.card-header h3 {
    font-weight: 700;
    color: var(--text-dark);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge {
    background: linear-gradient(145deg, #fbc490, #f18f01);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.85rem;
}
.iframe-container {
    height: 600px;
    max-height: 70vh;
    border-radius: 36px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 20px 30px -12px rgba(0,40,70,0.3);
}
.iframe-container iframe {
    width: 100%; height: 100%;
    border: none;
}
.btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 16px -6px var(--primary-blue);
    font-size: 0.95rem;
}
.footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
    border-top: 2px solid rgba(255,255,255,0.6);
    padding-top: 28px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border-radius: 60px;
    padding: 24px 16px;
    font-size: 0.85rem;
}

.floating-notification {
    position: fixed;
    bottom: 30px; right: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 20px 24px;
    max-width: 380px;
    width: calc(100% - 60px);
    box-shadow: 0 30px 50px -15px rgba(0,0,0,0.3), 0 0 0 1px rgba(241,143,1,0.3);
    border-left: 8px solid var(--accent-orange);
    z-index: 10000;
    animation: slideInRight 0.5s ease;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
.floating-notification .notif-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.floating-notification .notif-header i {
    font-size: 1.8rem;
    color: var(--accent-orange);
}
.floating-notification .notif-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}
.floating-notification p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}
.notif-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.notif-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.notif-btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 10px -3px var(--accent-orange);
}
.notif-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 18px -5px var(--accent-orange);
}
.notif-btn-secondary {
    background: #eef2f6;
    color: var(--text-dark);
    border: 1px solid var(--text-light);
}
.notif-btn-secondary:hover {
    background: #e1e6ec;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 900px) {
    .header-top { flex-direction: column; align-items: stretch; }
    .logo-container { justify-content: center; text-align: center; flex-direction: column; min-width: auto; }
    .logo-text h1 { font-size: 2rem; }
    .date-time { justify-content: center; width: 100%; white-space: normal; word-break: keep-all; }
    .header-bottom .header-actions { justify-content: center; }
}

/* Pastikan menu header selalu 2 baris pada layar kecil */
@media (max-width: 900px) {
    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }
    .btn-refresh, .btn-home, .btn-backup, .btn-restore {
        padding: 8px 12px;
        font-size: 0.85rem;
        justify-content: center;
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 600px) {
    body { padding: 8px; }
    .login-modal { padding: 30px 20px; }
    .login-modal h2 { font-size: 1.5rem; }
    .login-modal img { height: 60px; }
    .header { border-radius: 40px; padding: 15px; }
    .logo-text h1 { font-size: 1.6rem; }
    .logo-img { max-height: 50px; }
    .date-time { font-size: 0.8rem; padding: 6px 12px; }
    .btn-refresh, .btn-home, .btn-backup, .btn-restore {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .stat-card { padding: 16px; }
    .stat-header i { font-size: 1.5rem; }
    .stat-header h4 { font-size: 0.95rem; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: 0.8rem; }
    .tips-section, .edu-section, .insight-section, .agenda-section, .map-section { padding: 20px 12px; border-radius: 30px; }
    .tip-card, .edu-card, .insight-card { padding: 18px; }
    .agenda-form, .agenda-list { padding: 18px; }
    .agenda-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .agenda-actions { align-self: flex-end; }
    .map-container { height: 350px; }
    .iframe-container { height: 400px; }
    .footer { font-size: 0.75rem; }
    .floating-notification { left: 20px; right: 20px; width: auto; max-width: none; }
}

@media (max-width: 480px) {
    .login-modal { padding: 20px 15px; }
    .login-modal h1 { font-size: 2rem; }
    .login-modal h2 { font-size: 1.3rem; }
    .login-modal p { font-size: 0.85rem; }
    .btn-login { min-width: 120px; padding: 10px 16px; }
    .btn-refresh, .btn-home, .btn-backup, .btn-restore {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .tips-grid, .edu-grid, .insight-grid { grid-template-columns: 1fr; }
    .map-controls { flex-direction: column; align-items: stretch; }
    .map-controls input { width: 100%; }
    .map-controls button { width: 100%; justify-content: center; }
    .map-container { height: 300px; }
    .iframe-container { height: 300px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .badge { align-self: flex-start; }
}

@media (max-width: 360px) {
    .btn-refresh, .btn-home, .btn-backup, .btn-restore {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
}

button, .btn-login, .btn-agenda, .map-controls button, .notif-btn {
    touch-action: manipulation;
}
p, h1, h2, h3, h4, li, .stat-value {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Styling tambahan untuk kredensial BMKG - diperbaiki agar vertikal dan rata tengah */
.bmkg-credentials {
    background: linear-gradient(145deg, #f0f9ff, #e1f0fa);
    border: 2px solid var(--accent-orange);
    border-radius: 50px;
    padding: 16px 20px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 8px 16px -6px rgba(241,143,1,0.3);
    font-size: 0.95rem;
    text-align: center;
}
.bmkg-credentials i {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.bmkg-credentials .credential-line {
    display: block;
    font-weight: 600;
    background: #0b3b5c;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    margin: 2px 0;
    width: 100%;
}
.bmkg-credentials code {
    background: #0b3b5c;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin: 2px 0;
}
