@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@400;600&display=swap');

:root {
    --primary: #22c55e;
    --danger: #ef4444;
    --bg: #020617;
    --surface: #020617;
    --accent: #3b82f6;
    --text: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #000;
    color: var(--text); 
    height: 100dvh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.app-container { 
    display: flex; flex-direction: column; width: 100%; max-width: 480px; height: 100%;
    background: #020617; position: relative;
}

/* HEADER */
.header { padding: 15px; display: flex; justify-content: space-between; align-items: center; z-index: 1002; background: rgba(2, 6, 23, 0.9); }
.brand { display: flex; align-items: center; gap: 8px; }
.logo-svg { width: 30px; height: 30px; fill: var(--primary); }
.brand-title { font-family: 'Orbitron'; font-size: 0.8rem; letter-spacing: 1px; }

.status-pill { padding: 5px 10px; border-radius: 20px; background: #0b1120; border: 1px solid #1e293b; display: flex; align-items: center; gap: 5px; font-family: 'Orbitron'; font-size: 0.6rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.status-dot.online { background: #22c55e; box-shadow: 0 0 10px var(--primary); }

/* KANALLAR */
.room-section { padding: 10px 15px; z-index: 1002; background: rgba(2, 6, 23, 0.8); }
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 5px; }
.room-btn { padding: 10px 5px; background: #0b1120; border: 1px solid #1e293b; border-radius: 10px; color: #64748b; font-family: 'Orbitron'; font-size: 0.6rem; cursor: pointer; transition: 0.2s; }
.room-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(34,197,94,0.1); }

/* DISPLAY & RADAR */
.display { flex: 1; position: relative; overflow: hidden; background: #000; border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; }
#map { width: 100%; height: 100%; filter: grayscale(1) invert(1) brightness(0.4); opacity: 0.6; transition: all 0.5s ease; }

.radar-toggle-btn {
    position: absolute; top: 15px; right: 15px; z-index: 1001;
    background: rgba(15, 23, 42, 0.9); border: 1px solid var(--primary); color: var(--primary);
    padding: 8px 12px; border-radius: 8px; font-family: 'Orbitron'; font-size: 0.6rem;
    display: flex; align-items: center; gap: 6px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: all 0.3s ease;
}
.radar-toggle-btn:hover { background: var(--primary); color: #000; }

.status-ring { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 200px; height: 200px; border-radius: 50%; border: 4px solid rgba(59, 130, 246, 0.3);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(2, 6, 23, 0.75); backdrop-filter: blur(4px); text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.transmitting-ring { border-color: var(--danger); box-shadow: 0 0 30px rgba(239,68,68,0.4); }
.receiving-ring { border-color: var(--accent); box-shadow: 0 0 30px rgba(59,130,246,0.4); }

.main-status { font-family: 'Orbitron'; font-size: 1rem; color: #fff; margin: 5px 0; }
.room-label { font-family: 'Orbitron'; color: #64748b; letter-spacing: 1px; }

/* BOTTOM PANEL */
.bottom-section { padding: 30px 20px; background: rgba(2, 6, 23, 0.95); display: flex; flex-direction: column; align-items: center; z-index: 1002; }
.ptt-btn { 
    width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(145deg, #22c55e, #16a34a);
    border: 6px solid #020617; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6); touch-action: none; transition: 0.2s;
}
.ptt-btn:active { background: var(--danger); transform: scale(0.95); }
.ptt-icon { width: 50px; height: 50px; fill: #020617; }
.footer-text { margin-top: 15px; font-family: 'Orbitron'; font-size: 0.6rem; color: #475569; letter-spacing: 1px; }

/* DRIVER MARKER LABELS */
.driver-label {
    background: var(--primary) !important;
    color: #000 !important;
    border: none !important;
    font-family: 'Orbitron';
    font-size: 0.6rem !important;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 5px;
}
.leaflet-control-attribution { display: none !important; }