
/* GENERAL STYLES */
.btn {
    box-shadow: none !important;
}

/* PAGE INDEX */
#page-site-index {
  #page {
    padding: 0;
    .rui-hero {
      border-radius: 0;
    }
  }
}

/* DASHBOARD */
#page-my-index {
  #block-region-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    > section.card {
      flex: 1;
      @media (max-width: 768px) {
        flex-basis: 100%;
        margin-bottom: 0;
      }
      .rui-course-card {
        border: solid 1px black;
      }
      &.block_xp {
        .card-text {
          border: solid 1px black;
          padding: 1.5rem;
          border-radius: 8px;
          margin-top: 15px;
        }
      }
    }
  }
  [data-display="card"] .rui-course-card-deck {
    grid-template-columns: 1fr;
  }
  #dashboardblock1 {
    .user-name {
      @media (max-width: 767.98px) {
        font-size: 2rem;
      }
    }
  }
}
body {
    &:not(#page-my-index) {
        #dashboardblock1, #dashboardblock2 {
            display: none !important;
        }
    } 
}

/* LOGO TOP BAR */
.rui-topbar-logo {
  position: relative;
  justify-content: flex-start;
  width: auto;
  max-width: 200px;
  height: auto;
  img {
    width: auto;
    max-width: 200px;
    object-fit: contain;
  }
}

/* NO LOGIN */

body.notloggedin {

  /* MENU TOP BAR */
  .rui-topbarlogo-wrapper {
    width: calc(100% - 140px);
  }
  nav.moremenu.observed {
    width: calc(100% - 140px) !important;
  }
  .rui-icon-menu {
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    .rui-login-btn {
      height: 40px;
    }
  }


}


/* my/courses.php */
body#page-my-index {
  &.page-mycourses {
    .rui-breadcrumbs,
    .rui-topbar-title {
      display: none !important;
    }
    /* Vista general de cursos */
    section.block_myoverview {
      #instance-5-header,
      div[data-region="filter"]{
        display: none !important;
      }
      .rui-course-card-deck {
        display: flex;
        align-items: center;
      }
      .rui-course-card {
        width: 100%;
        .rui-coursemenu-btn {
          display: none !important;
        }
      }
    }
  }
}

/* PAGE CURSO */

body.path-course.path-course-view  {
  &.role-student {
    .rui-breadcrumbs,
    .secondary-navigation {
      display: none !important;
    }
  }
  &.format-ludilearn {
    ul.nav-pills:not(:has(+ .card-body div.tab-pane#pills-lesson))  {
      display: none;
    }
  }
}

/* FOOTER*/
#s-page-footer{
  .rui-footer-logotypes-grid {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    .rui-footer-logotype-item-wrapper {
      flex-direction: column-reverse;
    }
  }
}

 /* Estilos del BotÃģn Flotante cookies*/
.cookie-float {
    position: fixed !important;
    bottom: 12px;
    right: 12px; /* Cambiar a 'right' si se prefiere en el otro lado */
    z-index: 1000;
    display: flex;
    align-items: center;
    background-color: #2b3035; /* Color oscuro tipo Bootstrap */
    color: white;
    padding: 6px 8px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    overflow: hidden;
    max-width: 40px; /* Estado inicial: solo icono */
        height: 40px;
    white-space: nowrap;
    /* border: 2px solid transparent; */
    i {
        font-size: 1.3rem;
        min-width: 24px;
        display: flex;
        justify-content: center;
    }
    .cookie-text {
        opacity: 0;
        margin-left: 0;
        font-weight: 500;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    &:hover {
        max-width: 220px; /* Se expande para mostrar el texto */
        padding-right: 20px;
        background-color: #495057;
        color: white;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        .cookie-text {
            opacity: 1;
            margin-left: 10px;
        }
    }
}
#back-to-top {
    @media (min-width: 768px) {
       right: 12px;
       bottom: 60px;
    }
}

/* page-local */
body#page-local-staticpage-view {
  .rui-breadcrumbs,
  .rui-topbar-title {
    display: none !important;
  }
}


/* PAGE RIGISTRO */

.form-control, .comment-area textarea, .usp-search-field, .path-mod-assign [data-region="grade-panel"] .comment-area textarea[cols], .form-select {
    box-shadow: none !important;
}
#page-login-signup {
  /* Acuerdo con las Condiciones del Sitio */
  .rui-ftoggler .ftoggler {
    background: transparent;
    border: var(--bs-border-width) solid var(--bs-border-color);
    padding: 4px 0px 4px 8px;
    h3 {
      font-size: var(--bs-font-size-xs);
      font-weight: var(--bs-font-weight-bold);
    }
  }
  .rui-login-layout--1 {
    .rui-login-box {
        width: 100%;
        max-width: 830px;
    }
  }
  @media (min-width: 992px) {
      .rui-login-box .rui-login-content {
          width: 600px;
      }
  }
  .btn--cookie {display: none !important;}
}

/* PAGE LOGIN*/
#page-login-index {
  .rui-login-layout--1 {
    .rui-login-box {
        max-width: 600px;
        .rui-login-content {
        width: 430px;
        @media (max-width: 499px) {
          width: auto;
        }
      }
    }
  }
  .btn--cookie {display: none !important;}
}

#page-wrapper {
  #page {
    @media (max-width: 767.98px){
      margin-top: 10px;
      padding: 0 10px;
    }
    &.drawers {
      @media (max-width: 767.98px) {
        overflow: initial;
      }
    }




    #supervideo_area_embed {
      iframe {
        height: 100% !important;
      }
    }
  }
}

/* Configuración vistas modulos/actividades */
body {
  &.path-mod {
    .activity-navigation {
      display: none;
    }
    &.role-student {
      .rui-breadcrumbs,
      .secondary-navigation {
        display: none !important;
      }
    }
  }
  &.format-ludilearn {
    .c100 .slice {
      overflow: hidden;
    }
  }
} 