/* AudienceX - Ultra-Tech Modern Design System v7.0 */

/* La tipografia se sirve desde este mismo servidor (/vendor). El @import a
   Google se sustituyo por eso y SOLO por eso: el resto del archivo es el del
   prototipo, sin tocar. */
@import url('/vendor/plus-jakarta-sans.css');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Color Palette - Luminous Tech Light Theme */
  --bg-app: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  
  --cyan-bright: #00F2FE;
  --purple-neon: #7F00FF;
  --magenta-neon: #FF007F;
  --blue-vibrant: #3B82F6;
  --green-emerald: #10B981;
  --amber-warm: #F59E0B;

  --navy-dark: #0B132B;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  --border-light: rgba(226, 232, 240, 0.9);
  --border-focus: rgba(0, 242, 254, 0.6);

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-cyan-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-purple-glow: 0 0 25px rgba(127, 0, 255, 0.25);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Animated Gradient Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(127, 0, 255, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.04) 0%, transparent 60%);
}

/* Logo Transparent */
.logo-img-transparent {
  mix-blend-mode: multiply;
  display: block;
}

/* Animated Logo X Effect - Login Centered */
.logo-login-container {
  position: relative;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 0.5rem auto !important;
  width: fit-content;
}

.logo-login-container img {
  max-height: 85px !important;
  width: auto;
  max-width: 100%;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.logo-login-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.85) 0%, rgba(127, 0, 255, 0.55) 60%, transparent 80%);
  animation: logoGlowPulse 2.5s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  z-index: 1;
}

@keyframes logoGlowPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.35; filter: blur(6px); }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.95; filter: blur(10px); }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.35; filter: blur(6px); }
}

/* Sidebar Header & Clean Logo */
.sidebar-header {
  height: 56px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

/* Mobile Top Bar Logo */
.mobile-navbar-logo img {
  max-height: 52px !important;
  width: 145px;
  object-fit: contain;
}

/* CAMPAÑAS 5-STEP WIZARD STYLING */
.wizard-step-pill {
  padding: 12px 16px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  transition: all 0.25s ease;
  cursor: pointer;
}

.wizard-step-pill.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.14) 0%, rgba(127, 0, 255, 0.08) 100%);
  border-color: var(--cyan-bright);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.15);
}

.wizard-step-pill.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step-pill.active .wizard-step-num {
  background: var(--cyan-bright);
  color: var(--navy-dark);
}

.wizard-step-pill.completed .wizard-step-num {
  background: var(--green-emerald);
  color: #FFFFFF;
}

.template-card-select {
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 18px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 12px;
}

.template-card-select:hover {
  border-color: var(--cyan-bright);
  box-shadow: var(--shadow-md);
}

.template-card-select.selected {
  border-color: var(--cyan-bright);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(0, 242, 254, 0.05) 100%);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.18);
}

.var-pill-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.var-pill-btn:hover {
  background: var(--cyan-bright);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

/* Modern Uploader Zone (Biblioteca) */
.modern-uploader-zone {
  border: 2px dashed rgba(0, 242, 254, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(0, 242, 254, 0.03) 100%);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.06);
  cursor: pointer;
}

.modern-uploader-zone:hover, .modern-uploader-zone.dragover {
  border-color: var(--cyan-bright);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(127, 0, 255, 0.06) 100%);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.25);
  transform: translateY(-2px);
}

.uploader-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(127, 0, 255, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 2rem;
  color: var(--purple-neon);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  animation: floatCloud 3s ease-in-out infinite alternate;
}

@keyframes floatCloud {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Media Cards (Biblioteca Grid) */
.media-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.5);
}

.media-thumbnail-box {
  width: 100%;
  height: 180px;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-card:hover .media-thumbnail-box img {
  transform: scale(1.06);
}

.media-overlay-actions {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.media-card:hover .media-overlay-actions {
  opacity: 1;
}

.media-info-body {
  padding: 16px;
}

.media-filename {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.media-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* BANDEJA STYLING */
.chat-conversation-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: #FFFFFF;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-conversation-item:hover {
  background: #F8FAFC;
  border-color: var(--border-light);
  transform: translateX(2px);
}

.chat-conversation-item.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(127, 0, 255, 0.08) 100%);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.1);
}

