/* ============================================================
   BECOOL CRM — style.css (განახლებული)
   ფონტი: Plus Jakarta Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700;1,800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.view-section { display: none; }
.view-section.active {
    display: block;
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 35, 0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 2rem 1rem;
}
.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.modal > div {
    box-shadow: 0 32px 64px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.12);
}

.input-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    color: #0f172a;
}
.input-card:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.input-card::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
select.input-card {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}
textarea.input-card {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.06em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-block;
}
.badge-active    { background: #dcfce7; color: #15803d; }
.badge-inactive  { background: #fee2e2; color: #dc2626; }
.badge-potential { background: #fef3c7; color: #b45309; }
.badge-passive   { background: #f1f5f9; color: #64748b; }
.badge-ppm       { background: #dbeafe; color: #1d4ed8; }
.badge-emergency { background: #fee2e2; color: #dc2626; }
.badge-corrective{ background: #fef3c7; color: #b45309; }

#modal-map {
    height: 350px;
    width: 100%;
    border-radius: 1.25rem;
    border: 3px solid white;
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
#live-map-container {
    height: 580px;
    width: 100%;
    border-radius: 2rem;
    border: 3px solid white;
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.marker-cluster-small { background-color: rgba(37,99,235,0.55); }
.marker-cluster-small div {
    background-color: rgba(37,99,235,0.88);
    color: white; font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
}
.marker-cluster-medium { background-color: rgba(30,58,138,0.55); }
.marker-cluster-medium div {
    background-color: rgba(30,58,138,0.88);
    color: white; font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
}

.branch-panel {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.leaflet-popup-content-wrapper {
    border-radius: 1rem !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip { display: none; }