:root {
    --primary: #ff4757; 
    --secondary: #00d2ff; 
    --dark: #0f172a;
    --success: #2ecc71; 
    --warning: #ffa502; 
    --glass: rgba(30, 41, 59, 0.95);
    --police: #3498db; 
    --fire: #e67e22; 
    --hospital: #9b59b6;
    --text: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
}

body { 
    margin: 0; 
    font-family: 'Inter', sans-serif; 
    background: var(--dark); 
    color: var(--text); 
    height: 100vh; 
    overflow: hidden; 
}

.hidden { display: none !important; }

/* --- Auth Section --- */
#authSection {
    position: fixed; inset: 0; z-index: 1000;
    background: radial-gradient(circle at center, #1e293b, #050a14);
    display: flex; align-items: center; justify-content: center;
}

.auth-logo {
    position: absolute;
    width: 250px; 
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.5s ease;
    opacity: 0.8;
}
.logo-left { right: calc(50% + 350px); }
.logo-right { left: calc(50% + 350px); }

@media (max-width: 1100px) { .auth-logo { width: 150px; } .logo-left { right: calc(50% + 250px); } .logo-right { left: calc(50% + 250px); } }
@media (max-width: 900px) { .auth-logo { display: none; } }

.auth-card {
    background: var(--glass); 
    backdrop-filter: blur(20px);
    padding: 35px; 
    border-radius: 25px; 
    border: 1px solid var(--border);
    width: 400px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1001;
}

/* --- Form Elemanları --- */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

input {
    width: 100%; 
    padding: 14px; 
    border-radius: 12px;
    border: 1px solid #334155; 
    background: #0f172a; 
    color: white; 
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus { 
    border-color: var(--secondary); 
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

#c_user { padding-right: 45px !important; } /* Göz ikonu alanı */

.toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.5;
    font-size: 18px;
    transition: 0.2s;
    user-select: none;
}
.toggle-icon:hover { opacity: 1; color: var(--secondary); }

/* --- Butonlar --- */
.btn {
    width: 100%; 
    padding: 14px; 
    border-radius: 12px; 
    border: none;
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.btn-main { background: var(--primary); color: white; }
.btn-auth { background: var(--secondary); color: var(--dark); }
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); }

/* --- Modal & Bilgi Alanı --- */
#contractModal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.9); 
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1e293b; 
    padding: 30px; 
    border-radius: 20px; 
    width: 480px;
    max-width: 90vw;
    max-height: 85vh; 
    border: 1px solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Scrollbar Style */
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }

/* Daha Fazla Bilgi Linki */
.info-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: var(--secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}
.info-link:hover { opacity: 1; text-decoration: underline; }

/* --- Uygulama Arayüzü --- */
.layout { display: grid; grid-template-columns: 350px 1fr; height: 100vh; }

.sidebar { 
    padding: 25px; 
    background: #0f172a; 
    border-right: 1px solid #1e293b; 
    overflow-y: auto; 
    position: relative; 
}

#map { background: #000; width: 100%; height: 100%; }

.tab-btn { 
    flex: 1; padding: 12px; background: none; border: none; 
    color: #64748b; cursor: pointer; transition: 0.3s;
    border-bottom: 2px solid transparent;
}
.tab-btn.active { 
    color: var(--secondary); border-bottom: 2px solid var(--secondary); font-weight: bold; 
}

/* --- Analiz Kutuları --- */
.analysis-box {
    background: rgba(255,255,255,0.03);
    padding: 15px; border-radius: 12px; margin-top: 15px;
    font-size: 13px; border-left: 3px solid var(--secondary);
}
.analysis-box b { color: var(--secondary); display: block; margin-bottom: 5px; }

/* --- Animasyonlar --- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.ring-marker {
    display: flex; align-items: center; justify-content: center;
}