/* ================================
   DASHBOARD GRID STYLES
   ================================ */

/* Asegurar scroll vertical en toda la página */
html {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-y: visible;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Dashboard Principal */
.dashboard-main {
  min-height: 100vh;
  background: transparent;
  padding: 2rem;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  z-index: 100;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Estados de transición del dashboard */
.dashboard-main.hiding {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.dashboard-main.showing {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Header del Dashboard */
.dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.header-content {
  margin-bottom: 0;
}

/* Contenedor principal del launcher */
.launcher-container {
  overflow-y: visible;
  min-height: auto;
}

/* Grid de aplicaciones del launcher */
.launcher-apps-grid {
  overflow-y: visible;
  min-height: auto;
}

/* Controles de usuario globales - Siempre visibles */
.global-user-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Controles de usuario en esquina superior derecha (legacy) */
.user-controls {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 120;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.user-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.user-icon {
  font-size: 1.2rem;
}

.user-text {
  font-weight: 500;
}

/* Contenedor del título con botón de créditos */
.header-with-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

/* Botón de créditos con efecto glowing rainbow */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% { 
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* Ajustes específicos para el botón de créditos */
.dashboard-header .credits-btn-header {
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

/* Estilos antiguos del botón de créditos eliminados - Ahora usa button-85 */

/* Variaciones por tema eliminadas - El botón button-85 mantiene su diseño único */

.dashboard-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffbb00 0%, #ffc400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  letter-spacing: -0.02em;
}

/* Estilos del título PROFENINJA para cada tema */
body.theme-dark .dashboard-title {
  background: linear-gradient(135deg, #ae81ff 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(174, 129, 255, 0.4);
}

body.theme-light .dashboard-title {
  background: linear-gradient(135deg, #c55700 0%, #ff9900 50%, #874400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(255, 154, 158, 0.4);
}

body.theme-rosa .dashboard-title {
  background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(255, 110, 199, 0.5);
  }

  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(144, 164, 174, 0.4);
}

.dashboard-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Estilos del subtítulo para cada tema */
body.theme-dark .dashboard-subtitle {
  color: rgba(174, 129, 255, 0.9);
  text-shadow: 0 2px 10px rgba(174, 129, 255, 0.3);
}

body.theme-light .dashboard-subtitle {
  color: rgba(255, 107, 53, 0.9);
  text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

body.theme-rosa .dashboard-subtitle {
  color: rgba(233, 30, 99, 0.9);
  text-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

/* Barra de búsqueda */
.search-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 1px solid #dddddd;
  border-radius: 50px;
  background: #ffffff;
  color: #333333;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.search-input::placeholder {
  color: #888888;
}

.search-input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  border-color: rgba(102, 126, 234, 0.5);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  pointer-events: none;
}

/* Selector de temas en header */
.header-theme-selector {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-theme-btn {
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.header-theme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.header-theme-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-theme-btn:hover::before {
  transform: translateX(100%);
}

.header-theme-btn.active {
  background: #667eea;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
  border-color: #667eea;
}

/* Filtros de categoría */
.category-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  background: #ffffff;
  color: #667eea;
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Grid de Herramientas */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 110;
  justify-items: center;
}

/* Tarjetas de herramientas - Nuevo diseño moderno */
.tool-card {
  position: relative;
  z-index: 555;
  max-width: 11.9rem;
  min-height: 11.9rem;
  width: 100%;
  display: grid;
  place-content: center;
  place-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0.063em 0.75em 1.563em rgb(0 0 0 / 78%);
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tool-card::before {
  position: absolute;
  content: "";
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 2.25rem;
  z-index: -1;
  border: 0.155rem solid transparent;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Estructura de las tarjetas */
.card-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45em 0.3em 0em 0.9em;
}

.card-header .date {
  display: none;
}

.card-header svg {
  color: #fff;
  width: 1.5rem;
  cursor: pointer;
}

.card-body {
  position: absolute;
  width: 100%;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.7em 1.25em 0.5em 1.5em;
}

.card-body h3 {
  color: #fff;
  font-size: 1.04rem;
  margin-top: 0.45em;
  margin-bottom: 0.15em;
  text-transform: capitalize;
  font-weight: 600;
}

.card-body p {
  color: #ddd;
  font-size: 0.75rem;
  letter-spacing: 0.031rem;
  margin-bottom: 0.6rem;
}

.progress {
  display: none;
}

.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-top: 0.063rem solid #292929;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45em 0.75em 0.3em 0.9em;
  background: #151419;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.card-footer ul {
  display: none;
}

.btn-countdown {
  background: #222127;
  color: #fff;
  border-radius: 1.2em;
  padding: 0.37rem 0.9rem;
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-countdown:hover {
  background: #333;
}

/* Estilos de colores para las tarjetas */
.green {
  background: radial-gradient(
    ellipse at right top,
    #107667ed 0%,
    #151419 47%,
    #151419 100%
  );
}

.green::before {
  background: linear-gradient(
      45deg,
      #232228,
      #232228,
      #232228,
      #232228,
      #01c3a8
    )
    border-box;
}

.green .btn-add {
  background: #01c3a8;
}

.green .btn-countdown:hover {
  background: #01c3a8;
}

.blue {
  background: radial-gradient(
    ellipse at right top,
    #00458f8f 0%,
    #151419 45%,
    #151419 100%
  );
}

.blue::before {
  background: linear-gradient(
      45deg,
      #232228,
      #232228,
      #232228,
      #232228,
      #1890ff
    )
    border-box;
}

.blue .btn-add {
  background: #1890ff;
}

.blue .btn-countdown:hover {
  background: #1890ff;
}

.orange {
  background: radial-gradient(
    ellipse at right top,
    #ffb74194 0%,
    #151419 47%,
    #151419 100%
  );
}

.orange::before {
  background: linear-gradient(
      45deg,
      #232228,
      #232228,
      #232228,
      #232228,
      #ffb741
    )
    border-box;
}

.orange .btn-add {
  background: #ffb741;
}

.orange .btn-countdown:hover {
  background: #ffb741;
}

.red {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a82 0%,
    #151419 47%,
    #151419 100%
  );
}

.red::before {
  background: linear-gradient(
      45deg,
      #232228,
      #232228,
      #232228,
      #232228,
      #a63d2a
    )
    border-box;
}

.red .btn-add {
  background: #a63d2a;
}

.red .btn-countdown:hover {
  background: #a63d2a;
}

/* ========================================= */
/* GRADIENTES ADAPTATIVOS POR TEMA */
/* ========================================= */

body.theme-dark .green {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

body.theme-dark .blue {
  background: radial-gradient(
    ellipse at right top,
    #00458f8f 0%,
    #1a1a2e 45%,
    #16213e 100%
  ) !important;
}

body.theme-dark .orange {
  background: radial-gradient(
    ellipse at right top,
    #ffb74194 0%,
    #1a1a2e 47%,
    #16213e 100%
  ) !important;
}

body.theme-dark .red {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

/* TEMA LIGHT - Fondo claro con gradientes suaves */
body.theme-light .green {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

body.theme-light .blue {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

body.theme-light .orange {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

body.theme-light .red {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #f0f8ff00 47%,
    #e6f3ff00 100%
  ) !important;
}

/* TEMA ROSA - Fondo rosado con gradientes románticos */
body.theme-rosa .green {
  background: radial-gradient(
    ellipse at right top,
    #107667ed 0%,
    #fdf2f8 47%,
    #fce7f3 100%
  ) !important;
}

body.theme-rosa .blue {
  background: radial-gradient(
    ellipse at right top,
    #00458f8f 0%,
    #fdf2f8 45%,
    #fce7f3 100%
  ) !important;
}

body.theme-rosa .orange {
  background: radial-gradient(
    ellipse at right top,
    #ffb74194 0%,
    #fdf2f8 47%,
    #fce7f3 100%
  ) !important;
}

body.theme-rosa .red {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

/* TEMA NEON - Fondo negro con gradientes neón */
body.theme-neon .green {
  background: radial-gradient(
    ellipse at right top,
    #107667ed 0%,
    #000000 47%,
    #111111 100%
  ) !important;
}

body.theme-neon .blue {
  background: radial-gradient(
    ellipse at right top,
    #00458f8f 0%,
    #000000 45%,
    #111111 100%
  ) !important;
}

body.theme-neon .orange {
  background: radial-gradient(
    ellipse at right top,
    #ffb74194 0%,
    #000000 47%,
    #111111 100%
  ) !important;
}

body.theme-neon .red {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a00 0%,
    #1a1a2e00 47%,
    #16213e00 100%
  ) !important;
}

/* TEMA CUSTOM - Fondo adaptativo */
body.theme-custom .green {
  background: radial-gradient(
    ellipse at right top,
    #107667ed 0%,
    var(--bg-primary, #151419) 47%,
    var(--bg-secondary, #151419) 100%
  ) !important;
}

body.theme-custom .blue {
  background: radial-gradient(
    ellipse at right top,
    #00458f8f 0%,
    var(--bg-primary, #151419) 45%,
    var(--bg-secondary, #151419) 100%
  ) !important;
}

body.theme-custom .orange {
  background: radial-gradient(
    ellipse at right top,
    #ffb74194 0%,
    var(--bg-primary, #151419) 47%,
    var(--bg-secondary, #151419) 100%
  ) !important;
}

body.theme-custom .red {
  background: radial-gradient(
    ellipse at right top,
    #a63d2a82 0%,
    var(--bg-primary, #151419) 47%,
    var(--bg-secondary, #151419) 100%
  ) !important;
}

/* Contenido de las tarjetas - Estilos legacy mantenidos para compatibilidad */
.tool-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.3rem;
  text-shadow: none;
}

.tool-description {
  color: #666666;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: auto;
  flex-grow: 1;
}

/* Tags de categoría */
.tool-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.calculadora-tag {
  background: #e3e8ff;
  color: #667eea;
  border: 1px solid #667eea;
}

.herramientas-tag {
  background: #e3f9f0;
  color: #43e97b;
  border: 1px solid #43e97b;
}

.configuracion-tag {
  background: #ffe3e5;
  color: #ff9a9e;
  border: 1px solid #ff9a9e;
}

/* Mini selector de temas */
.mini-theme-selector {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.22rem;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.37rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

.mini-theme-btn {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mini-theme-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.mini-theme-btn.active {
  background: #667eea;
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Estados ocultos para filtros */
.tool-card.hidden {
  display: none;
}

/* Animaciones de entrada */
.tool-card {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
    gap: 1.04rem;
  }
  
  .tool-card {
    min-height: 10.4rem;
    max-width: 10.4rem;
  }

  .card-body h3 {
    font-size: 0.97rem;
  }

  .card-body p {
    font-size: 0.67rem;
  }

  .card-header svg {
    width: 1.34rem;
  }

  .card-footer ul {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-main {
    padding: 1rem;
  }
  
  .dashboard-title {
    font-size: 2.5rem;
  }
  
  .dashboard-subtitle {
    font-size: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(149px, 1fr));
    gap: 0.89rem;
    padding: 0;
  }
  
  .tool-card {
    min-height: 9.7rem;
    max-width: 9.7rem;
  }
  
  .card-body h3 {
    font-size: 0.89rem;
  }
  
  .card-body p {
    font-size: 0.6rem;
  }

  .card-header .date {
    display: none;
  }

  .card-header svg {
    width: 1.19rem;
  }

  .btn-countdown {
    padding: 0.3rem 0.75rem;
    font-size: 0.6rem;
  }

  .card-footer ul {
    display: none;
  }
  
  .category-filters {
    gap: 0.3rem;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Botón de usuario responsive */
  .user-controls {
    top: 10px;
    right: 10px;
  }

  .user-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .user-icon {
    font-size: 1rem;
  }

  /* Ajustes para el botón de créditos en móviles */
  .header-with-credits {
    flex-direction: column;
    gap: 0.8rem;
  }

  .dashboard-header .credits-btn-header {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tool-card {
    min-height: 8.9rem;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .card-body h3 {
    font-size: 0.82rem;
  }

  .card-body p {
    font-size: 0.52rem;
  }
  
  .card-header .date {
    display: none;
  }

  .card-header svg {
    width: 1.04rem;
  }
  
  .btn-countdown {
    padding: 0.3rem 0.6rem;
    font-size: 0.52rem;
  }

  .card-footer ul {
    display: none;
  }
  
  .mini-theme-btn {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }
  
  .header-content {
    margin-bottom: 1.5rem;
  }
  
  .search-container {
    margin-bottom: 1.5rem;
  }
  
  .dashboard-header {
    margin-bottom: 2rem;
  }

  /* Botón de usuario en móviles */
  /* Botón global responsivo para móviles */
  .global-user-controls {
    top: 10px;
    right: 10px;
  }

  .user-controls {
    top: 5px;
    right: 5px;
  }

  .user-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .user-text {
    display: none; /* Solo mostrar el icono en móviles muy pequeños */
  }

  .user-icon {
    font-size: 1.2rem;
  }
  
  /* Header theme selector responsive */
  .header-theme-selector {
    gap: 0.5rem;
    padding: 0.6rem;
    margin: 0.8rem 0;
}

  .header-theme-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Ajustes para temas específicos - Tarjetas modernas aplicadas a todos los temas */
/* Las tarjetas ahora usan el diseño moderno consistente en todos los temas */

/* Ocultar otros elementos cuando dashboard está activo */
.dashboard-active .side-menu {
  display: none;
}

.dashboard-active .container {
  margin-left: 0;
  width: 100%;
}

/* Botón de regreso al dashboard */
.back-to-dashboard {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-100px) scale(0.8);
}

.back-to-dashboard.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.back-to-dashboard:hover {
  background: #f8f9fa;
  transform: translateX(0) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.theme-dark .search-input {
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #ffffff;
}

body.theme-dark .search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.theme-dark .search-icon {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-dark .filter-btn {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #ffffff;
}

body.theme-dark .filter-btn.active {
  background: rgba(102, 126, 234, 0.8);
  border-color: #667eea;
}

/* Tema Claro - Elementos de interfaz */
body.theme-light .search-input {
  background: #fff8e1;
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #d84315;
}

body.theme-light .search-input::placeholder {
  color: rgba(216, 67, 21, 0.6);
}

body.theme-light .search-icon {
  color: #e65100;
}

body.theme-light .filter-btn {
  background: #fff8e1;
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #d84315;
}

body.theme-light .filter-btn.active {
  background: rgba(255, 193, 7, 0.8);
  border-color: #ffc107;
  color: #d84315;
}

/* Tema Rosa - Elementos de interfaz */
body.theme-rosa .search-input {
  background: #fce4ec;
  border: 1px solid rgba(233, 30, 99, 0.3);
  color: #ad1457;
}

body.theme-rosa .search-input::placeholder {
  color: rgba(173, 20, 87, 0.6);
}

body.theme-rosa .search-icon {
  color: #c2185b;
}

body.theme-rosa .filter-btn {
  background: #fce4ec;
  border: 1px solid rgba(233, 30, 99, 0.3);
  color: #ad1457;
}

body.theme-rosa .filter-btn.active {
  background: rgba(233, 30, 99, 0.8);
  border-color: #e91e63;
  color: #ffffff;
}

/* Transiciones para paneles de herramientas */
#calc-panel, #escala-panel, #multi-panel, 
#word-counter-panel, #rubricas-panel {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

#calc-panel.visible, #escala-panel.visible, #multi-panel.visible,
#word-counter-panel.visible, #rubricas-panel.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================================
   PANEL DE TEMAS VISUALES - REDISEÑO COMPACTO
   ================================ */

/* Contenedor principal del panel de temas */
.themes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Sección de temas predefinidos */
.themes-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.themes-section h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.predefined-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.theme-option {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.theme-option:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.theme-preview {
  width: 100%;
  height: 35px;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.preview-header {
  height: 12px;
  width: 100%;
}

.preview-content {
  display: flex;
  gap: 2px;
  padding: 4px;
  height: 23px;
}

.preview-card {
  flex: 1;
  border-radius: 2px;
  opacity: 0.8;
}

.theme-option h4 {
  color: #2c3e50;
  margin: 0.3rem 0 0.2rem 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.theme-option p {
  color: #5a6c7d;
  font-size: 0.65rem;
  margin-bottom: auto;
  line-height: 1.2;
  flex-grow: 1;
}

.apply-theme-btn {
  width: 100%;
  padding: 5px 8px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

/* Sección del editor de fondos - COMPACTA */
.background-editor-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  height: fit-content;
}

.background-editor-section h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.editor-controls {
  margin-bottom: 1rem;
}

/* Controles de colores COMPACTOS */
.color-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.control-group label {
  color: #2c3e50;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Selectores de color MÁS PEQUEÑOS */
.control-group input[type="color"] {
  width: 100%;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
}

.control-group input[type="color"]:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

.control-group input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
  cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.color-value, .range-value {
  color: #2c3e50;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-weight: bold;
}

/* Controles de tipo de fondo COMPACTOS */
.background-type-controls {
  margin-bottom: 0.8rem;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.background-type-controls h4 {
  color: #2c3e50;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.radio-group {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #2c3e50;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background: rgba(102, 126, 234, 0.1);
}

.radio-option input[type="radio"] {
  accent-color: #667eea;
  transform: scale(1.1);
}

.gradient-controls {
  margin-top: 0.6rem;
  padding: 0.6rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Vista previa COMPACTA */
.background-preview {
  margin-bottom: 1rem;
}

.background-preview h4 {
  color: #2c3e50;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.preview-container {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.preview-dashboard {
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.preview-header {
  text-align: center;
  margin-bottom: 0.6rem;
}

.preview-header h5 {
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.preview-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.6rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.preview-cards {
  display: flex;
  gap: 0.4rem;
  flex: 1;
}

.preview-tool-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.4rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  margin: 0 auto 0.3rem auto;
}

.preview-tool-card h6 {
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.preview-tool-card p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.55rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Acciones del editor COMPACTAS */
.editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.editor-actions button {
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
  grid-column: 1 / -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #2c3e50;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: rgba(102, 126, 234, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* Paletas guardadas COMPACTAS */
.saved-palettes {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
}

.saved-palettes h4 {
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.palettes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.6rem;
  max-height: 150px;
  overflow-y: auto;
}

.saved-palette {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.saved-palette:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.palette-preview {
  width: 100%;
  height: 30px;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.palette-name {
  color: #2c3e50;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.palette-actions {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
}

.palette-btn {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.palette-btn.apply {
  background: #667eea;
  color: white;
}

.palette-btn.apply:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.palette-btn.delete {
  background: #ff4757;
  color: white;
}

.palette-btn.delete:hover {
  background: #ff3742;
  transform: translateY(-1px);
}

.apply-theme-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive para layout compacto */
@media (max-width: 1024px) {
  .themes-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .predefined-themes {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
  }
  
  .color-controls {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 768px) {
  .themes-container {
    margin-top: 0.5rem;
  }
  
  .themes-section,
  .background-editor-section {
    padding: 1rem;
  }
  
  .predefined-themes {
    grid-template-columns: 1fr 1fr;
  }
  
  .editor-actions {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .preview-container {
    height: 100px;
  }
  
  .palettes-list {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
  .themes-section,
  .background-editor-section {
    padding: 0.8rem;
  }
  
  .theme-preview {
    height: 30px;
  }
  
  .preview-container {
    height: 80px;
  }
  
  .control-group input[type="color"] {
    height: 24px;
  }
  
  .color-value,
  .range-value {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
}

/* ================================
   TEMA PERSONALIZADO
   ================================ */

/* Tema Personalizado - Variables dinámicas */
body.theme-custom {
  background: var(--custom-bg-primary, #1a1e2e) !important;
  color: var(--custom-text, #ffffff) !important;
}

/* Tema custom ahora usa el diseño moderno de tarjetas */

body.theme-custom .search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--custom-text, #ffffff);
}

body.theme-custom .search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.theme-custom .search-icon {
  color: rgba(255, 255, 255, 0.6);
}

body.theme-custom .filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--custom-text, #ffffff);
}

body.theme-custom .filter-btn.active {
  background: var(--custom-accent, #667eea);
  border-color: var(--custom-accent, #667eea);
  color: white;
}

body.theme-custom .back-to-dashboard {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--custom-text, #ffffff);
}

body.theme-custom .back-to-dashboard:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Animación de fondo personalizada */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Adaptabilidad para diferentes temas en el panel de temas */
body.theme-dark .themes-section,
body.theme-dark .background-editor-section {
  background: rgba(26, 30, 46, 0.95);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
}

body.theme-dark .themes-section h3,
body.theme-dark .background-editor-section h3,
body.theme-dark .background-preview h4,
body.theme-dark .saved-palettes h4,
body.theme-dark .background-type-controls h4,
body.theme-dark .control-group label,
body.theme-dark .theme-option h4,
body.theme-dark .palette-name,
body.theme-dark .radio-option {
  color: #ffffff !important;
}

body.theme-dark .theme-option p {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.theme-dark .theme-option,
body.theme-dark .saved-palette {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

body.theme-dark .theme-option:hover,
body.theme-dark .saved-palette:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(102, 126, 234, 0.6);
}

body.theme-dark .color-value,
body.theme-dark .range-value {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(102, 126, 234, 0.3);
}

body.theme-dark .background-type-controls,
body.theme-dark .gradient-controls {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.3);
}

body.theme-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(102, 126, 234, 0.3);
}

/* Tema Claro */
body.theme-light .themes-section,
body.theme-light .background-editor-section {
  background: rgba(255, 248, 225, 0.95);
  border-color: rgba(255, 193, 7, 0.3);
  box-shadow: 0 6px 25px rgba(255, 193, 7, 0.15);
}

body.theme-light .theme-option,
body.theme-light .saved-palette {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 193, 7, 0.2);
}

body.theme-light .theme-option:hover,
body.theme-light .saved-palette:hover {
  border-color: rgba(255, 193, 7, 0.5);
}

/* Tema Rosa */
body.theme-rosa .themes-section,
body.theme-rosa .background-editor-section {
  background: rgba(252, 228, 236, 0.95);
  border-color: rgba(233, 30, 99, 0.3);
  box-shadow: 0 6px 25px rgba(233, 30, 99, 0.15);
}

body.theme-rosa .theme-option,
body.theme-rosa .saved-palette {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(233, 30, 99, 0.2);
}

body.theme-rosa .theme-option:hover,
body.theme-rosa .saved-palette:hover {
  border-color: rgba(233, 30, 99, 0.5);
}

  background: rgba(55, 71, 79, 0.95);
  border: 1px solid rgba(96, 125, 139, 0.5);
  color: #eceff1;
}

/* Previews específicos por tema */
.dark-preview {
  background: linear-gradient(135deg, #1a1e2e 0%, #232636 100%);
}

.dark-preview .preview-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark-preview .preview-card {
  background: rgba(102, 126, 234, 0.3);
}

.light-preview {
  background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.light-preview .preview-header {
  background: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
}

.light-preview .preview-card {
  background: rgba(255, 193, 7, 0.3);
}

.rosa-preview {
  background: linear-gradient(135deg, #ffe0f3 0%, #ffc1e4 100%);
}

.rosa-preview .preview-header {
  background: linear-gradient(135deg, #ff4081 0%, #e91e63 100%);
}

.rosa-preview .preview-card {
  background: rgba(233, 30, 99, 0.3);
}

  background: linear-gradient(135deg, #222d46 0%, #232736 100%);
}

  background: linear-gradient(135deg, #424242 0%, #757575 100%);
}

  background: rgba(96, 125, 139, 0.3);
} 

/* Colores del texto de las tarjetas según el tema (igual que PROFENINJA) */

/* Tema por defecto */
.card-body h3,
.tool-title {
  background: linear-gradient(135deg, #fff 0%, #a8edea 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3) !important;
}

.card-body p,
.tool-description {
  color: rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.2) !important;
}

/* Tema Dark */
body.theme-dark .card-body h3,
body.theme-dark .tool-title {
  background: linear-gradient(135deg, #ae81ff 0%, #667eea 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(174, 129, 255, 0.4) !important;
}

body.theme-dark .card-body p,
body.theme-dark .tool-description {
  color: rgba(174, 129, 255, 0.8) !important;
  text-shadow: 0 1px 5px rgba(174, 129, 255, 0.3) !important;
}

/* Tema Light */
body.theme-light .card-body h3,
body.theme-light .tool-title {
  background: linear-gradient(135deg, #ffda88 0%, #ffb716 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(255, 218, 136, 0.4) !important;
}

body.theme-light .card-body p,
body.theme-light .tool-description {
  color: rgba(255, 218, 136, 0.9) !important;
  text-shadow: 0 1px 5px rgba(255, 218, 136, 0.3) !important;
}

/* Tema Rosa */
body.theme-rosa .card-body h3,
body.theme-rosa .tool-title {
  background: linear-gradient(135deg, #fffefc 0%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(255, 218, 136, 0.4) !important;
}

body.theme-rosa .card-body p,
body.theme-rosa .tool-description {
  color: rgba(255, 218, 136, 0.9) !important;
  text-shadow: 0 1px 5px rgba(255, 218, 136, 0.3) !important;
}

  background: linear-gradient(135deg, #ffda88 0%, #ffb716 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(144, 164, 174, 0.4) !important;
}

/* Tema Neon - usando colores azules */
body.theme-neon .card-body h3,
body.theme-neon .tool-title {
  background: linear-gradient(135deg, #0070D1 0%, #00439C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(0, 112, 209, 0.6) !important;
}

body.theme-neon .card-body p,
body.theme-neon .tool-description {
  color: rgba(0, 112, 209, 0.9) !important;
  text-shadow: 0 1px 5px rgba(0, 112, 209, 0.4) !important;
}

/* Tema Custom - usando variables CSS */
body.theme-custom .card-body h3,
body.theme-custom .tool-title {
  background: linear-gradient(135deg, var(--accent-color, #fff) 0%, var(--secondary-color, #a8edea) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3) !important;
}

body.theme-custom .card-body p,
body.theme-custom .tool-description {
  color: var(--text-color, rgba(255, 255, 255, 0.8)) !important;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.2) !important;
}

/* Fondos dorados para las tarjetas en temas específicos */

/* Tema Light - Fondo dorado suave */
body.theme-light .tool-card.green,
body.theme-light .tool-card.blue,
body.theme-light .tool-card.orange,
body.theme-light .tool-card.red {
  background: radial-gradient(
    ellipse at right top,
    #ffda8880 0%,
    #2a2520 47%,
    #1a1815 100%
  ) !important;
}

body.theme-light .tool-card.green::before,
body.theme-light .tool-card.blue::before,
body.theme-light .tool-card.orange::before,
body.theme-light .tool-card.red::before {
  background: linear-gradient(
      45deg,
      #2a2520,
      #2a2520,
      #2a2520,
      #2a2520,
      #ffb716
    )
    border-box !important;
}

/* Tema Rosa - Fondo magenta elegante */
body.theme-rosa .tool-card.green,
body.theme-rosa .tool-card.blue,
body.theme-rosa .tool-card.orange,
body.theme-rosa .tool-card.red {
  background: radial-gradient(
    ellipse at right top,
    #ff00ff80 0%,
    #2a1520 47%,
    #1a1015 100%
  ) !important;
}

body.theme-rosa .tool-card.green::before,
body.theme-rosa .tool-card.blue::before,
body.theme-rosa .tool-card.orange::before,
body.theme-rosa .tool-card.red::before {
  background: linear-gradient(
      45deg,
      #2a1520,
      #2a1520,
      #2a1520,
      #2a1520,
      #ff00ff
    )
    border-box !important;
}

  background: radial-gradient(
    ellipse at right top,
    #ffda8880 0%,
    #2a2520 47%,
    #1a1815 100%
  ) !important;
}

  background: linear-gradient(
      45deg,
      #2a2520,
      #2a2520,
      #2a2520,
      #2a2520,
      #ffb716
    )
    border-box !important;
}

/* Footer dorado para estos temas */
body.theme-light .tool-card .card-footer,
  background: #2a2520 !important;
  border-top-color: #3a3025 !important;
}

/* Footer magenta para tema rosa */
body.theme-rosa .tool-card .card-footer {
  background: #2a1520 !important;
  border-top-color: #3a2030 !important;
}

/* Botones dorados para estos temas */
body.theme-light .tool-card .btn-countdown,
  background: #3a3025 !important;
  color: #ffda88 !important;
}

body.theme-light .tool-card .btn-countdown:hover,
  background: #ffb716 !important;
  color: #1a1815 !important;
}

/* Botones magenta para tema rosa */
body.theme-rosa .tool-card .btn-countdown {
  background: #3a2030 !important;
  color: #ff88da !important;
}

body.theme-rosa .tool-card .btn-countdown:hover {
  background: #ff00ff !important;
  color: #1a1015 !important;
}

/* ================================
   CONTROL DE VISIBILIDAD DE BOTONES POR CONTEXTO
   ================================ */

/* Ocultar botón de usuario cuando timeline esté activo */
body.timeline-active .global-user-controls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Asegurar que el botón de volver esté bien posicionado dentro de apps */
body.timeline-active .back-to-dashboard {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Ocultar botón de usuario en todas las aplicaciones activas */
body:not(.dashboard-active) .global-user-controls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mostrar botón de usuario solo en el dashboard */
body.dashboard-active .global-user-controls {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Asegurar posicionamiento correcto del botón de volver en todas las apps */
.back-to-dashboard {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #333 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

body.theme-dark .back-to-dashboard,
body.theme-neon .back-to-dashboard {
  background: rgba(26, 26, 46, 0.95) !important;
  border: 1px solid rgba(102, 126, 234, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2) !important;
}

/* Estilos del botón de volver para tema rosa */
body.theme-rosa .back-to-dashboard {
  background: rgba(253, 242, 248, 0.95) !important;
  border: 1px solid rgba(233, 30, 99, 0.3) !important;
  color: #ad1457 !important;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.2) !important;
}

/* Hover del botón de volver */
.back-to-dashboard:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2) !important;
}

body.theme-dark .back-to-dashboard:hover,
body.theme-neon .back-to-dashboard:hover {
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3) !important;
}

body.theme-rosa .back-to-dashboard:hover {
  box-shadow: 0 6px 25px rgba(233, 30, 99, 0.3) !important;
}

/* ================================
   OCULTAR ELEMENTOS DEL TIMELINE EN EL LAUNCHER
   ================================ */

/* Ocultar elementos del timeline cuando no esté activo */
body:not(.timeline-active) #presentation-modal,
body:not(.timeline-active) .presentation-modal,
body:not(.timeline-active) [id*="presentation"],
body:not(.timeline-active) [class*="presentation"],
body:not(.timeline-active) .download-link,
body:not(.timeline-active) [id*="download-presentation"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Forzar ocultación del presentation-modal SIEMPRE cuando timeline esté activo */
body.timeline-active #presentation-modal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* Asegurar que elementos con z-index alto del timeline no aparezcan fuera */
body:not(.timeline-active) .modal[style*="z-index"],
body:not(.timeline-active) .notification[style*="z-index"],
body:not(.timeline-active) [style*="position: fixed"][id*="timeline"],
body:not(.timeline-active) [style*="position: fixed"][class*="timeline"] {
  display: none !important;
  visibility: hidden !important;
}

/* Contener específicamente elementos del timeline */
#timeline-panel {
  position: relative !important;
  overflow: hidden !important;
  contain: layout style paint !important;
}

/* Asegurar que modales del timeline estén contenidos */
#timeline-panel .modal,
#timeline-panel .presentation-modal,
#timeline-panel [id*="presentation"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999 !important;
}

/* ================================
   CORRECCIÓN ADICIONAL DE BORROSIDAD
   ================================ */

/* PERMITIR fondos animados en timeline - Los fondos animados ahora son visibles */
/* Las reglas anteriores que ocultaban fondos animados han sido eliminadas */

/* El timeline ahora mantiene los fondos animados de cada tema */
body.timeline-active {
  /* Sin fondo forzado - permite fondos animados */
}

/* Eliminar cualquier elemento superpuesto */
body.timeline-active .overlay,
body.timeline-active .backdrop,
body.timeline-active [class*="blur"] {
  display: none !important;
}

body.timeline-active [style*="background: rgba(0, 0, 0"],
body.timeline-active [style*="background:rgba(0,0,0"],
body.timeline-active .modal-backdrop,
body.timeline-active .overlay-dark {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Asegurar que el timeline tenga interacción completa */
body.timeline-active #timeline-panel {
  pointer-events: auto !important;
  z-index: 1 !important;
}

body.timeline-active #timeline-panel * {
  pointer-events: auto !important;
}

/* Selector de temas vertical debajo del botón de créditos */
.vertical-theme-selector {
  position: fixed !important;
  top: 125px !important;
  left: 20px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-20px) scale(0.8) !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
  pointer-events: none !important;
}

.vertical-theme-selector.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Botón para desplegar selector de temas */
.toggle-themes-btn {
  position: fixed !important;
  top: 75px !important;
  left: 20px !important;
  z-index: 10001 !important;
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: bold !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.toggle-themes-btn:hover {
  transform: scale(1.1) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.toggle-themes-btn.active {
  transform: scale(1.05) rotate(180deg) !important;
  background: rgba(102, 126, 234, 0.3) !important;
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4) !important;
}

.vertical-theme-btn {
  width: 35px !important;
  height: 35px !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.vertical-theme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.vertical-theme-btn:hover {
  transform: scale(1.1) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.vertical-theme-btn:hover::before {
  transform: translateX(100%);
}

.vertical-theme-btn.active {
  background: rgba(102, 126, 234, 0.3) !important;
  border-color: rgba(102, 126, 234, 0.6) !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Estilos específicos para cada tema en el selector vertical */
body.theme-dark .vertical-theme-selector {
  background: rgba(26, 26, 46, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}

body.theme-dark .vertical-theme-btn {
  background: rgba(102, 126, 234, 0.15) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}

body.theme-dark .vertical-theme-btn:hover {
  background: rgba(102, 126, 234, 0.25) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
}

body.theme-dark .toggle-themes-btn {
  background: rgba(102, 126, 234, 0.15) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
}

body.theme-dark .toggle-themes-btn:hover {
  background: rgba(102, 126, 234, 0.25) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
}

body.theme-light .vertical-theme-selector {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(79, 188, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15) !important;
}

body.theme-light .vertical-theme-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(79, 188, 255, 0.3) !important;
  color: rgba(55, 65, 81, 0.8) !important;
}

body.theme-light .vertical-theme-btn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(79, 188, 255, 0.5) !important;
}

body.theme-light .vertical-theme-btn.active {
  background: rgba(79, 188, 255, 0.3) !important;
  border-color: rgba(79, 188, 255, 0.6) !important;
  color: rgba(55, 65, 81, 0.9) !important;
}

body.theme-light .toggle-themes-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(79, 188, 255, 0.3) !important;
  color: rgba(55, 65, 81, 0.8) !important;
  box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1) !important;
}

body.theme-light .toggle-themes-btn:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(79, 188, 255, 0.5) !important;
  box-shadow: 0 6px 20px rgba(31, 38, 135, 0.15) !important;
}

body.theme-light .toggle-themes-btn.active {
  background: rgba(79, 188, 255, 0.3) !important;
  border-color: rgba(79, 188, 255, 0.6) !important;
  color: rgba(55, 65, 81, 0.9) !important;
}

body.theme-rosa .vertical-theme-selector {
  background: rgba(253, 242, 248, 0.2) !important;
  border-color: rgba(233, 30, 99, 0.3) !important;
}

body.theme-rosa .vertical-theme-btn {
  background: rgba(233, 30, 99, 0.15) !important;
  border-color: rgba(233, 30, 99, 0.3) !important;
}

body.theme-rosa .vertical-theme-btn:hover {
  background: rgba(233, 30, 99, 0.25) !important;
  border-color: rgba(233, 30, 99, 0.5) !important;
}

body.theme-rosa .vertical-theme-btn.active {
  background: rgba(233, 30, 99, 0.3) !important;
  border-color: rgba(233, 30, 99, 0.6) !important;
}

body.theme-rosa .toggle-themes-btn {
  background: rgba(233, 30, 99, 0.15) !important;
  border-color: rgba(233, 30, 99, 0.3) !important;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2) !important;
}

body.theme-rosa .toggle-themes-btn:hover {
  background: rgba(233, 30, 99, 0.25) !important;
  border-color: rgba(233, 30, 99, 0.5) !important;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3) !important;
}

  background: rgba(55, 65, 81, 0.2) !important;
  border-color: rgba(144, 164, 174, 0.3) !important;
}

  background: rgba(144, 164, 174, 0.15) !important;
  border-color: rgba(144, 164, 174, 0.3) !important;
}

  background: rgba(144, 164, 174, 0.25) !important;
  border-color: rgba(144, 164, 174, 0.5) !important;
}

  background: rgba(144, 164, 174, 0.15) !important;
  border-color: rgba(144, 164, 174, 0.3) !important;
  box-shadow: 0 4px 15px rgba(144, 164, 174, 0.2) !important;
}

  background: rgba(144, 164, 174, 0.25) !important;
  border-color: rgba(144, 164, 174, 0.5) !important;
  box-shadow: 0 6px 20px rgba(144, 164, 174, 0.3) !important;
}

body.theme-neon .vertical-theme-selector {
  background: rgba(45, 43, 95, 0.3) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2) !important;
}

body.theme-neon .vertical-theme-btn {
  background: rgba(139, 69, 255, 0.25) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  filter: saturate(200%) !important;
}

body.theme-neon .vertical-theme-btn:hover {
  background: rgba(139, 69, 255, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4) !important;
}

body.theme-neon .vertical-theme-btn.active {
  background: rgba(168, 85, 247, 0.4) !important;
  border-color: rgba(168, 85, 247, 0.8) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 8px 24px rgba(45, 43, 95, 0.4) !important;
}

body.theme-neon .toggle-themes-btn {
  background: rgba(139, 69, 255, 0.25) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  filter: saturate(200%) !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2) !important;
}

body.theme-neon .toggle-themes-btn:hover {
  background: rgba(139, 69, 255, 0.35) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3) !important;
}

body.theme-neon .toggle-themes-btn.active {
  background: rgba(168, 85, 247, 0.4) !important;
  border-color: rgba(168, 85, 247, 0.8) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6) !important;
}

/* Responsive para el selector vertical */
@media (max-width: 768px) {
  .vertical-theme-selector {
    top: 115px !important;
    left: 15px !important;
    gap: 6px !important;
    padding: 6px !important;
  }
  
  .vertical-theme-selector.show {
    top: 115px !important;
  }
  
  .vertical-theme-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
  
  .toggle-themes-btn {
    top: 65px !important;
    left: 15px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .vertical-theme-selector {
    top: 110px !important;
    left: 10px !important;
    gap: 4px !important;
    padding: 4px !important;
  }
  
  .vertical-theme-selector.show {
    top: 110px !important;
  }
  
  .vertical-theme-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
  
  .toggle-themes-btn {
    top: 60px !important;
    left: 10px !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 14px !important;
  }
} 

/* ================================
   BARRA DE CARGA GLOBAL
   ================================ */

/* Overlay de carga */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Contenedor de la barra de carga */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Nueva animación de carga PROFENINJA - Gradiente como relleno del texto */
.loader {
  font-size: 40px;
  font-family: system-ui, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: loading-sweep 2s linear infinite;
}

.loader:before {
  content: "PROFENINJA";
}

@keyframes loading-sweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Estilos por tema para el loader */
body.theme-dark .loading-overlay {
  background: #1a1a2e;
}

body.theme-dark .loader {
  background: linear-gradient(90deg, transparent, #ae81ff, transparent);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
}

body.theme-light .loading-overlay {
  background: #f8f9fa;
  backdrop-filter: blur(10px);
}

body.theme-light .loader {
  background: linear-gradient(90deg, transparent, #ff6b35, transparent);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
}

body.theme-rosa .loading-overlay {
  background: #fdf2f8;
}

body.theme-rosa .loader {
  background: linear-gradient(90deg, transparent, #e91e63, transparent);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
}

body.theme-neon .loading-overlay {
  background: #4b0082;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.theme-neon .loader {
  background: linear-gradient(90deg, transparent, #ffff00, transparent);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00;
}

/* Responsive */
@media (max-width: 768px) {
  .loader {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .loader {
    font-size: 24px;
  }
}

/* Estilos para el botón de créditos fijo */
.credits-btn-fixed {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credits-btn-fixed:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(45deg, #5a6cf0, #8b5fbf);
}

.credits-btn-fixed:active {
  transform: translateY(0) scale(1.05);
  transition: all 0.1s ease;
}

/* Estilos por tema para el botón de créditos fijo */
body.theme-dark .credits-btn-fixed {
  background: linear-gradient(45deg, #ae81ff, #667eea);
  box-shadow: 0 4px 15px rgba(174, 129, 255, 0.4);
}

body.theme-dark .credits-btn-fixed:hover {
  background: linear-gradient(45deg, #c49aff, #7a8cff);
  box-shadow: 0 8px 25px rgba(174, 129, 255, 0.6);
}

body.theme-light .credits-btn-fixed {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

body.theme-light .credits-btn-fixed:hover {
  background: linear-gradient(45deg, #ff8255, #ffad3e);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

body.theme-rosa .credits-btn-fixed {
  background: linear-gradient(45deg, #e91e63, #ff4081);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

body.theme-rosa .credits-btn-fixed:hover {
  background: linear-gradient(45deg, #ff3e7e, #ff60a1);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.6);
}

body.theme-neon .credits-btn-fixed {
  background: linear-gradient(45deg, #00ffff, #ff00ff);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

body.theme-neon .credits-btn-fixed:hover {
  background: linear-gradient(45deg, #40ffff, #ff40ff);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
}

/* Responsivo para el botón de créditos */
@media (max-width: 768px) {
  .credits-btn-fixed {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .credits-btn-fixed {
    width: 35px;
    height: 35px;
  font-size: 0.9rem;
    top: 10px;
    left: 10px;
  }
}

/* Estilos del Modal de Créditos */
.credits-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credits-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.credits-content {
  background: linear-gradient(135deg, #1a1e2e 0%, #232636 100%);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credits-modal.show .credits-content {
  transform: scale(1);
}

.credits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px 20px 0 0;
}

.credits-header h3 {
  margin: 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.credits-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.credits-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.credits-body {
  padding: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.credits-section {
  margin-bottom: 2rem;
}

.credits-section h4 {
  color: #667eea;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.credits-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credits-section li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-section li:last-child {
  border-bottom: none;
}

.credits-section a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.credits-section a:hover {
  color: #8a9cff;
  text-decoration: underline;
}

.credits-section p {
  line-height: 1.6;
  margin: 0.5rem 0;
}

.credits-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.credits-footer p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.credits-footer small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Estilos por tema para el modal de créditos */
body.theme-dark .credits-content {
  background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
}

body.theme-dark .credits-header {
  background: linear-gradient(135deg, #ae81ff 0%, #667eea 100%);
}

body.theme-dark .credits-section h4 {
  color: #ae81ff;
}

body.theme-dark .credits-section a {
  color: #ae81ff;
}

body.theme-dark .credits-section a:hover {
  color: #c49aff;
}

body.theme-light .credits-content {
  background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
  color: #333333;
}

body.theme-light .credits-header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

body.theme-light .credits-body {
  color: #333333;
}

body.theme-light .credits-section h4 {
  color: #ff6b35;
}

body.theme-light .credits-section a {
  color: #ff6b35;
}

body.theme-light .credits-section a:hover {
  color: #ff8255;
}

body.theme-light .credits-footer p {
  color: rgba(0, 0, 0, 0.7);
}

body.theme-light .credits-footer small {
  color: rgba(0, 0, 0, 0.5);
}

body.theme-rosa .credits-content {
  background: linear-gradient(135deg, #ffe0f3 0%, #ffc1e4 100%);
  color: #333333;
}

body.theme-rosa .credits-header {
  background: linear-gradient(135deg, #e91e63 0%, #ff4081 100%);
}

body.theme-rosa .credits-body {
  color: #333333;
}

body.theme-rosa .credits-section h4 {
  color: #e91e63;
}

body.theme-rosa .credits-section a {
  color: #e91e63;
}

body.theme-rosa .credits-section a:hover {
  color: #ff3e7e;
}

body.theme-rosa .credits-footer p {
  color: rgba(0, 0, 0, 0.7);
}

body.theme-rosa .credits-footer small {
  color: rgba(0, 0, 0, 0.5);
}

body.theme-neon .credits-content {
  background: linear-gradient(135deg, #000011 0%, #001122 100%);
  border: 1px solid #00ffff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

body.theme-neon .credits-header {
  background: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
}

body.theme-neon .credits-section h4 {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-neon .credits-section a {
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

body.theme-neon .credits-section a:hover {
  color: #40ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* Responsivo para el modal de créditos */
@media (max-width: 768px) {
  .credits-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .credits-header {
    padding: 1rem 1.5rem;
  }
  
  .credits-header h3 {
    font-size: 1.3rem;
  }
  
  .credits-body {
    padding: 1.5rem;
  }
  
  .credits-section h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .credits-content {
    width: 98%;
    max-height: 90vh;
    border-radius: 15px;
  }
  
  .credits-header {
    padding: 1rem;
    border-radius: 15px 15px 0 0;
  }
  
  .credits-header h3 {
    font-size: 1.2rem;
  }
  
  .credits-close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
  
  .credits-body {
    padding: 1rem;
  }
  
  .credits-section {
    margin-bottom: 1.5rem;
  }
  
  .credits-section h4 {
    font-size: 1rem;
  }
}

/* ================================
   MODO SALVAPANTALLAS
   ================================ */

/* Botón de activar salvapantallas */
.screensaver-btn {
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.screensaver-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Contenedor principal del salvapantallas */
.screensaver-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.screensaver-mode.active {
  display: flex;
  opacity: 1;
}

/* Reloj central */
.screensaver-clock {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
  user-select: none;
}

.screensaver-mode.active .screensaver-clock {
  opacity: 1;
  transform: translateY(0);
}

.screensaver-time {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 6rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.screensaver-date {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Botones de tema en el salvapantallas */
.screensaver-theme-buttons {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  opacity: 0;
  transition: all 1.2s ease 0.5s;
}

.screensaver-mode.active .screensaver-theme-buttons {
  opacity: 1;
}

.screensaver-theme-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.screensaver-theme-btn:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.screensaver-theme-btn.active {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(102, 126, 234, 0.4);
}

/* Botón de salir del salvapantallas */
.exit-screensaver-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.screensaver-mode.active .exit-screensaver-btn {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1s;
}

.exit-screensaver-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

/* Estados de transición para elementos ocultos */
.dashboard-main.screensaver-hidden,
.global-user-controls.screensaver-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.8s ease;
}

/* Responsive para salvapantallas */
@media (max-width: 768px) {
  .screensaver-time {
    font-size: 4rem;
  }
  
  .screensaver-date {
    font-size: 1.8rem;
  }
  
  .screensaver-theme-buttons {
    bottom: 60px;
    gap: 10px;
  }
  
  .screensaver-theme-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .screensaver-time {
    font-size: 3rem;
  }
  
  .screensaver-date {
    font-size: 1.4rem;
  }
  
  .screensaver-theme-buttons {
    bottom: 40px;
    gap: 8px;
  }
  
  .screensaver-theme-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .exit-screensaver-btn {
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Temas específicos para el salvapantallas */
body.theme-light .screensaver-time {
  color: #1a202c;
  text-shadow: 
    0 0 20px rgba(26, 32, 44, 0.2),
    0 0 40px rgba(26, 32, 44, 0.1),
    0 4px 8px rgba(255, 255, 255, 0.5);
}

body.theme-light .screensaver-date {
  color: rgba(26, 32, 44, 0.8);
  text-shadow: 
    0 0 15px rgba(26, 32, 44, 0.1),
    0 2px 4px rgba(255, 255, 255, 0.5);
}

body.theme-rosa .screensaver-time {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(236, 72, 153, 0.4),
    0 0 40px rgba(236, 72, 153, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

body.theme-rosa .screensaver-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 
    0 0 15px rgba(236, 72, 153, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

body.theme-neon .screensaver-time {
  color: #fff;
  text-shadow: 
    0 0 20px rgba(139, 92, 246, 0.5),
    0 0 40px rgba(139, 92, 246, 0.4),
    0 0 60px rgba(236, 72, 153, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

body.theme-neon .screensaver-date {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 
    0 0 15px rgba(139, 92, 246, 0.4),
    0 0 30px rgba(236, 72, 153, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ================================
   USER DROPDOWN STYLES
   ================================ */

.user-status {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

/* Dropdown del Usuario */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-radius: 2px;
}

.user-profile-info {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 4px;
}

.user-email {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.user-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-type-badge.free {
  background: #e2e8f0;
  color: #4a5568;
}

.user-type-badge.registered {
  background: #bee3f8;
  color: #2c5282;
}

.user-type-badge.premium {
  background: #fbb6ce;
  color: #97266d;
}

.user-type-badge.admin {
  background: #9ae6b4;
  color: #22543d;
}

.user-menu {
  padding: 8px 0;
}

.user-menu-item {
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: #4a5568;
}

.user-menu-item:hover {
  background: #f7fafc;
  color: #2d3748;
}

.user-menu-item .icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.user-menu-item .text {
  flex: 1;
  text-align: left;
}

.user-menu-item#logout-btn:hover {
  background: #fed7d7;
  color: #c53030;
}

.user-usage-info {
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid #e9ecef;
}

.usage-item {
  margin-bottom: 12px;
}

.usage-item:last-child {
  margin-bottom: 0;
}

.usage-label {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.usage-bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.usage-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.usage-progress.warning {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.usage-progress.danger {
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
}

.usage-text {
  font-size: 0.8rem;
  color: #6c757d;
  float: right;
}

/* Dark theme adjustments */
body.theme-dark .user-dropdown {
  background: #2d3748;
  color: #e2e8f0;
}

body.theme-dark .user-dropdown::before {
  background: #2d3748;
}

body.theme-dark .user-name {
  color: #e2e8f0;
}

body.theme-dark .user-email {
  color: #a0aec0;
}

body.theme-dark .user-menu-item {
  color: #a0aec0;
}

body.theme-dark .user-menu-item:hover {
  background: #4a5568;
  color: #e2e8f0;
}

body.theme-dark .user-usage-info {
  background: #1a202c;
  border-color: #4a5568;
}

/* Light theme adjustments */
body.theme-light .user-dropdown {
  background: #f8f9fa;
  color: #2d3748;
}

body.theme-light .user-dropdown::before {
  background: #f8f9fa;
}

/* Rosa theme adjustments */
body.theme-rosa .user-dropdown {
  background: #fdf2f8;
  color: #2d3748;
}

body.theme-rosa .user-dropdown::before {
  background: #fdf2f8;
}

body.theme-rosa .user-type-badge.premium {
  background: #f3e8ff;
  color: #6b46c1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-dropdown {
    min-width: 280px;
    right: -10px;
  }
  
  .user-dropdown::before {
    right: 30px;
  }
  
  .user-profile-info {
    padding: 16px;
  }
  
  .user-menu-item {
    padding: 10px 16px;
  }
  
  .user-usage-info {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .user-dropdown {
    min-width: 250px;
    right: -20px;
  }
  
  .user-dropdown::before {
    right: 40px;
  }
  
  .user-profile-info {
    padding: 12px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .user-menu-item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .user-usage-info {
    padding: 10px 12px;
  }
}
