﻿/* =========================================
   WHATSAPP NUMBER CHECKER STYLES - ADVANCED
   ======================================== */

.wsp-checker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wsp-checker-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wsp-checker-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.wsp-checker-overlay.active .wsp-checker-panel {
  transform: scale(1);
}

.wsp-checker-panel .panel-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wsp-checker-panel .panel-header h2 {
  color: white;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.wsp-checker-panel .close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wsp-checker-panel .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.wsp-checker-panel .panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.wsp-checker-container {
  padding: 30px;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header del checker */
.checker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(20px);
}

.header-info h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.header-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.header-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  min-width: 80px;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Sesiones conectadas */
.sessions-container {
  margin-bottom: 30px;
}

.sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sessions-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.session-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.session-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.session-card.connected {
  border-left: 4px solid #25d366;
}

.session-card.disconnected {
  border-left: 4px solid #ff4757;
  opacity: 0.6;
}

.session-info .session-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.session-info .session-phone {
  font-size: 14px;
  opacity: 0.8;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.status-dot.online {
  background: #25d366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.status-dot.offline {
  background: #ff4757;
}

/* SecciÃ³n de input */
.input-section {
  margin-bottom: 30px;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.input-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.input-controls {
  display: flex;
  gap: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

#numbersInput {
  width: 100%;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  color: white;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  transition: all 0.3s ease;
}

#numbersInput:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

#numbersInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-info {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

/* ConfiguraciÃ³n */
.config-section {
  margin-bottom: 30px;
}

.config-header h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-item label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.config-item select,
.config-item input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.config-item select:focus,
.config-item input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.config-item select option {
  background: #333;
  color: white;
}

/* Botones de acciÃ³n */
.action-section {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(45deg, #25d366, #20c55e);
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

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

/* Progreso */
.progress-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.progress-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-fill {
  background: linear-gradient(45deg, #25d366, #20c55e);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.9;
}

/* Resultados */
.results-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.results-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.results-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 255, 255, 0.3);
}

.results-container {
  max-height: 400px;
  overflow-y: auto;
}

.empty-results {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}

.empty-results span {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.results-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1fr;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1fr;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  align-items: center;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.15);
}

.table-row.verified {
  border-left: 4px solid #25d366;
}

.table-row.not-found {
  border-left: 4px solid #ff4757;
  opacity: 0.8;
}

.table-row small {
  opacity: 0.7;
  font-size: 12px;
}

/* =========================================
   WHATSAPP CHECKER ADVANCED STYLES
   ======================================== */

.wsp-checker-panel-advanced {
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  border: 2px solid rgba(0, 191, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wsp-checker-advanced {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header avanzado */
.advanced-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: linear-gradient(90deg, rgba(0, 191, 255, 0.1) 0%, rgba(148, 0, 211, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(45deg, #00bfff, #9400d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  font-size: 14px;
  opacity: 0.8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff00;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.header-right {
  display: flex;
  gap: 10px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-icon:hover {
  background: rgba(0, 191, 255, 0.3);
  transform: scale(1.1);
}

/* Dashboard de estadÃ­sticas */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 30px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.6;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card.primary {
  color: #00bfff;
}

.stat-card.success {
  color: #00ff88;
}

.stat-card.business {
  color: #ffd700;
}

.stat-card.warning {
  color: #ff6b35;
}

.stat-card.info {
  color: #9400d3;
}

.stat-card.error {
  color: #ff4757;
}

.stat-icon {
  font-size: 32px;
  opacity: 0.8;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.7;
  font-weight: 500;
}

/* Controles principales */
.main-controls {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.control-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.control-group.primary {
  justify-content: center;
}

.control-group.secondary {
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, #00bfff, #0080ff);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.4);
}

.btn-danger {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  color: #ffffff;
}

.btn-warning {
  background: linear-gradient(45deg, #ff6b35, #ff8c42);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(45deg, #00ff88, #00d4aa);
  color: #ffffff;
}

/* Input avanzado */
.input-advanced {
  padding: 0 30px 20px;
}

.input-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tab-btn.active {
  background: linear-gradient(45deg, #00bfff, #9400d3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.textarea-container textarea {
  width: 100%;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  font-family: 'Consolas', 'Monaco', monospace;
}

.textarea-container textarea:focus {
  outline: none;
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

/* Progreso avanzado */
.progress-advanced {
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.progress-title h3 {
  margin: 0;
  color: #00bfff;
  font-size: 18px;
}

.progress-percentage {
  font-size: 24px;
  font-weight: 700;
  color: #00ff88;
}

.progress-bar-advanced {
  margin-bottom: 15px;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bfff, #00ff88);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ========================================
   RESPONSIVE DESIGN MEJORADO
   ======================================== */

/* Tablet y pantallas medianas */
@media (max-width: 1200px) {
  .wsp-checker-panel-advanced {
    width: 98vw;
    height: 95vh;
  }

  .stats-dashboard {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    flex-direction: column;
    gap: 15px;
  }

  .results-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-input {
    width: 200px;
  }
}

/* Tablet vertical y mÃ³viles grandes */
@media (max-width: 768px) {
  .wsp-checker-panel-advanced {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
  }

  .wsp-checker-advanced {
    font-size: 14px;
  }

  /* Header responsivo */
  .advanced-header {
    padding: 10px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .header-left h2 {
    font-size: 20px;
    text-align: center;
  }

  .system-status {
    justify-content: center;
  }

  .header-right {
    justify-content: center;
  }

  /* Dashboard de estadÃ­sticas responsivo */
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 15px;
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .stat-icon {
    font-size: 24px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Sesiones responsivas */
  .sessions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .session-card-advanced {
    padding: 12px;
  }

  .session-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .session-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-item {
    flex-direction: column;
    text-align: center;
    min-width: 60px;
  }

  .sessions-actions {
    flex-direction: column;
    gap: 8px;
  }

  .sessions-actions button {
    width: 100%;
  }

  /* Input responsivo */
  .input-advanced,
  .config-advanced,
  .main-controls,
  .results-advanced {
    padding-left: 15px;
    padding-right: 15px;
  }

  .input-tabs {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .textarea-container textarea {
    min-height: 150px;
    font-size: 13px;
    padding: 12px;
  }

  .textarea-tools {
    flex-wrap: wrap;
    gap: 8px;
  }

  .textarea-tools button {
    flex: 1;
    min-width: 80px;
  }

  /* File upload responsivo */
  .file-drop-zone {
    padding: 20px;
  }

  .drop-icon {
    font-size: 32px;
  }

  .drop-text strong {
    font-size: 14px;
  }

  .drop-text p {
    font-size: 12px;
  }

  /* ConfiguraciÃ³n responsiva */
  .config-content {
    padding: 15px;
  }

  .config-tabs {
    flex-wrap: wrap;
  }

  .config-tab {
    flex: 1;
    min-width: 80px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .config-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .checkbox-group {
    gap: 6px;
  }

  .checkbox-group label {
    font-size: 13px;
  }

  /* Controles principales responsivos */
  .main-controls {
    padding: 15px;
  }

  .control-group {
    flex-direction: column;
    gap: 10px;
  }

  .control-group.secondary {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-large {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-secondary {
    flex: 1;
    min-width: 80px;
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Progreso responsivo */
  .progress-advanced {
    padding: 15px;
  }

  .progress-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .progress-title h3 {
    font-size: 16px;
  }

  .progress-percentage {
    font-size: 20px;
  }

  .progress-time {
    justify-content: center;
    font-size: 12px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-item {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Resultados responsivos */
  .results-header {
    margin-bottom: 15px;
  }

  .results-title {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .results-title h3 {
    font-size: 16px;
  }

  .results-summary {
    font-size: 12px;
  }

  .results-toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .results-filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .filter-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .results-actions {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .search-input {
    width: 100%;
    max-width: 200px;
  }

  .sort-select {
    width: 120px;
  }

  /* Tabla responsiva */
  .results-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .results-table-advanced {
    min-width: 600px;
    font-size: 11px;
  }

  .results-table-advanced th,
  .results-table-advanced td {
    padding: 6px 4px;
    white-space: nowrap;
  }

  .results-table-advanced th:first-child,
  .results-table-advanced td:first-child {
    position: sticky;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
  }

  .profile-pic {
    width: 20px;
    height: 20px;
  }

  .btn-small {
    padding: 2px 6px;
    font-size: 10px;
  }

  /* PaginaciÃ³n responsiva */
  .results-pagination {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pagination-info {
    font-size: 12px;
  }
}

/* MÃ³viles pequeÃ±os */
@media (max-width: 480px) {
  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .header-left h2 {
    font-size: 18px;
  }

  .btn-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .tab-btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  .textarea-container textarea {
    min-height: 120px;
    font-size: 12px;
  }

  .btn-large {
    font-size: 13px;
    padding: 10px 16px;
  }

  .control-group.secondary {
    flex-direction: column;
  }

  .results-table-advanced {
    font-size: 10px;
  }

  .filter-btn {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Pantallas muy anchas */
@media (min-width: 1400px) {
  .wsp-checker-panel-advanced {
    max-width: calc(100vw - 60px);
  }

  .stats-dashboard {
    grid-template-columns: repeat(6, 1fr);
  }

  .sessions-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .config-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* OrientaciÃ³n landscape en mÃ³viles */
@media (max-width: 768px) and (orientation: landscape) {
  .wsp-checker-panel-advanced {
    height: 100vh;
  }

  .stats-dashboard {
    grid-template-columns: repeat(3, 1fr);
    padding: 8px 15px;
  }

  .stat-card {
    padding: 8px;
  }

  .stat-value {
    font-size: 16px;
  }

  .advanced-header {
    padding: 8px 15px;
  }

  .header-left h2 {
    font-size: 16px;
  }

  .progress-advanced,
  .main-controls,
  .input-advanced {
    padding: 10px 15px;
  }
}

/* Mejoras de accesibilidad y usabilidad */
@media (prefers-reduced-motion: reduce) {

  .stat-card,
  .btn-primary,
  .btn-icon,
  .progress-fill,
  .status-dot {
    animation: none;
    transition: none;
  }
}

/* Modo alto contraste */
@media (prefers-contrast: high) {
  .wsp-checker-panel-advanced {
    border: 3px solid #ffffff;
  }

  .stat-card,
  .session-card-advanced,
  .config-content {
    border: 2px solid rgba(255, 255, 255, 0.5);
  }

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
}

/* Scrollbars personalizados para webkit */
.results-table-container::-webkit-scrollbar,
.textarea-container textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.results-table-container::-webkit-scrollbar-track,
.textarea-container textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.results-table-container::-webkit-scrollbar-thumb,
.textarea-container textarea::-webkit-scrollbar-thumb {
  background: rgba(0, 191, 255, 0.5);
  border-radius: 4px;
}

.results-table-container::-webkit-scrollbar-thumb:hover,
.textarea-container textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 191, 255, 0.8);
}

/* ========================================
   ESTILOS ADICIONALES PARA ELEMENTOS FALTANTES
   ======================================== */

/* Notificaciones */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  border-left-color: #00ff88;
}

.notification.error {
  border-left-color: #ff4757;
}

.notification.warning {
  border-left-color: #ff6b35;
}

.notification.info {
  border-left-color: #00bfff;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-icon {
  font-size: 18px;
}

.notification-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Status badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.success {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-badge.error {
  background: rgba(255, 71, 87, 0.2);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.type-badge {
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
}

.type-badge.business {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.type-badge.personal {
  background: rgba(148, 0, 211, 0.2);
  color: #9400d3;
  border: 1px solid rgba(148, 0, 211, 0.3);
}

/* Profile pics */
.profile-pic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Botones pequeÃ±os */
.btn-small {
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: rgba(0, 191, 255, 0.4);
  transform: scale(1.05);
}

/* Checkboxes personalizados */
.session-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.session-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.session-checkbox input[type="checkbox"]:checked+.checkmark {
  background: #00bfff;
  border-color: #00bfff;
}

.session-checkbox input[type="checkbox"]:checked+.checkmark::after {
  content: 'âœ“';
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

/* Throttle warning */
.throttle-warning {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Empty states */
.empty-sessions {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-sessions h4 {
  margin: 0 0 16px 0;
  color: #ffffff;
  font-size: 18px;
}

.empty-sessions p {
  margin: 0 0 16px 0;
  opacity: 0.8;
  font-size: 14px;
}

.empty-sessions ol {
  text-align: left;
  max-width: 300px;
  margin: 0 auto 20px auto;
  opacity: 0.8;
}

.empty-sessions li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Mejoras para inputs y selects */
.wsp-checker-advanced input[type="number"],
.wsp-checker-advanced input[type="text"],
.wsp-checker-advanced select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.wsp-checker-advanced input[type="number"]:focus,
.wsp-checker-advanced input[type="text"]:focus,
.wsp-checker-advanced select:focus {
  outline: none;
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

/* Mejoras para el generador */
.generator-form {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row label {
  min-width: 80px;
  font-size: 14px;
  color: #00bfff;
}

.form-row input,
.form-row select {
  flex: 1;
}

/* Mejoras para las estadÃ­sticas de sesiÃ³n */
.session-info {
  flex: 1;
}

.session-name {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}

.session-phone {
  font-size: 12px;
  opacity: 0.7;
  color: #cccccc;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot.connected {
  background: #00ff88;
}

.status-dot.disconnected {
  background: #ff4757;
}

.status-text {
  font-size: 12px;
  font-weight: 500;
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification-text {
    font-size: 13px;
  }

  .notification-icon {
    font-size: 16px;
  }
}

/* Responsive para formularios */
@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .form-row label {
    min-width: auto;
    font-size: 13px;
  }

  .generator-form {
    gap: 12px;
  }

  .session-header {
    gap: 6px;
  }

  .session-name {
    font-size: 13px;
  }

  .session-phone {
    font-size: 11px;
  }

  .status-text {
    font-size: 11px;
  }
}

/* Mejoras para la accesibilidad tÃ¡ctil */
@media (pointer: coarse) {

  .btn-small,
  .filter-btn,
  .tab-btn,
  .session-checkbox {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .session-checkbox {
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Mejoras para el contraste en modo oscuro */
@media (prefers-color-scheme: dark) {
  .wsp-checker-advanced {
    color: #ffffff;
  }

  .notification {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
  }
}

/* Animaciones suaves para elementos interactivos */
.stat-card,
.session-card-advanced,
.btn-primary,
.btn-secondary,
.tab-btn,
.filter-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover,
.session-card-advanced:hover {
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.98);
}

/* Mejoras para el scroll suave */
.wsp-checker-advanced {
  scroll-behavior: smooth;
}

.results-table-container {
  scroll-behavior: smooth;
}

/* ========================================
   MEJORAS FINALES DE RESPONSIVIDAD
   ======================================== */

/* Asegurar que el overlay sea completamente responsivo */
.wsp-checker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 10px;
  box-sizing: border-box;
}

.wsp-checker-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mejoras para el contenedor principal */
.wsp-checker-panel-advanced {
  position: relative;
  max-height: 100%;
  overflow: hidden;
  margin: auto;
}

/* Scroll interno para el contenido */
.wsp-checker-advanced {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
}

/* Mejoras para las secciones con scroll */
.sessions-advanced,
.input-advanced,
.config-advanced,
.results-advanced {
  overflow-x: hidden;
}

/* Mejoras especÃ­ficas para mÃ³viles muy pequeÃ±os */
@media (max-width: 360px) {
  .wsp-checker-overlay {
    padding: 5px;
  }

  .advanced-header {
    padding: 8px 10px;
  }

  .header-left h2 {
    font-size: 16px;
  }

  .stats-dashboard {
    padding: 8px 10px;
    gap: 8px;
  }

  .stat-card {
    padding: 8px;
  }

  .stat-value {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  .input-advanced,
  .config-advanced,
  .main-controls,
  .results-advanced {
    padding-left: 10px;
    padding-right: 10px;
  }

  .btn-large {
    font-size: 12px;
    padding: 8px 12px;
  }

  .textarea-container textarea {
    min-height: 100px;
    font-size: 11px;
    padding: 8px;
  }
}

/* Mejoras para tablets en orientaciÃ³n portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .wsp-checker-panel-advanced {
    width: 95vw;
    height: 90vh;
  }

  .stats-dashboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mejoras para pantallas ultra anchas */
@media (min-width: 1920px) {
  .wsp-checker-panel-advanced {
    max-width: 1800px;
  }

  .stats-dashboard {
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
  }

  .sessions-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Mejoras para el modo landscape en tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .wsp-checker-panel-advanced {
    width: 98vw;
    height: 95vh;
  }

  .advanced-header {
    padding: 12px 20px;
  }

  .stats-dashboard {
    grid-template-columns: repeat(6, 1fr);
    padding: 12px 20px;
  }
}

/* Correcciones para elementos que se pueden cortar */
.input-stats,
.results-summary,
.progress-numbers {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {

  .input-stats,
  .results-summary,
  .progress-numbers {
    white-space: normal;
    text-align: center;
  }
}

/* Mejoras para los controles de paginaciÃ³n */
.pagination-controls button {
  min-width: 40px;
  height: 32px;
  padding: 4px 8px;
  margin: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-controls button:hover {
  background: rgba(0, 191, 255, 0.3);
  border-color: rgba(0, 191, 255, 0.5);
}

.pagination-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mejoras para el Ã¡rea de drop de archivos */
.file-drop-zone.dragover {
  border-color: #00bfff;
  background: rgba(0, 191, 255, 0.1);
  transform: scale(1.02);
}

/* Mejoras para los sliders */
.slider-container {
  width: 100%;
}

.slider-container input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #00bfff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #00bfff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mejoras para los badges de nÃºmero */
.btn-badge {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* Correcciones para evitar overflow horizontal */
.wsp-checker-advanced * {
  box-sizing: border-box;
}

.wsp-checker-advanced {
  width: 100%;
  max-width: 100%;
}

/* Mejoras para la visibilidad en pantallas con poco contraste */
@media (prefers-contrast: high) {

  .stat-card,
  .session-card-advanced,
  .notification {
    border: 2px solid rgba(255, 255, 255, 0.8);
  }

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
    font-weight: 700;
  }

  .status-badge,
  .type-badge {
    border-width: 2px;
    font-weight: 700;
  }
}

/* Mejoras para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {

  .wsp-checker-overlay,
  .notification,
  .stat-card,
  .session-card-advanced,
  .btn-primary,
  .btn-secondary,
  .progress-fill,
  .status-dot {
    animation: none;
    transition: none;
  }

  .file-drop-zone.dragover {
    transform: none;
  }
}

/* Asegurar que los textos sean legibles en todas las resoluciones */
@media (max-width: 320px) {
  .wsp-checker-advanced {
    font-size: 12px;
  }

  .header-left h2 {
    font-size: 14px;
  }

  .stat-value {
    font-size: 14px;
  }

  .stat-label {
    font-size: 10px;
  }

  .btn-large {
    font-size: 11px;
    padding: 6px 10px;
  }

  .tab-btn {
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* Mejoras para la accesibilidad del teclado */
.btn-primary:focus,
.btn-secondary:focus,
.tab-btn:focus,
.filter-btn:focus,
.session-checkbox:focus-within {
  outline: 2px solid #00bfff;
  outline-offset: 2px;
}

/* Mejoras para el contraste de los inputs */
.wsp-checker-advanced input:focus,
.wsp-checker-advanced select:focus,
.wsp-checker-advanced textarea:focus {
  box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.5);
}

/* CorrecciÃ³n final para asegurar que no se pierda contenido */
@media (max-height: 600px) {
  .wsp-checker-panel-advanced {
    height: 98vh;
  }

  .stats-dashboard {
    padding: 8px 15px;
  }

  .stat-card {
    padding: 8px;
  }

  .advanced-header {
    padding: 8px 15px;
  }

  .main-controls {
    padding: 10px 15px;
  }
}

