@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #ececec;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.error-message {
    font-size: 0.8rem;
    color: #F00;
    padding-left: 5px;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: #107e6a;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
}

/* Sidebar */
.sidebar-fixed {
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    height: calc(100vh - 56px);
    background-color: #ffffff;
    color: #107e6a;
    z-index: 1040;
}

/* Main content */
.content {
    margin-left: 250px;
    margin-top: 46px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}


.sidebar-fixed .nav-link {
    color: #0d6e53;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;

}

.sidebar-fixed .nav-link:hover, .sidebar-fixed .nav-link.active {
    background-color: #e9ecef !important;
    color: #107e6a;
    margin-bottom: 5px;
}

.table-primary {
    --bs-table-color: #231d1d;
    --bs-table-bg: #107e6a0a;
    --bs-table-border-color: #a6b5cc;
    --bs-table-striped-bg: #c5d7f2;
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bacbe6;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #bfd1ec;
    --bs-table-hover-color: #000;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

th {
    font-size: 0.85rem !important;
}

td {
    font-size: 0.8rem !important;
}

.active>.page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: #107e6a;
    border-color: #107e6a;
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px;
    background-color: #fff;
    color: #ffffff;
    text-align: center;
    font-size: 1.2rem;
    border-bottom: 1px solid #495057;
}


.content-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.table-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.form-check-input:checked {
    background-color: #0d6e53;
    border-color: #0d6e53;
}


.form-check-input:checked::after {
    content: '✔';
    font-size: 1em;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.form-check-input:hover {
    border-color: #0d6e53;
}

.ancla-legal {
    color: #0d6e53;
    margin-left: 5px;
    font-size: 0.9rem;
}

/* Contenedor de la notificación */
.notification-banner-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    text-align: center;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.notification-banner-success i {
    margin-right: 8px;
    color: #28a745;
}

.notification-banner {
    background-color: #ffc107;
    color: #131313;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Icono de aviso */
.notification-banner i {
    margin-right: 8px;
    color: #856404;
}

.breadcrumbs {
    position: fixed;
    top: 60px;
    z-index: 1030;
    width: 100%;
    background-color: #fff;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid #ddd;
    margin-left: 250px;
    z-index: 99;
    box-shadow: 0 2px 5px rgba(40, 90, 185, .1);
}

.breadcrumb {
    margin-bottom: 0;
    background: #fff;
    padding: 0;
}

.breadcrumb-item a {
    color: #107e6a;
    text-decoration: none;
    font-size: 0.8rem;
}

.breadcrumb-item {

    font-size: 0.8rem;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.mt-6 {
    margin-top: 5rem !important;
}

.accordion-custom .accordion-button {
    background-color: #107e6a;
    color: #ffffff;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background-color: #0d6e53;
    color: #ffffff;
}

.accordion-custom .accordion-button:hover {
    background-color: #0f8c72;
    color: #f7f7f7;
}

.accordion-custom .accordion-item {
    border: none;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
}


#imageCarousel {
    max-width: 300px;
    margin: 0 auto;
}

.carousel img {
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel img:hover {
    transform: scale(1.05);
}

.gallery img {
    width: 200px;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.gallery {
    width: 200px;
    margin: 10px;
    border-radius: 8px;
    cursor: pointer;
}


.accordion-button::after {
    color: white;
    filter: brightness(0) invert(1);
}


.box-area {
    width: 930px;
}

/*------------ Right box ------------*/

.right-box {
    padding: 40px 30px 40px 40px;
}

.right-box-login {
    padding: 20px 5px 20px 30px;
}

/*------------ Custom Placeholder ------------*/

::placeholder {
    font-size: 16px;
}

.rounded-4 {
    border-radius: 20px;
}

.rounded-5 {
    border-radius: 30px;
}

.featured-image {
    background-color: transparent;
    padding: 20px;
    border-radius: 10px;
}

.header-text h3 {

    text-align: center;
    color: #212517;
    font-weight: 500;

}

.bg-white {
    background-color: #f7f7f7 !important;
}

.btn-success {
    background-color: #107e6a;
}

.btn-primary {
    background-color: #107e6a;
    border-color: #107e6a;
    color: white;
}

.btn-primary:hover {
    background-color: #0d6e53;
    border-color: #0d6e53;
}

.fa {
    color: #0d6e53;
}

.icon-user {
    color: #fff;
}

.dropdown-menu {
    --bs-dropdown-zindex: 1000;
    --bs-dropdown-min-width: 10rem;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-spacer: 0.125rem;
    --bs-dropdown-font-size: 1rem;
    --bs-dropdown-color: var(--bs-body-color);
    --bs-dropdown-bg: var(--bs-body-bg);
    --bs-dropdown-border-color: var(--bs-border-color-translucent);
    --bs-dropdown-border-radius: var(--bs-border-radius);
    --bs-dropdown-border-width: var(--bs-border-width);
    --bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-dropdown-divider-bg: var(--bs-border-color-translucent);
    --bs-dropdown-divider-margin-y: 0.5rem;
    --bs-dropdown-box-shadow: var(--bs-box-shadow);
    --bs-dropdown-link-color: var(--bs-body-color);
    --bs-dropdown-link-hover-color: var(--bs-body-color);
    --bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);
    --bs-dropdown-link-active-color: #0d6e53 !important;
    --bs-dropdown-link-active-bg: transparent !important;
    --bs-dropdown-link-disabled-color: var(--bs-tertiary-color);
    --bs-dropdown-item-padding-x: 1rem;
    --bs-dropdown-item-padding-y: 0.25rem;
    --bs-dropdown-header-color: #6c757d;
    --bs-dropdown-header-padding-x: 1rem;
    --bs-dropdown-header-padding-y: 0.5rem;
    position: absolute;
    z-index: var(--bs-dropdown-zindex);
    display: none;
    min-width: var(--bs-dropdown-min-width);
    padding: var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);
    margin: 0;
    font-size: var(--bs-dropdown-font-size);
    color: var(--bs-dropdown-color);
    text-align: left;
    list-style: none;
    background-color: var(--bs-dropdown-bg);
    background-clip: padding-box;
    border: var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);
    border-radius: var(--bs-dropdown-border-radius);
}


.custom-btn {
    border: 2px solid #107e6a;
    color: #107e6a;
    background-color: transparent;
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.custom-btn:hover {
    background-color: #107e6a !important;
    color: white;
    border-color: #107e6a !important;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
    transform: skewX(-30deg) translateX(0);
}

.custom-btn:hover::before {
    transform: skewX(-30deg) translateX(100%);
    transition: transform 0.5s ease-out;
}

/* Centrado vertical de los botones */
.right-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Estilo para el separador */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-top: 1px solid #d3d3d3;
    margin: 0 10px;
}

small a {
    color: #107e6a;
    text-decoration: none;
}

.left-box {
    background: #107e6a;
    height: 100%;
}

.left-box-login {
    background: #107e6a;
    height: 600px;
}

.left-box-login .featured-image img {

    width: 80px !important;

}

.left-box-login>.featured-image {
    background-color: transparent;
    padding: 5px;
    border-radius: 10px;
}

button>span {
    font-size: 0.8rem;
}

.btn-select {
    width: 48%;
    font-size: 1rem;
    border: 2px solid #107e6a;
    color: #107e6a;
    background-color: transparent;
    padding: 12px 16px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-select.selected {
    background-color: #107e6a !important;
    color: white;
    border-color: #107e6a !important;
}


.btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
    transform: skewX(-30deg) translateX(0);
}

.btn-select:hover::before {
    transform: skewX(-30deg) translateX(100%);
    transition: transform 0.5s ease-out;
}

#recetaDropzone {
    border: 2px dashed #007bff;
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
    color: #6c757d;
}

