.ewa-wrapper * { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

.ewa-wrapper { 
  color: #e0e0e0; 
  min-height: 100vh; 
  border-radius: 0px; 
  overflow: hidden; 
  position: relative; 
}

.brand-logos { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  margin-bottom: 24px; 
}

.logo-agencia { 
  height: 32px !important; 
  max-width: 140px !important; 
  object-fit: contain; 
}

.logo-agencia-home {
  width: 60% !important;
}

.brand-separator { 
  color: #383b47; 
  font-weight: 300; 
  font-size: 1.2rem; 
}

.brand-client { 
  color: #fff; 
  font-weight: 800; 
  font-size: 1.1rem; 
  letter-spacing: 0.05em; 
}

.logo-client-img { 
  height: 30px; 
  max-width: 120px; 
  object-fit: contain; 
}

#login-modal { 
  position: absolute; 
  inset: 0; 
  z-index: 50; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
}

.login-box { 
  padding: 32px; 
  border-radius: 16px; 
  max-width: 400px; 
  width: 100%; 
  text-align: center; 
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); 
}

.login-title { 
  font-size: 1.25rem; 
  font-weight: 700; 
  color: #ffffff; 
  margin-bottom: 8px; 
}

.login-desc { 
  font-size: 0.875rem; 
  color: #8b8e9f; 
  margin-bottom: 24px; 
  line-height: 1.4; 
}

.form-input { 
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 0px !important;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s !important;
}

.form-input:focus { 
  border-color: #e53e3e; 
}

.btn-submit { 
  width: 100% !important; 
  padding: 12px !important; 
  font-weight: 600 !important; 
  border: none !important; 
  border-radius: 0px !important; 
  cursor: pointer !important; 
  transition: background-color 0.2s !important; 
}

.error-text { 
  color: #ef4444; 
  font-size: 0.8rem; 
  margin-bottom: 12px; 
  display: none; 
}

.hidden { 
  display: none !important; 
}

header { 
  height: 60px; 
  border-bottom: 1px solid #282a36; 
  padding: 0 24px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 40px 50px !important;     
}

.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.badge-lock { 
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-logout { 
  background: transparent;
  border: 1px solid #282a36;
  color: #8b8e9f;
  padding: 4px 10px;
  border-radius: 0px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover { 
  color: #ffffff; 
  border-color: #db871e; 
  background-color: #db871e; 
}

.layout-container { 
  display: flex; 
  flex-direction: column; 
  gap: 24px; 
  padding: 24px; 
  width: 100%; 
}

@media (min-width: 1024px) { 
  .layout-container { 
    flex-direction: row; 
  } 
}

.main-player { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.video-wrapper { 
  position: relative; 
  width: 100%; 
  padding-top: 56.25%; 
  border-radius: 16px; 
  overflow: hidden; 
  border: 1px solid #282a36; 
  transition: height 0.3s ease, padding 0.3s ease;
}

.video-wrapper.pdf-active {
  padding-top: 0 !important;
  height: 600px !important;
}

.video-wrapper iframe { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
}

.video-info { 
  padding: 20px 24px; 
  border-radius: 16px; 
  border: 1px solid #282a36; 
}

.video-modulo-tag { 
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.video-title { 
  font-size: 1.35rem; 
  color: #ffffff; 
  font-weight: 700; 
  margin-bottom: 6px; 
}

.video-desc { 
  font-size: 0.9rem; 
  color: #8b8e9f; 
  line-height: 1.5; 
}

.sidebar { 
  width: 100%; 
  border-radius: 16px; 
  border: 1px solid #282a36; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
}

@media (min-width: 1024px) { 
  .sidebar { 
    width: 380px; 
  } 
}

.sidebar-header { 
  font-size: 0.85rem; 
  font-weight: 700; 
  color: #8b8e9f; 
  text-transform: uppercase; 
  padding-bottom: 12px; 
  border-bottom: 1px solid #282a36; 
  margin-bottom: 12px; 
}

.playlist-scroll { 
  overflow-y: auto; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.module-group-title { 
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 8px 0 6px 8px;
}

.lesson-btn { 
  width: 100%; 
  text-align: left; 
  padding: 12px 14px; 
  border-radius: 10px; 
  background: transparent; 
  border: 1px solid transparent; 
  color: #c5c7d0; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-size: 0.875rem; 
  transition: all 0.2s; 
}

.lesson-btn:hover { 
  background-color: #20232c; 
  color: #ffffff; 
}

.play-icon { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  flex-shrink: 0; 
}

/* BARRA FLOTANTE OVERLAY */
.video-overlay-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  font-size: 0.85rem;
  max-width: 400px;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
}

.badge-logo-img {
  height: 30px !important;
  width: auto;
  object-fit: contain;
}

.badge-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.badge-toggle-btn {
  border: none;
  width: 32px;
  height: 41px;
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s, transform 0.2s;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
}

.badge-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.video-overlay-badge.collapsed .badge-content {
  max-width: 0;
  padding: 6px 0;
  opacity: 0;
}