/* Estilos ajustados y unificados para inputs, textarea, y select */

.form-upload {
    cursor: pointer;
    height: auto;
    overflow: hidden;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

    .form-upload img {
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        width: 100%;
        height: 100%;
        position: relative;
        min-width: auto;
        min-height: auto;
    }

/* Ajustes adicionales para el textarea */
textarea {
    resize: vertical; /* Solo permite cambiar el tamaño vertical */
    min-height: 100px;
}

/* Estilo para el select */
select {
    appearance: none; /* Remover la flecha del select predeterminada */
    -webkit-appearance: none; /* Para navegadores webkit */
    -moz-appearance: none; /* Para navegadores Mozilla */
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 10px;
    padding-right: 30px; /* Espacio para la flecha personalizada */
    cursor: pointer;
    width: 100%;
    padding: 10px;
    padding-right: 40px; /* Espacio para la flecha */
    cursor: pointer;
    appearance: none; /* Necesario para eliminar la apariencia nativa en algunos navegadores */
    -webkit-appearance: none; /* Para Chrome/Safari */
    -moz-appearance: none; /* Para Firefox */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray"><path d="M7 10l5 5 5-5H7z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center; /* Ajusta la posición de la flecha */
    background-size: 16px; /* Tamaño de la flecha */
}

/* Estilo para el input file */
input[type="file"] {
    display: none;
}

/* Botón personalizado para input[type="file"] */
.file-upload label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5.5px 20px;
    background-color: #3498db;
    color: #fff;
    border: 1px solid #b8c1ce;
    cursor: pointer;
    transition: background-color 0.2s linear, border-color 0.2s linear;
    font-size: 11.455px;
    height: 45px;
    line-height: 17.1825px;
    margin: 10px 0;
}

    .file-upload label:hover {
        background-color: #1d6fa5;
        border-color: #bcc7d4;
    }

/* Icono dentro del botón de file upload */
.file-upload i {
    margin-right: 5px;
    font-size: 16px;
}

/* Estilo para checkbox */
.checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .checkbox label {
        margin-left: 10px;
        cursor: pointer;
    }

input[type="checkbox"] {
    cursor: pointer;
}

/* Estilo para botones */
.button-save {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .button-save:hover {
        background-color: #229954;
    }

.button-cancel {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .button-cancel:hover {
        background-color: #c0392b;
    }

/* Contenedor del formulario */
.form-container {
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-family: Rubik, sans-serif;
}

/* Estilo del encabezado del formulario */
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
    background-color: #eaeef5;
}

    .form-header .form-title {
        flex: 1;
        font-size: 14px;
        font-weight: 600;
        color: #0e4e95;
        text-align: left;
    }

    .form-header .form-close-button {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: #999;
        transition: color 0.3s ease;
    }

        .form-header .form-close-button:hover {
            color: #e74c3c;
        }

/* Estilo del cuerpo del formulario */
.form-body {
    display: flex;
    flex-direction: column;
    color: #555;
    font-size: 11.455px;
    line-height: 1.5;
    gap: 10px;
}

/* Estilo del pie del formulario */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px;
    background-color: #eaeef5;
    gap: 10px;
}

.input-join {
    position: relative;
}

    .input-join label {
        width: 20px;
        height: 20px;
        position: absolute;
        top: 12px;
        left: 12px;
    }

    .input-join i {
        position: relative;
        top: 0;
        left: 0;
        font-size: 20px;
        color: #252120;
        width: 20px;
        height: 20px;
        z-index: 2;
        overflow: hidden;
    }

    .input-join input {
        position: relative;
        width: 100%;
        height: 38px;
        padding: 5.5px 10px 5.5px 38px !important;
        border: solid 1px #656eaf59;
        font-size: 16px;
        font-weight: 300;
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
        background-color: #fff;
        max-width: 100%;
        color: #252120;
        z-index: 1;
    }

.input-join-right {
    position: relative;
}

    .input-join-right label {
        width: 20px;
        height: 20px;
        position: absolute;
        top: 12px;
        right: 12px; /* Cambiado a la derecha */
    }

    .input-join-right i {
        position: relative;
        top: 0;
        right: 0;
        font-size: 20px;
        color: #252120;
        width: 20px;
        height: 20px;
        z-index: 2;
        overflow: hidden;
    }

    .input-join-right input {
        position: relative;
        width: 100%;
        height: 38px;
        padding: 5.5px 38px 5.5px 10px !important; /* Padding cambiado para el icono en la derecha */
        border: solid 1px #656eaf59;
        font-size: 16px;
        font-weight: 300;
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
        background-color: #fff;
        max-width: 100%;
        color: #58619e;
        z-index: 1;
    }


.nice-checkbox .tgl {
    display: none;
}

    .nice-checkbox .tgl,
    .nice-checkbox .tgl:after,
    .nice-checkbox .tgl:before,
    .nice-checkbox .tgl *,
    .nice-checkbox .tgl *:after,
    .nice-checkbox .tgl *:before,
    .nice-checkbox .tgl + .tgl-btn {
        box-sizing: border-box;
    }

        .nice-checkbox .tgl::-moz-selection,
        .nice-checkbox .tgl:after::-moz-selection,
        .nice-checkbox .tgl:before::-moz-selection,
        .nice-checkbox .tgl *::-moz-selection,
        .nice-checkbox .tgl *:after::-moz-selection,
        .nice-checkbox .tgl *:before::-moz-selection,
        .nice-checkbox .tgl + .tgl-btn::-moz-selection,
        .nice-checkbox .tgl::selection,
        .nice-checkbox .tgl:after::selection,
        .nice-checkbox .tgl:before::selection,
        .nice-checkbox .tgl *::selection,
        .nice-checkbox .tgl *:after::selection,
        .nice-checkbox .tgl *:before::selection,
        .nice-checkbox .tgl + .tgl-btn::selection {
            background: none;
        }

        .nice-checkbox .tgl + .tgl-btn {
            outline: 0;
            display: block;
            width: 64px;
            height: 32px;
            position: relative;
            cursor: pointer;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

            .nice-checkbox .tgl + .tgl-btn:after,
            .nice-checkbox .tgl + .tgl-btn:before {
                position: relative;
                display: block;
                content: "";
                width: 50%;
                height: 100%;
            }

            .nice-checkbox .tgl + .tgl-btn:after {
                left: 0;
            }

            .nice-checkbox .tgl + .tgl-btn:before {
                display: none;
            }

        .nice-checkbox .tgl:checked + .tgl-btn:after {
            left: 50%;
        }

.nice-checkbox .tgl-light + .tgl-btn {
    background: #EAEEF5;
    border-radius: 24px;
    padding: 2px;
    border: 1px solid #ccc;
    transition: background-color 0.4s ease;
}

    .nice-checkbox .tgl-light + .tgl-btn:after {
        border-radius: 24px;
        background: #fff;
        transition: background-color 0.2s ease;
    }

.nice-checkbox .tgl-light:checked + .tgl-btn {
    background: #28A745;
    border: 1px solid #0b7b25;
    box-shadow: 2px 0 10px #e0e0e0;
}