.lista-menu-mb {
    list-style: none;
    padding: 0;
}

.lista-menu-mb li a i {
    color: white;
}

.box-input-date {
    width: 100%;
    margin-right: 1rem;
}

.btn-searh {
    height: 60%;
}

.lista-menu-mb .nav-item:hover {
    background-color: #ffffff2b;
    color: #0d6e53;
    padding: 5px;
    border-radius: 3px;
}

.label-email {
    font-size: 0.9rem;
    font-weight: 600;
}

.input-email {
    margin-right: 1rem;
    width: 100;
}

div:where(.swal2-container) h2:where(.swal2-title) {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: .8em 1em 0;
    color: inherit;
    font-size: 1.5em !important;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    word-wrap: break-word;
}

.buscador-navbar {
    display: flex;
    width: 50%;
    justify-content: center;
    margin-left: 5rem;
}


@media (max-width: 992px) {
    .sidebar-fixed {
        transform: translateX(-100%);
    }

    .content {
        margin-left: 0;
    }

    .breadcrumbs {
        background: #fff;
        padding: .5rem 1.5rem;
        position: relative;
        top: 60px;
        z-index: 99;
        box-shadow: 0 2px 5px rgba(40, 90, 185, .1);
        margin-left: 0;
    }

    .sidebar-fixed {
        display: none;
    }

    .mt-6 {
        margin-top: 4rem !important;
    }

    .breadcrumbs {
        position: fixed;
        top: 60px;
        z-index: 1030;
        width: 100%;
        background-color: #fff;
        padding: .9rem 1.5rem;
        border-bottom: 1px solid #ddd;
        margin-left: 0px;
        z-index: 99;
        box-shadow: 0 2px 5px rgba(40, 90, 185, .1);
    }

    .buscador-navbar {
        display: flex;
        width: 80%;
        justify-content: center;
        margin-left: 0rem;
    }
}

/* DATATABLES OVERRIDES */
div.dt-container .dt-paging .dt-paging-button {
    padding: 0;
}

/*------------ For small screens------------*/

@media only screen and (max-width: 768px) {

    .box-area {
        margin: 0 10px;

    }

    .right-box {
        padding: 20px;
    }


}

@media only screen and (max-width: 765px) {

    .box-area {
        margin: 0 10px;

    }

    .left-box {
        height: 200px;
        overflow: hidden;
    }

    .right-box {
        padding: 20px;
    }

    .featured-image>img {
        width: 90px !important;
    }

    .featured-image {
        background-color: transparent;
        padding: 5px;
        border-radius: 10px;
    }

    .fs-3 {
        font-size: calc(1rem + .7vw) !important;
    }

    p {
        padding: 0;
        margin: 0;
    }
}