/* =============================================
   TEMA OSCURO PROFESIONAL - BACHES YA!
   ============================================= */
body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar-dark.bg-dark {
    background-color: #111 !important;
    border-bottom: 1px solid #32CD32;
}
.navbar-brand {
    color: #32CD32 !important;
    font-weight: bold;
}

/* Tarjetas y contenedores */
.card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.card-body {
    color: #e0e0e0;
}

/* Formularios */
.form-label {
    color: #32CD32;
    font-weight: 500;
}
.form-control, .form-select {
    background-color: #0d0d0d;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: #32CD32;
    box-shadow: 0 0 0 0.2rem rgba(50, 205, 50, 0.25);
    background-color: #111;
    color: #fff;
}
.form-control::placeholder {
    color: #666;
}

/* Botones generales */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-danger {
    background-color: #32CD32;
    border-color: #32CD32;
    color: #000;
    font-weight: bold;
}
.btn-danger:hover {
    background-color: #2db82d;
    border-color: #2db82d;
    color: #000;
}
.btn-outline-danger {
    border-color: #32CD32;
    color: #32CD32;
}
.btn-outline-danger:hover {
    background-color: #32CD32;
    color: #000;
}
.btn-outline-success {
    border-color: #32CD32;
    color: #32CD32;
}
.btn-outline-success:hover {
    background-color: #32CD32;
    color: #000;
}
.btn-outline-secondary {
    border-color: #555;
    color: #ccc;
}
.btn-outline-secondary:hover {
    background-color: #555;
    color: #fff;
}

/* Botón volver (usado en login/registro) */
.btn-volver {
    background: transparent;
    border: 1px solid #32CD32;
    color: #32CD32;
    margin-bottom: 15px;
}
.btn-volver:hover {
    background: #32CD32;
    color: #000;
}

/* Modal */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
}
.modal-header {
    border-bottom: 1px solid #333;
}
.modal-footer {
    border-top: 1px solid #333;
}

/* Lista de baches (tarjetas) */
#listado-container {
    background: #0d0d0d;
}
#listado-container .card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: transform 0.2s;
}
#listado-container .card:hover {
    transform: translateY(-2px);
    border-color: #32CD32;
}

/* Toast (aviso de calle) */
.toast {
    background-color: #1a1a1a;
    border: 1px solid #32CD32;
    border-radius: 8px;
    color: #32CD32;
}

/* Mapa */
#map {
    height: 70vh;
    position: relative;
}
@media (min-width: 992px) {
    #map {
        height: 100vh;
    }
}

/* Botón "Mi ubicación" */
.boton-mi-ubicacion {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #32CD32;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    transition: background 0.2s;
}
.boton-mi-ubicacion:hover {
    background: #2db82d;
}

/* Enlaces */
a {
    color: #32CD32;
    text-decoration: none;
}
a:hover {
    color: #2db82d;
    text-decoration: underline;
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
}