﻿:root {
    /*colors*/
    --clr-light-green: #005728;
    --clr-dark-green: #042714;
    --clr-white: #E7F0DC;
    --clr-gray: #d0d7d4;
    --clr-soft-green: #e8f1dd;
    --clr-green-prolusa: #119a4e;
}

* {
    font-family: 'Roboto', sans-serif;
}

/*General classes*/
.wrapper {
    display: flex;
}

.bg-account-layout {
    background: url(../images/bg-account.png) center/cover no-repeat;
}

.bg-dark-green {
    background-color: var(--clr-dark-green);
}

.bg-gray {
    background-color: var(--clr-gray)
}

.bg-light-green {
    background-color: var(--clr-light-green);
}

.bg-soft-green {
    background-color: var(--clr-soft-green);
}

.bg-green-prolusa {
    background-color: var(--clr-green-prolusa);
}

.text-dark-green {
    color: var(--clr-dark-green);
}

.text-light-green {
    color: var(--clr-light-green);
}

.text-green-prolusa {
    color: var(--clr-green-prolusa);
}

input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

/*header classes*/
.header {
    background-image: url('../images/fondo header con plantas.png');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 3.7rem);
    height: 5rem;
    min-height: 5rem;
    position: relative;
    box-sizing: border-box;
    margin-left: auto;
}

    /* Líneas decorativas */
    .header::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #c33537;
        z-index: 2;
    }

    .header::before {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 0;
        width: 100%;
        height: 7px;
        background-color: #119a4e;
        z-index: 2;
    }

/* Contenedor del logo - Modificado para móvil */
.logo-container {
    width: 180px;
    height: 100%;
    background-color: white;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    /* Ángulo menos pronunciado */
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding-right: 1rem; /* Espacio para el logo */
}

.logo-img {
    height: auto;
    max-height: 70%;
    width: auto;
    max-width: 90%; /* Asegura que no se corte */
    object-fit: contain;
}

/* Contenedor del contenido (usuario + notificaciones) */
.header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    justify-content: flex-end;
    padding-left: 0.5rem;
}

/* Información del usuario */
.user-info {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
    display: none;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Notificaciones */
.notifications {
    position: relative;
}

.notifications-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    position: relative;
    display: flex;
    align-items: center;
}

.notifications-icon {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.notifications-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

.notifications-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 0.5rem 0;
}

/* Media queries para tablet */
@media screen and (min-width: 576px) {
    .header {
        padding: 0 1rem;
        padding-left: 0;
    }

    .logo-container {
        width: 230px;
    }

    .logo-img {
        max-height: 75%;
        max-width: 95%;
    }

    .user-info {
        display: block;
        font-size: 1rem;
    }

    .header-content {
        gap: 0.8rem;
    }

    .notifications-icon {
        width: 24px;
        height: 24px;
    }
}

/* Media queries para desktop */
@media screen and (min-width: 768px) {
    .logo-container {
        width: 280px;
    }

    .user-info {
        font-size: 1.1rem;
    }

    .header-content {
        gap: 1rem;
    }
}

@media screen and (min-width: 992px) {
    .logo-container {
        width: 380px;
        padding-left: 2rem;
    }

    .user-info {
        font-size: 1.2rem;
    }

    .notifications-icon {
        width: 26px;
        height: 26px;
    }
}


/*Sidemenu classes*/
.sidebar {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 3.8fr 0.2fr;
    flex-direction: column;
    transition: width 0.3s ease-in-out;
    white-space: nowrap;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    width: 3.7rem;
    min-width: 3.7rem;
    justify-content: start;
    padding-top: 1rem;
    background-color: #042714;
    overflow-y: auto;
}

    .sidebar.active {
        background-color: #005728;
        width: fit-content;
    }


    .sidebar::-webkit-scrollbar {
        width: 6px; /* Ancho de la barra de desplazamiento */
    }

    .sidebar::-webkit-scrollbar-track {
        background: var(--clr-dark-green)
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #0f733c; /* Color de la parte deslizable */
        border-radius: 10px; /* Bordes redondeados */
    }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: #555; /* Color al pasar el mouse */
        }

    .sidebar.active::-webkit-scrollbar-track {
        background-color: var(--clr-light-green);
    }

    .sidebar.active::-webkit-scrollbar-thumb {
        background-color: var(--clr-dark-green);
    }