.chat-bubble-incoming {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 18px 18px 18px 4px;
  padding: 14px 18px;
  max-width: 80%;
  box-shadow: var(--shadow-sm);
  color: var(--navy-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble-outgoing {
  background: linear-gradient(135deg, #DCF8C6 0%, #E2F9CF 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 18px 18px 4px 18px;
  padding: 14px 18px;
  max-width: 80%;
  box-shadow: var(--shadow-sm);
  color: #064E3B;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-left: auto;
}

.chat-input-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

/* PLANTILLAS STYLING */
.whatsapp-phone-mockup {
  width: 100%;
  max-width: 340px;
  background: #ECE5DD;
  border-radius: 24px;
  border: 8px solid #0B132B;
  box-shadow: 0 15px 35px rgba(11, 19, 43, 0.25);
  overflow: hidden;
  margin: 0 auto;
}

.whatsapp-mockup-header {
  background: #075E54;
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.whatsapp-mockup-body {
  padding: 16px;
  min-height: 280px;
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 16px 16px;
}

.whatsapp-mockup-bubble {
  background: #FFFFFF;
  border-radius: 12px 12px 12px 2px;
  padding: 12px 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 0.85rem;
  color: #111827;
  position: relative;
}

/* Entrance Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

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

/* Login Screen Styles */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 45px rgba(0, 242, 254, 0.22);
  border-radius: 28px;
  padding: 44px 38px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Custom Buttons & Gradient Styling */
.btn-primary-gradient {
  background: linear-gradient(135deg, #00F2FE 0%, #3B82F6 50%, #7F00FF 100%);
  background-size: 200% auto;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.38);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-gradient:hover {
  background-position: right center;
  box-shadow: 0 6px 22px rgba(127, 0, 255, 0.48);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline-glow {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.btn-outline-glow:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

/* Icon-Only Action Buttons for Table */
.btn-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-action-icon:hover {
  transform: translateY(-2px);
  color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
  border-color: var(--cyan-bright);
}

.btn-action-icon.btn-eye:hover { color: #0284C7; border-color: #0284C7; }
.btn-action-icon.btn-edit:hover { color: var(--purple-neon); border-color: var(--purple-neon); }
.btn-action-icon.btn-chart:hover { color: var(--green-emerald); border-color: var(--green-emerald); }
.btn-action-icon.btn-code:hover { color: var(--navy-dark); border-color: var(--navy-dark); }
.btn-action-icon.btn-trash:hover { color: #DC2626; border-color: #DC2626; }

/* App Shell Layout */
#app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 5;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  scrollbar-width: thin;
}

.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.25);
  border-radius: 4px;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin: 10px 8px 3px 8px;
}

.nav-link-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.83rem;
  text-decoration: none;
  margin-bottom: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link-item i {
  font-size: 1.05rem;
  margin-right: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link-item:hover {
  color: var(--text-main);
  background: rgba(241, 245, 249, 0.85);
  transform: translateX(3px);
}

.nav-link-item.active {
  color: #0F172A;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14) 0%, rgba(127, 0, 255, 0.08) 100%);
  border-left: 3px solid var(--cyan-bright);
  font-weight: 700;
}

.nav-link-item.active i {
  color: var(--purple-neon);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.gm-badge {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-dot {
  width: 9px;
  height: 9px;
  background-color: var(--green-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mobile Sidebar Drawer Backdrop Overlay */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

/* Main Content Area */
.app-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header Bar */
.top-navbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.search-input-wrapper {
  position: relative;
  width: 320px;
}

.search-input-wrapper input {
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 14px 9px 40px;
  font-size: 0.88rem;
  width: 100%;
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  background: #FFFFFF;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3.5px rgba(0, 242, 254, 0.18);
  outline: none;
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
}

.kbd-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-family: var(--font-code);
  color: var(--text-subtle);
}

/* Balanced Cards & Typography */
.tech-card {
  background: var(--bg-card);
  border-radius: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
}

/* Card Accent Glowing Top Border */
.card-accent-cyan { border-top: 4px solid var(--cyan-bright); }
.card-accent-purple { border-top: 4px solid var(--purple-neon); }
.card-accent-green { border-top: 4px solid var(--green-emerald); }
.card-accent-amber { border-top: 4px solid var(--amber-warm); }
.card-accent-magenta { border-top: 4px solid var(--magenta-neon); }

.card-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.icon-cyan { background: rgba(0, 242, 254, 0.14); color: #0284C7; }
.icon-purple { background: rgba(127, 0, 255, 0.14); color: var(--purple-neon); }
.icon-green { background: rgba(16, 185, 129, 0.14); color: var(--green-emerald); }
.icon-amber { background: rgba(245, 158, 11, 0.14); color: var(--amber-warm); }
.icon-magenta { background: rgba(255, 0, 127, 0.14); color: var(--magenta-neon); }

/* Metric Numbers & Labels - Balanced & Anti-Overflow */
.metric-number {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 4px;
  word-break: break-word;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 2px;
  white-space: nowrap;
}

.trend-up { background: rgba(16, 185, 129, 0.12); color: #059669; }
.trend-down { background: rgba(239, 68, 68, 0.12); color: #DC2626; }

/* Custom Inputs & Controls Showcase */
.custom-form-control {
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 10px 16px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.custom-form-control:focus {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3.5px rgba(0, 242, 254, 0.18);
  outline: none;
}

/* Sortable Table Headers */
.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sortable-th:hover {
  color: var(--navy-dark) !important;
}

.sortable-th .sort-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  color: var(--cyan-bright);
}

/* Compact Dates in Table */
.compact-date-box {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.compact-date-main {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.compact-date-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* Multi-Select Tag Box */
.multi-select-container {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 8px 12px;
  background: #FFFFFF;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.multi-select-container:focus-within {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 0 3.5px rgba(0, 242, 254, 0.18);
}

.tag-pill {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(127, 0, 255, 0.12) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-pill .btn-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tag-pill .btn-remove:hover { color: #DC2626; }

/* Segmented Control Switcher */
.segmented-control {
  background: #F1F5F9;
  padding: 4px;
  border-radius: 14px;
  display: inline-flex;
  gap: 4px;
}

.segmented-option {
  padding: 6px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.segmented-option.active {
  background: #FFFFFF;
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

/* Stepper Control */
.stepper-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.stepper-btn {
  background: #F8FAFC;
  border: none;
  padding: 8px 14px;
  font-weight: 800;
  color: var(--navy-dark);
  cursor: pointer;
  transition: background 0.2s ease;
}

.stepper-btn:hover { background: #E2E8F0; }

.stepper-val {
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Icon Grid Showcase */
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--navy-dark);
  transition: all 0.2s ease;
  cursor: pointer;
}

.icon-box:hover {
  background: #FFFFFF;
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
  transform: translateY(-3px) scale(1.08);
  color: var(--purple-neon);
}

/* Table Tech */
.table-tech {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table-tech th {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  padding: 12px 16px;
  border: none;
}

.table-tech tbody tr {
  background: #FFFFFF;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.table-tech tbody tr:hover {
  transform: scale(1.004);
  box-shadow: var(--shadow-md);
}

.table-tech td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.table-tech td:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  border-left: 1px solid var(--border-light);
}

.table-tech td:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  border-right: 1px solid var(--border-light);
}

/* Pagination Styling */
.pagination-tech .page-item .page-link {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin: 0 3px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.pagination-tech .page-item.active .page-link {
  background: linear-gradient(135deg, #00F2FE 0%, #3B82F6 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

/* Tab Panels */
.tab-page {
  display: none;
  padding: 32px;
}

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

/* Code Snippet Box */
.code-preview-box {
  background: #0B132B;
  color: #00F2FE;
  font-family: var(--font-code);
  font-size: 0.85rem;
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 30px rgba(11, 19, 43, 0.4);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .app-sidebar.show-mobile {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .top-navbar {
    padding: 0 16px;
  }

  .search-input-wrapper {
    width: 160px;
  }

  .tab-page {
    padding: 20px 14px;
  }

  .login-card {
    padding: 32px 20px;
  }

  .logo-login-container img {
    max-height: 120px !important;
  }

  .tech-card {
    padding: 18px 14px;
  }
}
