/* =========================================================
   SATRIA BIRU - THEME
   Palet warna diambil dari identitas visual:
   Navy gelap + Biru cyan (utama), dengan warna aksen per-tahap
   ========================================================= */

:root {
    /* Warna dasar */
    --navy-dark:      #0a1f44;
    --navy:           #0d2b52;
    --navy-light:     #123a6b;
    --blue-primary:   #2563eb;
    --blue-cyan:      #38bdf8;
    --blue-soft:      #e8f2fd;

    /* Warna status / tahap (sesuai ikon di infografis) */
    --stage-1-red:    #dc2626;   /* Call 112/113 */
    --stage-2-blue:   #2563eb;   /* Buat Insiden */
    --stage-3-green:  #16a34a;   /* Verifikasi & Prioritas */
    --stage-4-orange: #ea580c;   /* Dispatch CAD */
    --stage-5-teal:   #0d9488;   /* Petugas Menuju Lokasi */
    --stage-6-navy:   #1e3a8a;   /* Padam & Laporan */

    --text-dark:      #0f172a;
    --text-muted:     #64748b;
    --bg-page:        #f4f7fb;
    --white:          #ffffff;
    --border:         #e2e8f0;

    --radius: 12px;
    --shadow: 0 4px 14px rgba(10, 31, 68, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', 'Poppins', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
}

/* ---------- Topbar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--navy-dark), var(--navy));
    color: var(--white);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}
.topbar .brand { font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.topbar .brand span { color: var(--blue-cyan); }

/* ---------- Sidebar ---------- */
.sidebar {
    background: var(--navy-dark);
    width: 250px;
    min-height: 100vh;
    color: var(--white);
    padding-top: 20px;
    flex-shrink: 0;
}
.sidebar-close { display: none; }
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14.5px;
    border-left: 4px solid transparent;
    transition: .2s;
}
.sidebar a:hover,
.sidebar a.active {
    background: var(--navy-light);
    color: var(--white);
    border-left: 4px solid var(--blue-cyan);
}

/* Menu nonaktif: fitur ada di sistem tapi role saat ini tidak diizinkan mengakses */
.sidebar .nav-disabled {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    color: #64748b;
    font-size: 14.5px;
    border-left: 4px solid transparent;
    cursor: not-allowed;
    opacity: .55;
    user-select: none;
}
.sidebar .nav-disabled small { font-size: 11px; opacity: .8; }

