/********** Template CSS **********/
:root {
    --primary: #00295E;
    --light: #F3F6F9;
    --dark: #191C24;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--light);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: #FFFFFF;
    transition: 0.5s;
    width: calc(100vw - 250px);
    padding: 0;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100vw - 250px);
        margin-left: 250px;
    }

    .content.open {
        width: 100vw;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100vw;
        margin-left: 0;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 4px 15px;
    color: var(--dark);
    font-weight: 500;
    border-left: 3px solid var(--light);
    border-radius: 0 30px 30px 0;
    outline: none;
    margin-bottom: 2px;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: #FFFFFF;
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 30px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--light);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 20px;
    border-radius: 0 30px 30px 0;
    padding-top: 3px;
    padding-bottom: 3px;
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 20px;
    padding: 8px 0;
    color: var(--dark);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 35px;
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}

    .modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* color de fondo oscuro semitransparente */
        z-index: 1040; /* z-index menor que el modal para que esté detrás de él */
        backdrop-filter: blur(10px); /* aplica un desenfoque al fondo */
    }

    .custom-card {
    display: flex;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .5);
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
    margin: 1rem;
    position: relative;
    transform-style: preserve-3d;

}

.custom-img  {
    width: 20%;
    max-width: 30%;
    height: auto;
    background-color: transparent; /* Hace que el fondo sea transparente */
    box-shadow: none; /* Elimina cualquier sombra aplicada */
}

.custom-img img {
    width: 100%; /* Ajusta el ancho de la imagen al 100% del contenedor */
    height: auto; /* Altura automática para mantener la proporción */
}


.custom-infos {
      width: 100%;
  margin-left: 1.5rem;
}

.custom-name {
  margin-bottom: 1rem;
}

.custom-name h2 {
  font-size: 1.3rem;
}

.custom-name h4 {
  font-size: .8rem;
  color: #333
}

.custom-text {
  font-size: .9rem;
}
/* Estilos generales para los ul y li */
.custom-stats {
    list-style-type: none;
    padding: 0;
}

.custom-stats li {
    margin-bottom: 15px;
}

/* Estilos para los títulos y subtítulos */
.custom-stats li h3 {
    font-size: 0.99rem;
    font-weight: 300;
    /* Letra más delgada */
}

.custom-stats li h4 {
    font-size: 0.75rem;
    font-weight: 700;
    /* Negrita */
}