.sidebar__menu {
    grid-row: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    padding: 0;
}

.sidebar__item {
    color: white;
    font-weight: 500;
    padding: 0rem 0rem;
    transition: background 0.3s ease-in;
    display: flex;
}

    .sidebar__item:hover {
        cursor: pointer;
        background-color: rgba(255, 255, 255, 0.323);
    }

    .sidebar__item.active {
        background-color: rgba(255, 255, 255, 0.323);
    }

.sidebar__link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    padding: 0rem 0.5rem;
    font-size: 14px;
}

    .sidebar__link:hover {
        color: inherit;
    }

/*.sidebar__icon {
    margin-right: 0.8rem;
}
*/

.sidebar__icon {
    margin-right: 0.3rem;
    width: 2.8rem;
    height: 2.8rem;
}


.sidebar.active .sidebar__icon {
    margin-right: 0.5rem
}

.toggle-collapse {
    border: none;
    width: 2rem;
    height: 2rem;
    background: url(../images/arrow-icon.png) center/cover no-repeat;
    transition: transform 0.5s ease-in-out;
    transform: rotate(180deg);
    margin-right: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.3rem;
    grid-row: 2;
    margin-left: 1.3rem;
    margin-right: 1rem;
}


.sidebar.active .toggle-collapse {
    margin-left: auto;
    transform: rotate(360deg);
}


.main-container {
    padding-left: 5rem;
    transition: padding 0.3s ease-in-out;
    margin-top: 2.8rem;
}

/*Account layout classes*/
.account-container {
    max-width: 100%;
    margin-top: 7%;
}

/*Login classes*/
.input-login {
    background-color: #375343;
    color: white;
    border: none;
    border-radius: 0px;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
    transition: background-color 0.2s ease;
}

    .input-login:focus {
        color: black;
        background-color: white;
    }


/*Home classes*/
.home-card-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 11rem;
    height: 11rem;
    box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: #f5fcf7;
    border: 0.5px solid #d3e6dc;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #119a4e;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

    .home-card-link:hover {
        transform: translateY(-7px);
        box-shadow: 6px 6px 7px rgba(0, 0, 0, 0.9);
        color: #119a4e;
    }

.home-card-link__icon {
    width: 100%;
    height: 100%;
    padding: 0;
}

/*Admin classes*/
.bnt-add-admin {
    border: 2px solid var(--clr-light-green);
    padding: 0.5rem;
    text-decoration: none;
    color: var(--clr-light-green);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px;
    width: 15rem;
    display: flex;
    justify-content: center;
}

    .bnt-add-admin:hover {
        background-color: var(--clr-light-green);
        color: white;
    }

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--clr-dark-green);
}

.create-user-input {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--clr-light-green);
    width: 100%;
    max-width: 100%;
    border-radius: 0px;
    color: white;
    transition: background-color 0.2s ease;
}

    .create-user-input:focus {
        background-color: #375343;
        outline: none;
        box-shadow: none;
        border-color: white;
        color: white;
    }

/*Branch classes*/

.input-branch {
    background-color: transparent;
    border: 2px solid var(--clr-light-green);
    border-radius: 0px;
    margin-bottom: 0.5rem;
}

/*input file custom*/
.input-file-container {
    position: relative;
    max-width: 15rem;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-file {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    cursor: pointer;
    opacity: 0;
}

.input-image {
    cursor: pointer;
}


/*add link classes*/
.custom-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    color: var(--clr-light-green);
    text-decoration: none;
    font-size: 1.25rem;
}

    .custom-link::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--clr-light-green);
        left: 0;
        bottom: -7px;
        transform: scaleX(0);
        transform-origin: center bottom;
        transition: transform 0.3s ease;
    }

    .custom-link:hover {
        color: var(--clr-light-green);
    }

        .custom-link:hover::after {
            transform: scaleX(1);
        }


/*datatable classes*/
table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
    text-align: center !important;
}

table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date {
    text-align: center !important;
}

.dt-input {
    margin-right: 0.5rem;
}

/*calendar classes*/
.view-container {
    max-width: 100%;
    overflow-x: auto
}


.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas para los días de la semana */
    border: 1px solid #ccc;
}