/* ---------- Layout ---------- */
.layout { display: flex; }
.content { flex: 1; padding: 24px; }

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--border);
}
.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ---------- Stat Cards (dashboard tahap 1-6) ---------- */
.stage-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.stage-card {
    border-radius: var(--radius);
    padding: 18px;
    color: var(--white);
    box-shadow: var(--shadow);
    flex: 1 1 170px;
    min-width: 150px;
}
.stage-arrow {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--blue-primary);
    font-weight: 700;
    opacity: .7;
}
.stage-card h3 { margin: 0 0 4px; font-size: 26px; }
.stage-card p  { margin: 0; font-size: 13px; opacity: .9; }
.stage-1 { background: linear-gradient(135deg, var(--stage-1-red), #f87171); }
.stage-2 { background: linear-gradient(135deg, var(--stage-2-blue), #60a5fa); }
.stage-3 { background: linear-gradient(135deg, var(--stage-3-green), #4ade80); }
.stage-4 { background: linear-gradient(135deg, var(--stage-4-orange), #fb923c); }
.stage-5 { background: linear-gradient(135deg, var(--stage-5-teal), #2dd4bf); }
.stage-6 { background: linear-gradient(135deg, var(--stage-6-navy), #3b82f6); }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: left; }
th { background: var(--navy-dark); color: var(--white); font-weight: 600; }
tr:hover { background: var(--blue-soft); }

/* ---------- Badge status ---------- */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: var(--white); }
.badge-red    { background: var(--stage-1-red); }
.badge-orange { background: var(--stage-4-orange); }
.badge-yellow { background: #eab308; }
.badge-blue   { background: var(--stage-2-blue); }
.badge-green  { background: var(--stage-3-green); }
.badge-purple { background: #7c3aed; }
.badge-gray   { background: #94a3b8; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}
.btn-primary { background: var(--blue-primary); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-danger  { background: var(--stage-1-red); color: var(--white); }
.btn-success { background: var(--stage-3-green); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--blue-primary); color: var(--blue-primary); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: var(--navy-dark); }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.form-control:focus { outline: none; border-color: var(--blue-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

/* ---------- Login Page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, var(--navy-light), var(--navy-dark));
}
.login-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    text-align: center;
}
.login-box h1 { color: var(--navy-dark); font-size: 22px; margin-bottom: 4px; }
.login-box p.subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }


/* ---------- SiApar Login ---------- */
.login-wrapper {
    background:
        radial-gradient(circle at 18% 12%, rgba(37,99,235,.22), transparent 34%),
        radial-gradient(circle at 85% 85%, rgba(14,165,233,.10), transparent 35%),
        linear-gradient(135deg, #0b2f66 0%, #0a2855 52%, #071f43 100%);
}
.login-box {
    width: 348px;
    max-width: calc(100vw - 32px);
    padding: 24px 28px 20px;
    border-radius: 13px;
    box-shadow: 0 18px 55px rgba(0,0,0,.30);
}
.login-siapar-logo {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 6px;
    object-fit: contain;
}
.login-box h1 {
    color: #0f2d5c;
    font-size: 0;
    margin: 0;
    height: 0;
}
.login-box p.subtitle {
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 18px;
}
.login-box p.subtitle span {
    display: inline-block;
    margin-top: 6px;
    font-weight: 500;
}
.login-box .btn-primary {
    background: #ef111c;
    box-shadow: 0 5px 12px rgba(239,17,28,.22);
}
.login-box .btn-primary:hover {
    background: #c90d16;
}

/* =========================================================
   RESPONSIF (Mobile / Tablet)
   ========================================================= */

/* Tabel yang lebar dibungkus supaya bisa discroll horizontal di HP,
   tanpa merusak layout body. Tambahkan <div class="table-scroll"> di
   sekeliling <table> pada halaman yang tabelnya banyak kolom. */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 900px) {
    .stage-arrow { display: none; }
    .stage-card { flex: 1 1 45%; }
}

@media (max-width: 768px) {
    /* Topbar: brand mengecil, tombol hamburger muncul */
    .topbar { padding: 12px 14px; }
    .topbar .brand { font-size: 15px; }
    .hamburger-btn { display: inline-block; }

    /* Sidebar jadi panel geser (off-canvas) dari kiri, disembunyikan default */
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 78%;
        max-width: 280px;
        box-shadow: 4px 0 20px rgba(0,0,0,.3);
    }
    .sidebar.show { transform: translateX(0); }
    .sidebar-close {
        display: block;
        margin-left: auto;
        margin-right: 14px;
        background: none;
        border: none;
        color: var(--white);
        font-size: 26px;
        cursor: pointer;
    }
    /* Lapisan gelap di belakang sidebar saat terbuka */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10,31,68,.5);
        z-index: 999;
    }
    .sidebar-overlay.show { display: block; }

    .content { padding: 14px; width: 100%; }
    .stage-grid { gap: 10px; }
    .stage-card { padding: 14px; flex: 1 1 45%; }
    .stage-card h3 { font-size: 20px; }

    /* Form 2-3 kolom otomatis jadi 1 kolom di HP */
    .content > .card > div[style*="display:flex"] { flex-direction: column; }

    table { font-size: 12.5px; }
    th, td { padding: 8px; }

    .login-box { width: 90%; padding: 26px; }
}

@media (max-width: 480px) {
    .stage-card { flex: 1 1 100%; }
    .topbar .brand { font-size: 13px; }
}

/* =========================================================
   NOTIFIKASI PANGGILAN MASUK (Bel)
   ========================================================= */
.notif-bell {
    position: relative;
    background: rgba(255,255,255,.08);
    border: none;
    color: var(--white);
    font-size: 19px;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: .2s;
}
.notif-bell:hover { background: rgba(255,255,255,.16); }
.notif-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--stage-1-red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--navy-dark);
}
@keyframes notifShake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(13deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(5deg); }
}
.notif-shake { animation: notifShake .6s ease; }

.notif-panel {
    display: none;
    position: absolute;
    top: 48px; right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
    z-index: 1500;
    color: var(--text-dark);
}
.notif-panel.show { display: block; }
.notif-panel-head {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--navy-dark);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--white);
}
.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}
.notif-item:hover { background: var(--blue-soft); }
.notif-item-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}
.notif-item-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.notif-item-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 11px; color: #94a3b8; margin-top: 3px; }

@media (max-width: 480px) {
    .notif-panel { width: 88vw; right: -60px; }
}

/* ---------- Peta Live Tracking (modul petugas/tracking) ---------- */
.peta-live-box {
    height: 280px;
    width: 100%;
    position: relative;
}
.peta-live-warning {
    position: absolute;
    top: 8px; left: 8px; right: 8px;
    z-index: 1000;
    background: #fef2f2;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    border: 1px solid #fecaca;
}

/* ---------- Marker Kedap-Kedip untuk Titik Insiden (Leaflet divIcon) ---------- */
.pulse-marker-wrap { position: relative; width: 22px; height: 22px; }
.pulse-marker-wrap .pulse-dot {
    position: absolute; top: 5px; left: 5px;
    width: 12px; height: 12px;
    background: #dc2626;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 2;
    animation: pulseDotBlink 1s ease-in-out infinite;
}
.pulse-marker-wrap .pulse-ring {
    position: absolute; top: 0; left: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(220,38,38,.45);
    z-index: 1;
    animation: pulseRingExpand 1.4s ease-out infinite;
}
@keyframes pulseDotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}
@keyframes pulseRingExpand {
    0%   { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Kartu tahap yang relevan dengan role yang sedang login -> kedap-kedip */
@keyframes stageCardBlink {
    0%, 100% { box-shadow: 0 4px 14px rgba(10,31,68,.08), 0 0 0 0 rgba(255,255,255,.6); transform: scale(1); }
    50%      { box-shadow: 0 4px 14px rgba(10,31,68,.08), 0 0 0 6px rgba(255,255,255,0); transform: scale(1.03); }
}
.stage-highlight {
    animation: stageCardBlink 1.2s ease-in-out infinite;
    outline: 3px solid rgba(255,255,255,.9);
    outline-offset: -3px;
}

/* ---------- Pagination (Kelola User, dsb) ---------- */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.pagination-info { font-size: 12.5px; color: var(--text-muted); }
.pagination-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .15s;
}
.page-btn:hover { background: var(--blue-soft); border-color: var(--blue-primary); }
.page-btn.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

@media (max-width: 480px) {
    .pagination { flex-direction: column; align-items: stretch; }
    .pagination-links { justify-content: center; }
}

/* Notifikasi insiden terverifikasi Danton/Danru */
.notif-insiden-bell{box-shadow:0 0 0 1px rgba(248,113,113,.35);}
.notif-insiden-bell.notif-alarm-active{background:rgba(220,38,38,.28);box-shadow:0 0 0 3px rgba(248,113,113,.20),0 0 18px rgba(239,68,68,.55);}
.notif-insiden-bell.notif-audio-ready::after{content:'🔊';position:absolute;right:-7px;bottom:-5px;font-size:10px;background:#16a34a;border:2px solid var(--navy-dark);border-radius:50%;width:17px;height:17px;display:flex;align-items:center;justify-content:center;}
.notif-insiden-bell .notif-badge{animation:badgePulse 1.2s infinite;}
@keyframes badgePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}

/* =========================================================
   RESPONSIVE HARDENING + ALARM MOBILE
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
img, video, iframe { max-width: 100%; }
.content { min-width: 0; }
.card { max-width: 100%; }
.notif-empty { padding:16px; text-align:center; color:#94a3b8; font-size:13px; }
.incident-audio-enable { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:3000; border:0; border-radius:999px; padding:14px 20px; background:#dc2626; color:#fff; font-weight:800; box-shadow:0 10px 30px rgba(220,38,38,.35); }
.incident-emergency-active::after { content:'🚨 INSIDEN BARU'; position:fixed; top:0; left:0; right:0; z-index:2500; text-align:center; background:#dc2626; color:#fff; padding:8px; font-size:12px; font-weight:800; animation:incidentFlash 1s infinite; pointer-events:none; }
@keyframes incidentFlash { 50% { opacity:.55; } }
@media (max-width:768px){
  body { overflow-x:hidden; }
  .topbar { gap:8px; align-items:flex-start; }
  .topbar > div { min-width:0; }
  .topbar .brand { line-height:1.25; max-width:46vw; white-space:normal; }
  .topbar img { width:28px !important; }
  .topbar span:not(.notif-badge) { font-size:12px; }
  .topbar a { font-size:12px; }
  .notif-panel { position:fixed !important; top:58px !important; right:10px !important; left:10px !important; width:auto !important; max-height:65vh; overflow:auto; z-index:2000; }
  .content { padding:12px; }
  .card { padding:14px; border-radius:10px; }
  .btn { min-height:42px; }
  input,select,textarea,.form-control { max-width:100%; font-size:16px; }
  form[style*="display:flex"], .card form[style*="display:flex"] { align-items:stretch !important; }
  form[style*="display:flex"] > input:not([type=hidden]), form[style*="display:flex"] > select, form[style*="display:flex"] > textarea, form[style*="display:flex"] > button { width:100% !important; }
  .table-scroll table { min-width:640px; }
  .sidebar { min-height:100dvh; overflow-y:auto; }
}
@media (max-width:480px){
  .topbar { padding:9px 10px; }
  .topbar .brand { font-size:11px; max-width:42vw; }
  .notif-bell { width:34px; height:34px; font-size:17px; }
  .card-title { font-size:13px; }
  th,td { font-size:12px; }
}


/* =========================================================
   MOBILE FINAL - SATRIA BIRU
   Satu viewport, tanpa layout desktop yang terpotong.
   ========================================================= */
html, body { width:100%; max-width:100%; min-height:100%; margin:0; overflow-x:hidden; }
.layout { width:100%; max-width:100%; min-width:0; }
.content { width:100%; max-width:100%; min-width:0; }
.topbar-left, .topbar-actions { display:flex; align-items:center; min-width:0; }
.topbar-left { gap:10px; flex:1 1 auto; }
.topbar-actions { gap:8px; flex:0 1 auto; justify-content:flex-end; }
.topbar .brand { min-width:0; }
.user-session { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; }
.logout-link { color:#fca5a5 !important; text-decoration:none; font-weight:700; white-space:nowrap; }

@media (max-width: 768px) {
  .topbar { width:100%; max-width:100%; min-width:0; padding:8px 10px; gap:6px; align-items:center; }
  .topbar-left { flex:1 1 auto; min-width:0; gap:5px; }
  .topbar-actions { flex:0 1 auto; min-width:0; gap:4px; }
  .topbar .brand { font-size:12px; line-height:1.15; letter-spacing:0; max-width:30vw; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .topbar-left img { width:26px !important; flex:0 0 auto; }
  .hamburger-btn { flex:0 0 auto; padding:2px 5px; font-size:23px; }
  .notif-bell { width:34px; height:34px; min-width:34px; font-size:16px; }
  .user-session { display:none; }
  .logout-link { font-size:0; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.08); display:inline-flex; align-items:center; justify-content:center; }
  .logout-link::before { content:'↪'; font-size:20px; color:#fca5a5; }

  .layout { display:block; width:100%; }
  .content { display:block; width:100%; padding:10px; }
  .card { width:100%; max-width:100%; padding:12px; margin:0 0 12px; }
  .stage-grid { display:grid; grid-template-columns:1fr; width:100%; gap:10px; margin-bottom:14px; }
  .stage-card { width:100%; min-width:0; min-height:88px; padding:14px; }
  .stage-card h3 { font-size:22px; }
  .stage-card p { font-size:13px; overflow-wrap:anywhere; }
  .stage-arrow { display:none !important; }
  .table-scroll { width:100%; max-width:100%; overflow-x:auto; }
  .table-scroll table { min-width:600px; }
  table { max-width:none; }
  footer { width:100%; max-width:100%; padding:14px 12px !important; overflow-wrap:anywhere; }
  .login-wrapper { width:100%; padding:16px; align-items:flex-start; padding-top:8vh; }
  .login-box { width:100%; max-width:420px; padding:24px 18px; }
  .sidebar { width:min(84vw,300px); max-width:84vw; }

  /* Paksa grup form yang memakai inline flex menjadi satu kolom di HP. */
  .content [style*="display:flex"] { max-width:100%; }
  .content [style*="min-width:260px"], .content [style*="min-width:320px"],
  .content [style*="min-width:220px"], .content [style*="min-width:150px"] { min-width:0 !important; }
}

@media (max-width: 430px) {
  .topbar .brand { display:none; }
  .topbar-left { flex:0 0 auto; }
  .topbar-actions { margin-left:auto; }
  .topbar-left img { width:24px !important; }
  .notif-bell { width:32px; height:32px; min-width:32px; font-size:15px; }
  .logout-link { width:32px; height:32px; }
  .content { padding:8px; }
  .card { padding:10px; }
  .stage-card { min-height:80px; padding:12px; }
  .card-title { font-size:12.5px; }
}

/* Alarm insiden bergaya panggilan masuk */
#incidentIncomingCall{position:fixed;inset:0;background:rgba(3,7,18,.78);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:100000;animation:incidentFlash 1s infinite alternate}
.incident-call-card{width:min(430px,100%);background:#fff;border-radius:28px;padding:30px 24px;text-align:center;box-shadow:0 25px 80px #0008;border:4px solid #dc2626}
.incident-call-icon{font-size:62px;animation:incidentRing .65s infinite alternate}.incident-call-kicker{font-size:12px;font-weight:900;letter-spacing:2px;color:#dc2626;margin-top:5px}.incident-call-title{font-size:26px;font-weight:900;margin:8px 0}.incident-call-address{font-size:15px;color:#475569;line-height:1.5}.incident-call-priority{display:inline-block;margin:14px 0;padding:7px 12px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:12px;font-weight:900}.incident-call-card button{width:100%;border:0;border-radius:16px;padding:15px;background:#dc2626;color:#fff;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 8px 20px #dc262655}
@keyframes incidentRing{to{transform:scale(1.12) rotate(8deg)}}@keyframes incidentFlash{to{box-shadow:inset 0 0 0 5px #ef444488}}

/* === SATRIA BIRU EMERGENCY ALERT SYSTEM === */
#incidentIncomingCall{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(circle at center,#ef4444 0,#991b1b 42%,#3b0a0a 100%);animation:incidentFlash 1s infinite alternate}
@keyframes incidentFlash{from{filter:brightness(.88)}to{filter:brightness(1.12)}}
.incident-call-card{width:min(520px,100%);border-radius:28px;padding:28px 22px;text-align:center;color:#fff;background:rgba(15,23,42,.94);box-shadow:0 24px 80px rgba(0,0,0,.55);border:2px solid rgba(255,255,255,.22)}
.incident-call-pulse{font-size:64px;line-height:1;margin-bottom:12px;animation:incidentPulse .9s infinite alternate}@keyframes incidentPulse{to{transform:scale(1.12);filter:drop-shadow(0 0 20px #f87171)}}
.incident-call-kicker{font-size:12px;letter-spacing:2px;font-weight:900;color:#fecaca}.incident-call-title{font-size:30px;font-weight:900;margin:10px 0}.incident-call-address{font-size:16px;line-height:1.5;color:#e2e8f0}.incident-call-priority{display:inline-block;margin:14px 0 20px;padding:8px 14px;border-radius:999px;background:#dc2626;font-weight:900}
.incident-call-actions{display:grid;gap:10px}.incident-call-actions button,.incident-location{min-height:56px;border:0;border-radius:16px;font-weight:900;font-size:15px;cursor:pointer}.incident-answer{background:#22c55e;color:#052e16}.incident-travel{background:#f59e0b;color:#451a03}.incident-handle{background:#38bdf8;color:#082f49}.incident-location{width:100%;margin-top:10px;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}
.incident-audio-enable{position:fixed;z-index:100000;left:50%;bottom:24px;transform:translateX(-50%);padding:15px 20px;border-radius:999px;border:0;background:#fff;color:#991b1b;font-weight:900;box-shadow:0 8px 30px rgba(0,0,0,.3)}
@media(max-width:600px){#incidentIncomingCall{padding:12px}.incident-call-card{padding:24px 16px;border-radius:22px}.incident-call-title{font-size:24px}.incident-call-actions button,.incident-location{min-height:58px;font-size:14px}}