/* Estilos para pantallas pequeñas */
@media (max-width: 767px) {
    .custom-stats-wrapper {
        display: flex;
        flex-wrap: wrap;
    }

    .custom-stats-wrapper .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .custom-stats-wrapper ul {
        padding: 0;
    }

    .custom-stats-wrapper li {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    /* Ajustes específicos para pantallas pequeñas */
    .custom-stats li {
        font-size: 0.8rem;
        /* Letra más pequeña */
    }

    .custom-stats li h3 {
        font-size: 0.8rem;
        /* Letra más pequeña */
        font-weight: 300;
        /* Letra más delgada */
    }

    .custom-stats li h4 {
        font-size: 0.75rem;
        /* Letra más pequeña */
        font-weight: 700;
        /* Negrita */
    }
}

.custom-links button {
  font-family: 'Poppins', sans-serif;
  min-width: 120px;
  padding: .5rem;
  border: 1px solid #222;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all .25s linear;
}

.custom-links .custom-follow,
.custom-links .custom-view:hover {
  background-color: #222;
  color: #FFF;
}

.custom-links .custom-view,
.custom-links .custom-follow:hover {
  background-color: transparent;
  color: #222;
}

@media screen and (max-width: 450px) {
  .custom-card {
    display: block;
  }
  .custom-infos {
    margin-left: 0;
    margin-top: 1.5rem;
  }
  .custom-links button {
    min-width: 100px;
  }
}



.custom-links button {
  font-family: 'Poppins', sans-serif;
  min-width: 120px;
  padding: .5rem;
  border: 1px solid #222;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all .25s linear;
}

.custom-links .custom-follow,
.custom-links .custom-view:hover {
  background-color: #222;
  color: #FFF;
}

.custom-links .custom-view,
.custom-links .custom-follow:hover {
  background-color: transparent;
  color: #222;
}

@media screen and (max-width: 450px) {
  .custom-card {
    display: block;
  }
  .custom-infos {
    margin-left: 0;
    margin-top: 1.5rem;
  }
  .custom-links button {
    min-width: 100px;
  }
}


.progress-container {
  width: 95%;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 80%;
  background: linear-gradient(to right, rgb(36, 123, 253) 0%, green 25%, yellow 50%, rgb(255, 0, 0) 100%);
  transition: width 0.5s ease, background 0.5s ease; /* Agregando la transición para el fondo */
}

.progress-labels {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
    .notification-count {
        position: absolute;
        top: 10px; /* Ajustamos la posición para centrar el círculo verticalmente */
        left: 5px;
        color: red;
        border-radius: 50%;
        padding: 3px; /* Reducimos el espacio dentro del círculo */
        font-size: 14px; /* Disminuimos el tamaño del número */
        font-weight: bold; /* Hacemos la letra más gruesa */
    }

    .nav-link {
        position: relative;
    }

    .completed-task {
    text-decoration: line-through; /* Aplicar un estilo de línea a través del texto */
}
.red-asterisk {
    color: red;
}

#notificationDropdown {
    color: white;
    width: 40vw; /* Ocupa el 50% del ancho visible por defecto */
    right: 0; /* Alineado al borde derecho */
}

@media (max-width: 768px) {
    #notificationDropdown {
        width: 50vw; /* Ocupa el 70% del ancho en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    #notificationDropdown {
        width: 70vw; /* Ocupa el 90% del ancho en pantallas muy pequeñas */
    }
}

  /* Sidebar ultra compacta - overrides */
        .nav-section {
            margin-bottom: 0.15rem;
        }
        
        .nav-section-title {
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #8e9aaf;
            margin-bottom: 0.1rem;
            padding: 0.05rem 0.25rem;
            background-color: transparent;
            line-height: 1.1;
        }
        
        .nav-section-divider {
            height: 1px;
            background-color: #e1e5e9;
            margin: 0.15rem 0;
        }
        
        .navbar-nav .nav-link {
            padding: 0.2rem 0.25rem;
            margin-bottom: 0.02rem;
            border-radius: 3px;
            transition: all 0.15s ease;
            font-weight: 400;
            font-size: 0.8rem;
            color: #495057;
            display: flex;
            align-items: center;
            line-height: 1.2;
            min-height: auto;
        }
        
        .navbar-nav .nav-link:hover {
            background-color: #f8f9fa;
            color: #495057;
            padding-left: 0.5rem;
        }
        
        .navbar-nav .nav-link.active {
            background-color: transparent;
            color: #007bff;
            font-weight: 500;
        }
        
        .navbar-nav .nav-link.active:hover {
            background-color: #f8f9fa;
            padding-left: 0.5rem;
        }
        
        /* Dropdown menu ultra compacto */
        .dropdown-menu {
            background-color: #ffffff;
            border: none;
            border-radius: 0;
            box-shadow: none;
            padding: 0;
            margin-left: 0.25rem;
            margin-top: 0.05rem;
        }
        
        .dropdown-item {
            padding: 0.15rem 0.25rem;
            border-radius: 0;
            margin: 0;
            transition: all 0.15s ease;
            font-size: 0.875rem;
            color: #6c757d;
            display: flex;
            align-items: center;
            line-height: 1.1;
            min-height: auto;
        }
        
        .dropdown-item:hover {
            background-color: #f8f9fa;
            color: #495057;
            padding-left: 0.4rem;
        }
        
        .dropdown-item.active {
            background-color: transparent;
            color: #007bff;
            font-weight: 500;
        }
        
        .dropdown-header {
            font-size: 0.55rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #8e9aaf;
            padding: 0.15rem 0.25rem 0.05rem;
            margin-top: 0.05rem;
            background-color: transparent;
            line-height: 1.0;
        }
        
        .dropdown-divider {
            margin: 0.1rem 0;
            border-color: #e1e5e9;
            opacity: 0.5;
        }
        
        /* Iconos ultra compactos */
        .nav-link i {
            width: 12px;
            text-align: center;
            margin-right: 0.3rem;
            font-size: 0.7rem;
            opacity: 0.7;
            flex-shrink: 0;
        }
        
        .dropdown-item i {
            width: 10px;
            text-align: center;
            margin-right: 0.25rem;
            font-size: 0.65rem;
            opacity: 0.6;
            flex-shrink: 0;
        }
        
        .nav-section-title i {
            width: 10px;
            font-size: 0.6rem;
            margin-right: 0.25rem;
        }
        
        .nav-link:hover i,
        .nav-link.active i {
            opacity: 1;
        }
        
        .dropdown-item:hover i,
        .dropdown-item.active i {
            opacity: 1;
        }
        
        /* Títulos de sección sin decoraciones */
        .nav-section-title:has(.text-primary),
        .nav-section-title:has(.text-success),
        .nav-section-title:has(.text-warning),
        .nav-section-title:has(.text-danger),
        .nav-section-title:has(.text-info),
        .nav-section-title:has(.text-secondary) {
            border: none;
            background: transparent;
        }
        
        /* Iconos de colores más sutiles */
        .nav-section-title .text-primary { color: #8e9aaf !important; }
        .nav-section-title .text-success { color: #8e9aaf !important; }
        .nav-section-title .text-warning { color: #8e9aaf !important; }
        .nav-section-title .text-danger { color: #8e9aaf !important; }
        .nav-section-title .text-info { color: #8e9aaf !important; }
        .nav-section-title .text-secondary { color: #8e9aaf !important; }
        
        /* Responsive más compacto */
        @media (max-width: 768px) {
            .nav-section-title {
                font-size: 0.6rem;
                padding: 0.08rem 0.25rem;
            }
            
            .navbar-nav .nav-link {
                padding: 0.2rem 0.25rem;
                font-size: 0.75rem;
            }
            
            .dropdown-item {
                padding: 0.15rem 0.25rem;
                font-size: 0.7rem;
            }
        }
        
        /* Sin animaciones */
        .navbar-nav {
            animation: none;
        }
        
        /* Contraste para texto activo */
        .nav-link.active,
        .dropdown-item.active {
            color: #007bff;
        }
        
        /* Espaciado ultra compacto para dropdown headers */
        .dropdown-header:first-child {
            padding-top: 0.1rem;
        }
        
        /* Reducir altura de línea global */
        .navbar-nav {
            line-height: 1.2;
        }
        
        /* Eliminar espacios extra */
        .navbar-nav .nav-item {
            margin-bottom: 0;
        }
        
        .dropdown-menu .dropdown-item:last-child {
            margin-bottom: 0;
        }

        /* Responsive Content Optimization */
        .container-xxl {
            max-width: 100%;
            padding: 0;
            margin: 0;
        }

        .content {
            overflow-x: hidden;
            padding: 0;
        }

        .content main {
            max-width: 100%;
            overflow-x: auto;
        }

        /* Responsive tables and content */
        .table-responsive {
            overflow-x: auto;
            margin: 0;
        }

        /* Full width containers */
        .container-fluid {
            padding-left: 0;
            padding-right: 0;
            max-width: 100%;
        }

        /* Responsive cards and panels */
        .card, .panel {
            margin-left: 0;
            margin-right: 0;
        }

        /* Adjust content padding for smaller screens */
        @media (max-width: 768px) {
            .content {
                padding: 0;
                width: 100vw !important;
                margin-left: 0 !important;
            }
            
            .content main {
                padding-left: 10px;
                padding-right: 10px;
            }
            
            .sidebar {
                width: 220px;
            }
        }

        @media (max-width: 480px) {
            .content {
                width: 100vw !important;
                margin-left: 0 !important;
            }
            
            .content main {
                padding-left: 5px;
                padding-right: 5px;
            }
            
            .sidebar {
                width: 200px;
            }
            
            .navbar {
                padding-left: 5px;
                padding-right: 5px;
            }
        }

        /* Ensure no horizontal overflow */
        body {
            overflow-x: hidden;
        }

        /* Make tables more responsive */
        .table {
            margin-bottom: 0;
        }

        /* Responsive navbar adjustments */
        .navbar {
            padding-left: 10px;
            padding-right: 10px;
        }

        /* Main content responsive adjustments */
        .main-content {
            margin-left: 0;
            margin-right: 0;
            padding-left: 15px;
            padding-right: 15px;
            width: 100%;
            box-sizing: border-box;
        }

        /* Mobile specific adjustments */
        @media (max-width: 768px) {
            .main-content {
                padding-left: 10px;
                padding-right: 10px;
                margin-top: -15px !important;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                padding-left: 8px;
                padding-right: 8px;
                margin-top: -10px !important;
            }
        }

        @media (max-width: 375px) {
            .main-content {
                padding-left: 5px;
                padding-right: 5px;
            }
        }