.calendar-weekday {
    box-shadow: 0 0 0 1px #ccc; /* Color del borde */
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: white;
    background-color: var(--clr-green-prolusa)
}

.calendar-day {
    box-shadow: 0 0 0 1px #ccc; /* Color del borde */
    text-align: center;
    padding-top: 0.7rem;
    cursor: pointer;
    min-height: 6rem;
    font-size: 12px;
    font-weight: 500;
    color: rgb(60, 64, 67);
    padding-bottom: 0.5rem;
    padding-right: 0.3rem;
    padding-left: 0.3rem;
}

.prev-month-day, .next-month-day {
    background-color: rgba(244, 244, 244, 0.792);
    cursor: default;
    color: rgba(60, 64, 67, 0.581);
}

.day-number {
    padding: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.today > .day-number {
    background-color: var(--clr-green-prolusa);
    color: white;
}


.amount-citas {
    background-color: var(--clr-soft-green);
    padding: 0.3rem 2rem;
    width: fit-content;
    border-radius: 0.5rem;
    font-size: 14px;
    margin: 0 auto;
}

.today-btn {
    border: 1px solid rgb(218,220,224);
    background-color: transparent;
    border-radius: 3px;
    padding: 0.3rem 0.8rem;
    font-weight: 500;
    color: #4e4643;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0px 0.5px 0.5px rgba(0, 0, 0, 0.2);
}

    .today-btn:hover {
        background-color: rgba(244, 244, 244, 0.66)
    }

.change-date-btn {
    border: 0;
    background-color: transparent;
    border-radius: 50%;
    padding: 0.5rem;
    transition: box-shadow 0.3s ease-in-out;
}

    .change-date-btn:hover {
        background-color: rgba(244, 244, 244, 0.66)
    }
/* Estilos para la vista semanal */
.week-table {
    width: 100%;
    border-collapse: collapse;
}

    .week-table th,
    .week-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: center;
        font-size: 14px;
    }

    .week-table th {
        text-align: center;
        padding: 0.5rem;
        font-weight: 600;
        color: white;
        background-color: var(--clr-dark-green)
    }

    .week-table td {
        height: 50px;
    }

/* Estilos para la vista diaria */
.day-table {
    width: 100%;
    border-collapse: collapse;
}

    .day-table th,
    .day-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: center;
        font-size: 14px;
    }

    .day-table th {
        text-align: center;
        padding: 0.5rem;
        font-weight: 600;
        color: white;
        background-color: var(--clr-dark-green)
    }

    .day-table td {
        height: 50px;
    }

.hidden {
    display: none;
}

.dt-scroll-headInner {
    width: 100% !important;
}

.custom-width {
    width: 100% !important;
}

/*products classes*/
.product-img {
    transition: transform 0.5s ease;
    display: block;
}

    .product-img:hover {
        transform: scale(2);
        z-index: 10000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }


@media screen and (min-width: 572px) {
    .account-container {
        max-width: 38rem;
    }

    .sidebar {
        height: 100vh;
    }
}

@media screen and (min-width: 1500px) {
    .main-container {
        padding-left: 0;
    }
}

/*select2 styles*/
.select2-search__field::placeholder {
    color: var(--clr-dark-green); /* Cambia este color al que desees */
}

/*dropdown estados classes*/
#dropdownEstados {
    border-radius: 0.5rem;
    border: 1px solid #c1c1c1;
    list-style: none;
    padding: 0.5rem 0;
    background-color: white;
    display: none;
    height: fit-content;
    overflow-y: auto;
}



.dropdown-estados-item {
    text-decoration: none;
    color: #2B2D36;
    padding: 0.2rem 0.8rem;
    display: block;
    font-weight: 400;
    border-radius: 0;
    width: 100%;
    text-align: start
}

    .dropdown-estados-item:hover {
        background-color: #D2D6DA;
        color: #2B2D36;
    }

    .dropdown-estados-item:focus {
        background-color: #007BFF;
        color: white;
    }

#notificacionesContador {
    font-size: 0.75rem;
    position: relative;
    top: -15px;
    left: -10px;
}

.notificaciones-dropdown::after {
    display: none !important;
}

.dt-scroll-body {
    cursor: grab;
}

    .dt-scroll-body.dragging {
        cursor: grabbing;
    }
