﻿.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.form-container {
    background-color: #f5f5f5;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.form-title {
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    color: #000;
}

form div {
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-family: Helvetica, Arial, sans-serif;
}

input,
select,
textarea {
    max-width: 280px;
}

    input[type="email"],
    input[type="text"],
    select,
    input[type="password"] {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 1em;
        box-sizing: border-box;
        max-width: 100%;
    }

button, .button-link {
    background-color: #1ab192;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

    button:hover, .button-link:hover {
        background-color: #138a75;
        color: white;
    }

p {
    padding: 8px 8px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1em;
}

.credit-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
}

    .credit-list li {
        background-color: #ffffff;
        margin-bottom: 8px;
        padding: 10px 15px;
        border-radius: 6px;
        border: 1px solid #ddd;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
    }

        .credit-list li:hover {
            transform: scale(1.02);
            background-color: #f0f0f0;
        }

.form-footer-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95em;
}

.btn-microsoft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

    .btn-microsoft:hover {
        background-color: #f2f2f2;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

    .btn-secondary:hover {
        background-color: #5a6268;
    }

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: center;
    margin-top: 20px;
}

.module-btn {
    background-color: #ffffff;
    border: 2px solid #1ab192;
    color: #1ab192;
    font-weight: bold;
    font-size: 1em;
    padding: 12px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

    .module-btn:hover {
        background-color: #1ab192;
        color: #ffffff;
    }

.help-button {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
    font-weight: bold;
    padding: 0;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
}

.welcome-wrapper {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

.welcome-container {
    max-width: 1000px;
    width: 100%;
    background-color: #f5f5f5;
    padding: 50px 60px;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.welcome-description {
    font-size: 1.05em;
    margin-bottom: 40px;
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-label {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 10px;
    font-family: Helvetica, Arial, sans-serif;
}

.btn-highlight {
    background-color: #1ab192;
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 1.05em;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    display: inline-block;
    width: 100%;
    max-width: 280px;
    text-decoration: none;
}

    .btn-highlight:hover {
        background-color: #138a75;
        color: white;
    }

.btn-lightgray {
    background-color: #e0e0e0;
    color: #000;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 1.05em;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: inline-block;
    width: 100%;
    max-width: 280px;
    text-decoration: none;
}

    .btn-lightgray:hover {
        background-color: #d5d5d5;
        color: #000;
    }

.module-btn small {
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

.form-container-wide {
    max-width: 600px;
    width: 100%;
    background-color: #f5f5f5;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-wrapper-left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px;
}

.password-wrapper.password-wrapper-left input[type="password"],
.password-wrapper.password-wrapper-left input[type="text"] {
    width: 100%;
    padding-right: initial;
    padding-left: 40px;
}

.toggle-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('https://cdn.jsdelivr.net/gh/feathericons/feather@4.28.0/icons/eye-off.svg') no-repeat center;
    background-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

    .toggle-eye.toggle-eye-left {
        position: initial;
        top: initial;
        right: initial;
        transform: none;
        width: 24px;
        height: 24px;
        background: url('https://cdn.jsdelivr.net/gh/feathericons/feather@4.28.0/icons/eye-off.svg') no-repeat center;
        background-size: 20px;
        cursor: pointer;
        opacity: 0.6;
        margin: 0px 10px 0px 0px;
        padding: 0px;
    }

.togglePassword:checked + .toggle-eye,
#togglePassword:checked + .toggle-eye {
    background-image: url('https://cdn.jsdelivr.net/gh/feathericons/feather@4.28.0/icons/eye.svg');
}

.togglePassword,
#togglePassword {
    display: none;
}

    .togglePassword:checked ~ input[name="password"],
    #togglePassword:checked ~ input[name="password"] {
        -webkit-text-security: none;
        text-security: none;
    }

.field-validation-error {
    color: #9b000f !important;
    background-color: #ffdada;
    font-size: 0.95em;
    font-family: Helvetica, Arial, sans-serif;
    margin: 15px 0px;
    border: red 1px solid;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

    .field-validation-error::before {
        content: "\f071";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #dc3545;
        font-size: 1em;
    }

.message-success {
    color: #05702c !important;
    background-color: #e5fbdd;
    font-size: 0.95em;
    font-family: Helvetica, Arial, sans-serif;
    margin: 15px 0px;
    border: green 1px solid;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

    .message-success::before {
        content: "\f058";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #05702c;
        font-size: 1em;
    }

.module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
    margin-top: 20px;
}

.simple-dropdown {
    padding: 10px 14px;
    font-size: 1em;
    border: 1px solid #333;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

    .simple-dropdown:focus {
        outline: none;
        border-color: dimgrey;
        box-shadow: 0 0 0 2px rgba(26, 177, 146,  0.2);
    }

.btn-outline-warning {
    --bs-btn-color: #8B8000;
    --bs-btn-border-color: #8B8000;
}

.pop-up-profiles {
    background-color: #eee;
    display: none;
    visibility: hidden;
    width: 50%;
}

.btn-outline-orange {
    --bs-btn-color: #ff6a20;
    --bs-btn-border-color: #ff6a20;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ff6a20;
    --bs-btn-hover-border-color: #ff6a20;
    --bs-btn-focus-shadow-rgb: 255, 106, 32;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ff6a20;
    --bs-btn-active-border-color: #ff6a20;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ff6a20;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #ff6a20;
    --bs-gradient: none;
}

.btn-outline-orange {
    --bs-btn-color: #ff6a20;
    --bs-btn-border-color: #ff6a20;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ff6a20;
    --bs-btn-hover-border-color: #ff6a20;
    --bs-btn-focus-shadow-rgb: 255, 106, 32;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ff6a20;
    --bs-btn-active-border-color: #ff6a20;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ff6a20;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #ff6a20;
    --bs-gradient: none;
}



@media screen and (orientation: portrait) {
    .header-left a {
        display: none;
    }
}

.no-overflow {
    overflow-x: hidden;
    overflow-y: hidden;
}

#background-loader {
    height: 100vh;
    width: 100vw;
    left: 0px;
    top: 0px;
    background-color: #000000d1;
    z-index: 999;
}

.loader {
    width: 100vw;
    height: 30px;
    background: repeating-linear-gradient(-45deg,#1ab192 0 15px,#0000 0 20px) right/200% 100%;
    animation: l3 15s infinite linear;
}

@keyframes l3 {
    100% {
        background-position: left
    }
}

/* Docentes: que el botón de lupa no se expanda a 100% */
.top-filters .input-group .btn {
    width: auto;
}

/* (Opcional) Forzar misma altura que los selects */
.top-filters .form-select,
.top-filters .form-control,
.top-filters .input-group .btn {
    height: calc(2.375rem + 3px);
}

/* Botón tema UTTN (mismo color que usas en la página) */
.btn-utt {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1ab192;
    --bs-btn-border-color: #1ab192;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #138a75;
    --bs-btn-hover-border-color: #138a75;
    --bs-btn-focus-shadow-rgb: 26,177,146;
}



.top-filters #q {
    height: calc(2.375rem + 2px);
}

/* Ajustes solo para pantallas chicas */
@media (max-width: 576px) {
    .top-filters .form-select,
    .top-filters .form-control,
    .top-filters .input-group .btn {
        height: calc(2.375rem + 2px);
    }

    .top-filters .input-group .btn {
        width: auto;
        display: inline-flex;
    }
}

/* ====== POPUPS MOBILE-FRIENDLY ====== */

/* 1) Ajustes generales del cuadro (no afectan escritorio) */
#background { /* overlay ya existe, solo aseguramos centrado y scroll si se pasa */
    align-items: center;
    justify-content: center;
}

.pop-up-profiles {
    max-height: 90vh; /* si el contenido crece, que haga scroll interno */
    overflow: auto;
    box-sizing: border-box;
}

/* 2) Móvil: modal ancho cómodo, paddings y botones full width */
@media (max-width: 576px) {
    /* El cuadro ocupa ~toda la pantalla, con respiración */
    .pop-up-profiles {
        width: 92vw !important; /* antes quedaba muy estrecho */
        padding: 16px !important; /* más cómodo para el dedo */
        border-radius: 12px !important;
    }

    /* En el popup de ACCIONES, el contenedor interno no debe ser 50% */
    #pop-up-actions #content {
        width: 100% !important; /* sobre-escribe la clase w-50 del HTML */
    }

    /* Botones apilados y anchos para tocar fácil */
    #pop-up-actions .btn {
        width: 100% !important;
    }

    #pop-up-actions #content > * + * {
        margin-top: .5rem; /* separación vertical entre botones */
    }

    /* Título más compacto y centrado */
    #pop-up-actions .form-title {
        font-size: 1.25rem; /* legible sin desbordar */
        text-align: center;
        margin-top: .25rem;
        margin-bottom: .75rem;
    }
}

/* 3) Tablets en adelante: un poco más de ancho si quieres */
@media (min-width: 577px) and (max-width: 991px) {
    .pop-up-profiles {
        width: 70vw; /* en tablet se ve mejor más ancho que 50% */
    }
}


/* ===== Tablas apiladas en móvil (stacked) ===== */
@media (max-width: 576px) {
    /* Sólo afecta a tablas con clase .table-stack */
    .table-stack thead {
        display: none;
    }

    .table-stack tbody {
        display: block;
    }

    .table-stack tr {
        display: block;
        margin: .5rem 0;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: .5rem;
        overflow: hidden;
        background-color: rgba(255,255,255,.03);
    }

    .table-stack td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: .75rem;
        padding: .5rem .75rem;
        border: none !important;
        border-bottom: 1px dashed rgba(255,255,255,.12) !important;
        word-break: break-word; /* carreras largas */
    }

        .table-stack td:last-child {
            border-bottom: 0 !important;
        }

        .table-stack td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #b6c2cf;
        }
        /* Botón de acción (si existe) ocupa línea completa y centrado */
        .table-stack td.actions {
            justify-content: center;
        }
}
