/* =========================================================
   CONFIGURACIÓN GENERAL
   ========================================================= */
html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: #010214;
    background-image: url("/Resources/Fondo2.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: transparent;
}

/* Evita espacios inesperados en elementos principales */
* {
    box-sizing: border-box;
}


/* =========================================================
   CABECERA
   ========================================================= */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background-color: #072c60;
    border-bottom: 2px solid #000000;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-leukomics {
    display: block;
    width: auto;
    height: 60px;
}

.login-area {
    display: flex;
    align-items: center;
}

/*
   El contenido comienza debajo de la cabecera fija.
*/
main {
    padding-top: 80px;
}


/* =========================================================
   CAMBIAR CONTRASEÑA
   ========================================================= */

.change-password-container {
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0 auto;
    text-align: center;
    color: white;
}

    .change-password-container h1 {
        margin: 0 0 25px 0;
        color: white;
        font-size: 28px;
        font-weight: normal;
    }

.change-password-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.change-password-field {
    width: 280px;
    margin-bottom: 15px;
    text-align: left;
}

    .change-password-field label {
        display: block;
        margin-bottom: 5px;
        color: white;
        font-size: 15px;
    }

.change-password-input {
    display: block;
    width: 280px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    background-color: white;
    color: #000;
    font-size: 14px;
}

    .change-password-input:focus {
        outline: none;
        border-color: #6fa8dc;
        box-shadow: 0 0 4px rgba(111, 168, 220, 0.6);
    }

