/* FIX LOGIN */
.login-body {
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
}

/* CONTENEDOR LOGIN */
.login-container {
    background:white;
    padding:30px;
    border-radius:15px;
    width:320px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* INPUTS */
.login-container input {
    width:100%;
    padding:10px;
    margin:10px 0;
    border-radius:8px;
    border:1px solid #ccc;
}

/* BOTÓN */
.login-container button {
    background:#2e7d32;
    color:white;
    padding:10px;
    width:100%;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

.login-container button:hover {
    background:#1b5e20;
}


body {
    margin:0;
    font-family: 'Segoe UI', sans-serif;
    display:flex;
    background:#ecf5ec;
}

/* SIDEBAR */
.sidebar {
    width:240px;
    background:#1b5e20;
    color:white;
    height:100vh;
    padding:20px;
}

.logo {
    font-size:20px;
    margin-bottom:20px;
    font-weight:bold;
}

.sidebar ul {
    list-style:none;
    padding:0;
}

.sidebar li {
    padding:12px;
    border-radius:8px;
    cursor:pointer;
}

.sidebar li:hover,
.sidebar .active {
    background:#2e7d32;
}

.sidebar a {
    color:white;
    text-decoration:none;
}

/* MAIN */
.main {
    flex:1;
    display:flex;
    flex-direction:column;
}

/* TOPBAR */
.topbar {
    background:white;
    padding:15px;
    display:flex;
    justify-content:space-between;
    box-shadow:0 2px 5px rgba(0,0,0,0.1);
}

/* KPIs */
.kpis {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:10px;
    padding:10px;
}

.kpi {
    background:white;
    padding:15px;
    border-radius:10px;
    text-align:center;
        transition: transform 0.2s;
}


.kpi:hover {
    transform: translateY(-5px);
}

.kpi h3 {
    color:#2e7d32;
    margin:0;
}

/* CONTENT */
.content {
    flex:1;
    display:flex;
    gap:10px;
    padding:10px;
}

/* MAPA PRINCIPAL */
.map-container {
    position: relative;
    flex:1;
    margin:10px;
}

#map {
    width:100%;
    height: calc(100vh - 180px); /* 🔥 clave */
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,0.15);
}

/* PANEL FLOTANTE */
.flotante {
    position:absolute;
    top:15px;
    right:15px;
    width:260px;
    z-index:1000;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

/* MAPA GEOCERCAS */
#mapGeocercas {
    height: calc(100vh - 140px);
    margin-top:10px;
    border-radius:10px;
}


.toolbar {
    margin:10px;
}

.toolbar button {
    background:#2e7d32;
    color:white;
    border:none;
    padding:10px;
    border-radius:8px;
    cursor:pointer;
}


#mapGeocercas {
    width: 100%;
    height: calc(100vh - 120px);
    display: block;
    border-radius:10px;
}


#vista-geocercas {
    width: 100%;
    height: 100%;
}
