:root{
    --orange: #f57c00;
    --light-orange: #fff3e6;
    --muted: #6c757d;
	
}

html,body{height:100%;}
body{
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #ffffff;
    color: #333;
    margin:0;
}


/* Sidebar */
.sidebar{
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    z-index: 1030;
    overflow-y: auto;
    padding-top: 18px;
}
.logo-img{ max-width: 150px; display:block; margin: 0 auto; }

/* Sidebar image icon (si usas png en la sección) */
.sidebar-icon{
    width:24px;
    height:24px;
    object-fit:contain;
    display:inline-block;
}

/* Icono de módulo en la lista (imagen) */
.module-icon-img{
    width:40px;
    height:40px;
    object-fit:contain;
    display:block;
}

/* Items */
.sidebar .nav-link{
    color: #495057;
    border-radius: 0;
    padding-left: 22px;
    padding-right: 22px;
    transition: background .12s, color .12s;
}
.sidebar .nav-link .fs-5{ width: 26px; text-align:center; }
.sidebar .nav-link:hover{
    background: rgba(245,124,0,0.04);
    color: var(--orange);
    text-decoration: none;
}
.sidebar .nav-link.active{
    background: var(--light-orange);
    color: var(--orange);
    font-weight: 600;
    border-left: 4px solid var(--orange);
}

/* Main wrapper offset to the right of the sidebar */
.main-wrap{
    margin-left: 240px;
    min-height: 100vh;
    display:flex;
    flex-direction:column;
}

/* Topbar */
.topbar{
    height: 72px;
    background: #fff;
    align-items:center;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.brand-title h1{ font-size: 20px; color: var(--orange); margin:0; padding-top:8px; }
.user-info .avatar-circle{
    width:46px;
    height:46px;
    border-radius:50%;
    background: transparent;
    border:1px solid #f4c9a5;
    display:flex;
    align-items:center;
    justify-content:center;
    color: var(--orange);
}

/* Content area */
.content-area{
    flex:1;
    background: #fff;
    min-height: calc(100vh - 72px);
    padding-top: 24px;
}

/* Módulos: filas tipo tarjeta grande */
#modules-title{ font-size: 28px; margin-bottom: 12px; }
.module-row .module-link{
    display:flex;
    align-items:center;
    gap: 12px;
    border: 1px solid rgba(0,0,0,0.04);
}
.module-link .icon-col{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background: rgba(245,124,0,0.04);
    color: var(--orange);
}
.module-link .chev-col{ width:36px; text-align:center; font-size:1.1rem; }

.module-link:hover{
    background: #fbfbfb;
    text-decoration:none;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 992px){
    .sidebar{ position: relative; width:100%; height:auto; }
    .main-wrap{ margin-left:0; }
    .topbar{ padding: 0.75rem 1rem; }
    .content-area{ padding: 2rem 1rem; }
}
.platform-container{
    min-height:420px;
    position:relative;
    padding:0;
    overflow:hidden;
}
.platform-loader{
    position:absolute;
    left:0; top:0; right:0;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.8);
    z-index:10;
    font-weight:600;
}
#platform-iframe{
    border:0;
    min-height:600px;
}
.user-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;              /* tamaño del círculo */
  height: 44px;
  padding: 0;               /* eliminar padding extra que puede volverlo ovalado */
  border-radius: 50%;       /* círculo perfecto */
  background-color: #ffffff;/* fondo blanco (ajusta si quieres transparente) */
  border: 1px solid #e6e6e6;
  box-shadow: none;
  color: inherit;           /* el color lo tomará el icono text-orange */
}

/* Forzar tamaño del icono dentro del botón y color naranja si falta */
.user-dropdown-btn .bi {
  font-size: 1.05rem;       /* tamaño del icono */
  line-height: 1;
}

/* Clase de color naranja por si no existe en tu CSS */
.text-orange {
  color: #ff7a00 !important; /* ajusta al tono naranja que uses */
}

/* Estados hover/focus */
.user-dropdown-btn:hover,
.user-dropdown-btn:focus {
  background-color: #fffaff; /* sutil */
  border-color: #f0cfa6;
  outline: none;
  box-shadow: 0 0 0 0.12rem rgba(255,122,0,0.08);
}

/* Forzar que el iframe ocupe el espacio disponible y muestre scroll si el contenido es mayor */

#platform-wrapper {
  width: 100%;
  position: relative;
  overflow: visible; /* permitir que iframe muestre su contenido si se redimensiona */
  min-height: 900px;
}

#platform-iframe {
  width: 100%;
  height: 100%; /* altura inicial: script la ajustará según mensaje */
  border: 0;
  display: block;
}

/* En caso el contenido interno no muestre scroll, forzamos scroll en el elemento iframe (solo si la página lo soporta) */
#platform-iframe {
  overflow: auto;
}
/* --- Login panel estilo imagen --- */
.login-view {
    background: #fdfdfd;
    min-height: 100vh;
    padding: 0;
}
.login-main-container {
    max-width: 1100px;
    box-shadow: 0 0 12px 0 rgba(18,25,39,0.07);
    border-radius: 15px;
    background: #fff;
    margin: 32px auto 0 auto;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    min-height: 590px;
}
.login-illustration {
    flex: 1.1; /* lado izquierdo */
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    min-height:340px;
    min-width:330px;
}
.login-illustration img {
    max-width: 99%;
    width: 320px;
    min-width: 280px;
    height: auto;
    display: block;
}

.login-form-panel {
    flex: 1.3;
    padding: 42px 42px 0 36px;
    min-width: 330px;
}

.login-title {
    font-size: 2rem;
    font-weight: bold;
    color: #222e35;
    margin-bottom: .25em;
}
.login-desc {
    color: #242d36;
    font-size: 1.15rem;
    margin-bottom: 36px;
    opacity: .85;
    line-height: 1.3;
}

.login-form .form-label {
    color: #212529;
    font-weight: 500;
    margin-bottom: 6px;
}
.login-form .form-control {
    border-radius: 7px;
    border: 1.3px solid #ececec;
    height: 44px;
    margin-bottom: 6px;
    font-size: 1rem;
}
.login-btn {
    margin-top: 22px;
    min-width: 210px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 7px;
    padding: 10px 0;
    transition: background .19s, color .19s;
    border: none;
}
.login-btn:active { 
    box-shadow: none;
}
.login-btn:disabled {
    cursor: not-allowed;
    background: #ff7a00 !important;
    color: #F8A66B !important;
}

.login-legend {
    text-align: right;
    max-width: 1100px;
    margin: 14px auto 0 auto;
    padding: 12px 22px;
    background: #ffab66;
    color: #fff;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    font-size:1.10rem;
}

@media (max-width: 900px){
    .login-main-container {
        flex-direction: column;
        padding: 0;
    }
    .login-form-panel {
        min-width: 220px;
        width:100%;
        padding: 32px 10vw 0 10vw;
    }
    .login-illustration { 
        min-width:0; 
        width:100%; 
        min-height:220px; 
        padding-top:20px; 
    }
}
@media (max-width: 600px){
    .login-main-container {
        border-radius: 0;
        margin: 0;
        min-height:420px;
    }
    .login-legend { padding: 9px 5vw; }
}