.change-password-button {
    width: 280px;
    height: 38px;
    margin-top: 5px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #072c60;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

    .change-password-button:hover {
        background-color: #010214;
    }

.change-password-cancel {
    display: block;
    width: 280px;
    margin-top: 10px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

    .change-password-cancel:hover {
        color: lightblue;
        text-decoration: underline;
    }


/* =========================================================
   VALIDACIONES
   ========================================================= */

.validation-summary,
.validation-message {
    color: #ffb3b3;
    font-size: 13px;
}

.validation-summary {
    width: 280px;
    margin-bottom: 12px;
    text-align: left;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    width: 100%;
    margin: 30px auto 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-field {
    width: 250px;
    margin-bottom: 12px;
    text-align: left;
}

    .login-field label {
        display: block;
        margin-bottom: 5px;
        color: lightblue;
    }

    .login-field input[type="email"],
    .login-field input[type="password"] {
        display: block;
        width: 250px;
        height: 35px;
        padding: 6px 10px;
        border: 1px solid #777;
        border-radius: 4px;
        background-color: white;
        color: #000;
        font-size: 14px;
    }

        .login-field input[type="email"]:focus,
        .login-field input[type="password"]:focus {
            outline: none;
            border-color: #6fa8dc;
            box-shadow: 0 0 4px rgba(111, 168, 220, 0.6);
        }

.login-remember {
    width: 250px;
    margin: 3px 0 15px 0;
    color: lightblue;
    text-align: left;
}

    .login-remember input {
        margin-right: 5px;
    }

    .login-remember label {
        color: lightblue;
    }

.login-form .button-generic {
    width: 250px;
}


/* =========================================================
   MENÚ DE USUARIO
   ========================================================= */

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: 4px;
    font-size: 10px;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    min-width: 220px;
    background-color: #072c60;
    border: 1px solid #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

    .user-dropdown-content.show {
        display: block;
    }

.user-dropdown-name {
    padding: 12px 15px;
    color: lightblue;
    font-weight: bold;
    border-bottom: 1px solid #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-content a,
.user-dropdown-content form button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: lightblue;
    text-decoration: none;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

    .user-dropdown-content a:hover,
    .user-dropdown-content form button:hover {
        background-color: #010214;
    }

.user-dropdown-content form {
    margin: 0;
    padding: 0;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .top-bar {
        height: 65px;
        padding: 0 12px;
    }

    .logo-leukomics {
        height: 48px;
    }

    main {
        padding-top: 65px;
    }

    /* Login */

    .login-page {
        margin-top: 20px;
    }

    .login-field,
    .login-field input[type="email"],
    .login-field input[type="password"],
    .login-remember,
    .login-form .button-generic {
        width: 260px;
    }

    /* Cambio de contraseña */

    .change-password-container {
        margin-top: 30px;
    }

    .change-password-field,
    .change-password-input,
    .change-password-button,
    .change-password-cancel,
    .validation-summary {
        width: 260px;
    }

    /* Menú de usuario */

    .user-dropdown-content {
        min-width: 190px;
        right: 0;
    }

    .user-dropdown-button {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* =========================================================
EMPLOYEE MAIN
========================================================= */

.employee-main {
    width: 100%;
}

.employee-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
}

.employee-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #000000;
    border-radius: 4px;
    background-color: #072c60;
    color: white;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

    .employee-menu-button:hover {
        background-color: #010214;
        color: white;
    }

@media (max-width: 768px) {
    .employee-menu {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .employee-menu-button {
        flex: 1 1 45%;
        min-width: 140px;
    }
}

/* =========================================================
   CREAR EMPLEADO
   ========================================================= */

.create-employee-container {
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0 auto;
    text-align: center;
    color: white;
}

    .create-employee-container h1 {
        margin: 0 0 25px 0;
        color: white;
        font-size: 28px;
        font-weight: normal;
    }

.create-employee-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-employee-field {
    width: 280px;
    margin-bottom: 15px;
    text-align: left;
}

    .create-employee-field label {
        display: block;
        margin-bottom: 5px;
        color: white;
        font-size: 15px;
    }

.create-employee-input {
    display: block;
    width: 280px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    background-color: white;
    color: #000;
    font-size: 14px;
}

    .create-employee-input:focus {
        outline: none;
        border-color: #6fa8dc;
        box-shadow: 0 0 4px rgba(111, 168, 220, 0.6);
    }

.create-employee-button {
    width: 280px;
    height: 38px;
    margin-top: 5px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #072c60;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

    .create-employee-button:hover {
        background-color: #010214;
    }

.create-employee-cancel {
    display: block;
    width: 280px;
    margin-top: 10px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

    .create-employee-cancel:hover {
        color: lightblue;
        text-decoration: underline;
    }

@media (max-width: 768px) {

    .create-employee-container {
        margin-top: 30px;
    }

        .create-employee-field,
        .create-employee-input,
        .create-employee-button,
        .create-employee-cancel,
        .create-employee-container .validation-summary {
            width: 260px;
        }
}

/* =========================================================
   CREAR CLIENTE
   ========================================================= */

.create-client-container {
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0 auto;
    text-align: center;
    color: white;
}

    .create-client-container h1 {
        margin: 0 0 25px 0;
        color: white;
        font-size: 28px;
        font-weight: normal;
    }

.create-client-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-client-field {
    width: 280px;
    margin-bottom: 15px;
    text-align: left;
}

    .create-client-field label {
        display: block;
        margin-bottom: 5px;
        color: white;
        font-size: 15px;
    }

.create-client-input {
    display: block;
    width: 280px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    background-color: white;
    color: #000;
    font-size: 14px;
}

    .create-client-input:focus {
        outline: none;
        border-color: #6fa8dc;
        box-shadow: 0 0 4px rgba(111, 168, 220, 0.6);
    }

.create-client-button {
    width: 280px;
    height: 38px;
    margin-top: 5px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #072c60;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

    .create-client-button:hover {
        background-color: #010214;
    }

.create-client-cancel {
    display: block;
    width: 280px;
    margin-top: 10px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

    .create-client-cancel:hover {
        color: lightblue;
        text-decoration: underline;
    }

@media (max-width: 768px) {

    .create-client-container {
        margin-top: 30px;
    }

        .create-client-field,
        .create-client-input,
        .create-client-button,
        .create-client-cancel,
        .create-client-container .validation-summary {
            width: 260px;
        }
}

/* =========================================================
   CREAR ESTUDIO
   ========================================================= */

.create-study-container {
    width: 100%;
    max-width: 420px;
    margin: 40px auto 0 auto;
    text-align: center;
    color: white;
}

    .create-study-container h1 {
        margin: 0 0 25px 0;
        color: white;
        font-size: 28px;
        font-weight: normal;
    }

.create-study-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-study-field {
    width: 280px;
    margin-bottom: 15px;
    text-align: left;
}

    .create-study-field label {
        display: block;
        margin-bottom: 5px;
        color: white;
        font-size: 15px;
    }

.create-study-select {
    display: block;
    width: 280px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #777;
    border-radius: 4px;
    background-color: white;
    color: #000;
    font-size: 14px;
}

    .create-study-select:focus {
        outline: none;
        border-color: #6fa8dc;
        box-shadow: 0 0 4px rgba(111, 168, 220, 0.6);
    }

.create-study-button {
    width: 280px;
    height: 38px;
    margin-top: 5px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #072c60;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

    .create-study-button:hover {
        background-color: #010214;
    }

.create-study-cancel {
    display: block;
    width: 280px;
    margin-top: 10px;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

    .create-study-cancel:hover {
        color: lightblue;
        text-decoration: underline;
    }

@media (max-width: 768px) {

    .create-study-container {
        margin-top: 30px;
    }

    .create-study-field,
    .create-study-select,
    .create-study-button,
    .create-study-cancel {
        width: 260px;
    }
}

#todf {
    position: absolute;
    top: 35%;
    background: transparent;
    border: none;
    border-collapse: collapse;
}

    #todf th {
        padding-bottom: 15px;
    }

    #todf td {
        padding: 5px 0;
        background: transparent;
    }

    #todf tr:last-child td {
        padding-top: 25px;
    }
