:root {
    --naranja-dinalan: #CB7005;
    --gris-dinalan: #53565a;
    --verde-oscuro-civitra: #014913;
    --verde-claro-civitra: #019817;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #ffffff;
}

body {
    display: flex;
    flex-direction: column;
}

form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#headerContainer {
    flex-shrink: 0;
}

/*LOGIN*/

input,
button {
    outline: none;
    box-shadow: none !important;
}

a:focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

.navbar,
.navbar-inverse {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.container {
    width: 100% !important;
    max-width: none !important;
}

.navbar-header {
    width: 100%;
    display: flex !important;
    align-items: center;
}
    
.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
}

#header1 {
    width: 100%;
    padding: 16px 40px;
    box-sizing: border-box;
}

#header1 .navbar-header {
    display: flex;
    align-items: center;
}

#header1 .navbar-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#BotonSolicitarAcceso {
    margin-right: auto;
}

#BotonNotificarProblema {
    margin-left: auto;
}

.body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.section-login article {
    width: 30vw;
    max-width: 520px;
    display: flex;
    flex-direction: column;
}

.login-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    width: 160px;
}

.login-head-new {
    background: #0a8f1f;
    color: white;
    padding: 18px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.login-head-new h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.login-content-new {
    background: #ffffff;
    margin-top: 20px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0px 10px 11px -3px rgba(34, 34, 34, 0.29);
}

.select-login {
    width: 100%;
    height: 44px;
    background: #e9edf3;
    padding: 0 14px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.select-login:hover {
    background: #e6ebf2;
    border-color: var(--verde-claro-civitra) !important;
}

.select-login:focus {
    background: #dde3ec;
    border-color: var(--verde-claro-civitra) !important;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .select-login {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-75%);
    opacity: 0.6;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: #777;
}

.btn {
    background: #0b5d1e;
    color: white;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--naranja-dinalan);
}

.btn:focus {
    border-radius: 10px;
    background-color: var(--naranja-dinalan);
    color: #fff;
    border: none;
}

.btn-solicitar-acceso,
.btn-notificar-problema {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-solicitar-acceso {
    background: #0b5d1e;
    color: white !important;
}

.btn-notificar-problema {
    background: #c96e08;
    color: white !important;
}

.btn-solicitar-acceso:hover,
.btn-solicitar-acceso:focus {
    background-color: var(--verde-claro-civitra);
    border-color: var(--verde-claro-civitra);
    text-decoration: none;
    border: none;
}

.btn-notificar-problema:hover,
.btn-notificar-problema:focus {
    background-color: #e53138;
    border-color: #e53138;
    text-decoration: none;
    border: none;
}

.error-login {
    background: #f44336;
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.login-content-new input[type="submit"] {
    display: block;
    margin: 12px auto 0 auto;
}

.footer {
    display: none !important;
}


/* AUTENTICACION */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-card {
    width: 40vw;
    max-width: 500px;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.login-help-msg {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.contenedor-autenticacion {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.codigo-qr {
    width: 150px;
    height: 150px;
    border: 2px solid #000;
    border-radius: 8px;
    object-fit: contain;
}

.datos-usuario {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: black;
    font-size: 16px;
}

.datos-usuario span {
    font-weight: bold;
}

.input-boton {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.input-boton input[type="text"] {
    height: 44px;
}

.input-boton input[type="submit"] {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ayuda-link {
    text-align: center;
}

.ayuda-link .btn {
    margin-top: 10px;
}

.driver-popover button {
    background: var(--verde-oscuro-civitra);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.driver-popover button:hover {
    background: var(--verde-claro-civitra);
}

#VentanaModalAutenticacion {
    display: none;
}

@media (max-width: 768px) {
    .login-card {
        width: 90%;
        padding: 20px;
    }

    .contenedor-autenticacion {
        flex-direction: column;
        gap: 15px;
    }

    .input-boton {
        flex-direction: column;
        gap: 10px;
    }

    .input-boton input {
        width: 100%;
    }
}

/*CAMBIAR CONTRASEÑA*/
.btn-grande {
    background: var(--verde-oscuro-civitra);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 20px auto 0 auto;
}

.btn-grande:hover {
    background: var(--verde-claro-civitra);
}

.section-login article {
    width: 30vw;
    max-width: 520px;
}

/*REPORTES ALUMBRADO*/

.section-main.section-map {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.section-main.section-map article {
    width: 100%;
    max-width: 1400px;
    display: flex !important;
    gap: 20px;
}

.section-main.section-map #map2 {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
}

.input-notificar-error,
.select,
textarea {
    width: 100%;
    height: 44px;
    background: #f5f5f5;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    height: 120px;
    padding-top: 10px;
    resize: vertical;
}

.input-notificar-error:focus,
.select:focus,
textarea:focus {
    border-color: var(--verde-claro-civitra);
    outline: none;
    background: #ffffff;
}

.section-main.section-map article {
    display: flex !important;
    flex-wrap: wrap;
}

.section-main.section-map article > div {
    display: flex;
    flex-direction: column;
}

.swal-btn-si {
    background-color: var(--verde-oscuro-civitra) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
}

.swal-btn-si:hover {
    background-color: var(--verde-claro-civitra) !important;
}

.swal2-cancel.swal-btn-no {
    background-color: #ccc !important;
    color: #333 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
}

#VentanaMapa > div {
    width: 90vw !important;
}

#VentanaMapa .container-modal {
    display: flex;
    flex-direction: column;
}

#VentanaMapa .content-modal {
    flex: 1;
    display: flex;
}

#VentanaMapa #map {
    width: 100%;
    height: 30vw !important;
    border-radius: 8px;
}

.fileListElemento {
    list-style: none;
    padding: 0;
    width: 100%;
}

.fileListElemento li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

#fileUploadArchivo {
    padding: 5px;
    font-size: 14px;
}

#fileUploadArchivo::file-selector-button {
    background: #0b5d1e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

#fileUploadArchivo::file-selector-button:hover {
    background: var(--naranja-dinalan);
}

.swal2-actions {
    display: flex;
    justify-content: center;
    gap: 12px; 
}

.swal2-cancel {
    background-color: #e0e0e0 !important;
    color: #333 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    border: none;
    transition: all 0.2s ease;
}

.swal2-cancel:hover {
    background-color: #d5d5d5 !important;
}
