/* 
 * madjuoFinX Layout Components CSS
 * Additional styles for layout-specific elements
 */

/* ===== MODE SWITCHER ===== */
.mode-switcher {
  position: relative;
}

.mode-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 50px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 50px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--medium-grey);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--neon-blue), var(--cyber-orange));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.mode-btn i {
  font-size: 1.2rem;
  margin-bottom: 2px;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.mode-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  position: relative;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  color: var(--neon-blue);
  transform: translateY(-2px);
}

.mode-btn:hover::before {
  opacity: 0.1;
}

.mode-btn.active {
  color: white;
  box-shadow: var(--subtle-glow);
}

.mode-btn.active::before {
  opacity: 1;
}

.mode-btn.active i {
  transform: scale(1.1);
}

/* Mode-specific colors */
.mode-btn[data-mode="pos"].active {
  background: linear-gradient(135deg, var(--neon-blue), var(--electric-blue));
}

.mode-btn[data-mode="inventory"].active {
  background: linear-gradient(135deg, var(--cyber-orange), var(--warm-orange));
}

.mode-btn[data-mode="suggest"].active {
  background: linear-gradient(135deg, var(--electric-blue), var(--neon-cyan));
}

.mode-btn[data-mode="ai"].active {
  background: linear-gradient(135deg, var(--cyber-orange), #FFB347);
}

/* ===== CURRENT MODE DISPLAY ===== */
.current-mode-display {
  position: relative;
  overflow: hidden;
}

.current-mode-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: scanLine 3s linear infinite;
}

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

.mode-icon i {
  filter: drop-shadow(0 0 10px currentColor);
  animation: pulse 2s infinite;
}

/* ===== SIDEBAR ENHANCEMENTS ===== */
.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.3), transparent);
  border: none;
  margin: var(--space-lg) 0;
}

.sidebar-footer {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
}

/* ===== USER MENU ===== */
.notification-icon button {
  position: relative;
}

.notification-icon .badge {
  font-size: 0.6rem;
  padding: 0.2em 0.4em;
  animation: pulse 2s infinite;
}

.dropdown-menu.glass {
  background: rgba(14, 17, 23, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  box-shadow: var(--blue-glow);
  margin-top: 10px;
}

.dropdown-item {
  color: var(--silver-white);
  transition: all 0.3s ease;
  padding: var(--space-sm) var(--space-md);
}

.dropdown-item:hover {
  background: rgba(0, 191, 255, 0.1);
  color: var(--neon-blue);
  transform: translateX(5px);
}

.dropdown-divider {
  border-color: rgba(0, 191, 255, 0.2);
}

/* ===== ALERTS ===== */
.alert.glass {
  background: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.3);
  color: var(--silver-white);
}

.alert-success.glass {
  border-color: rgba(40, 167, 69, 0.5);
  background: rgba(14, 17, 23, 0.9);
}

.alert-danger.glass {
  border-color: rgba(220, 53, 69, 0.5);
  background: rgba(14, 17, 23, 0.9);
}

.alert-success i {
  color: #28a745;
}

.alert-danger i {
  color: #dc3545;
}

/* ===== FLOATING ACTION BUTTON (FAB) ===== */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--z-modal);
}

.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: var(--blue-glow);
  border: none;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-main:hover {
  transform: scale(1.1) rotate(45deg);
  box-shadow: var(--intense-glow);
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fab-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  box-shadow: var(--subtle-glow);
  transition: all 0.3s ease;
}

.fab-item:hover {
  transform: scale(1.1);
  box-shadow: var(--orange-glow);
}

/* ===== WATERMARK ===== */
.watermark {
  position: fixed;
  bottom: 10px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: rgba(0, 191, 255, 0.3);
  font-weight: 300;
  z-index: 1;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: var(--space-xl);
}

.page-header .glass {
  position: relative;
  overflow: hidden;
}

.page-header .glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  animation: slideRight 3s ease-in-out infinite;
}

@keyframes slideRight {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ===== FOOTER ===== */
.footer {
  margin-left: 280px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 191, 255, 0.2);
  background: rgba(14, 17, 23, 0.8);
  backdrop-filter: blur(10px);
  transition: margin-left 0.3s ease;
}

.footer.sidebar-hidden {
  margin-left: 0;
}

.footer-stats {
  gap: var(--space-lg);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ===== CHART CONTAINERS ===== */
.chart-container {
  background: rgba(14, 17, 23, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: scanLine 4s linear infinite;
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--neon-blue);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
  .footer {
    margin-left: 0;
  }
  
  .mode-toggle {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  .mode-btn {
    width: 50px;
    height: 45px;
  }
  
  .mode-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .navbar .container-fluid {
    padding: 0 var(--space-md);
  }
  
  .mode-switcher {
    display: none;
  }
  
  .user-menu .notification-icon {
    display: none;
  }
  
  .fab-container {
    bottom: 15px;
    right: 15px;
  }
  
  .watermark {
    display: none;
  }
}

/* ===== SCROLL EFFECTS ===== */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 191, 255, 0.5);
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 191, 255, 0.8);
}

/* ===== LOADING STATES ===== */
.mode-btn.loading {
  pointer-events: none;
}

.mode-btn.loading i {
  animation: spin 1s linear infinite;
}

/* ===== ADVANCED ANIMATIONS ===== */
@keyframes energyPulse {
  0% {
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8), 0 0 30px rgba(255, 140, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
  }
}

.energy-pulse {
  animation: energyPulse 2s ease-in-out infinite;
}

/* ===== STATUS INDICATORS ===== */
.status-online {
  position: relative;
}

.status-online::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--dark-space-grey), 0 0 5px #28a745;
  animation: pulse 2s infinite;
}

/* ===== HOLOGRAM EFFECTS ===== */
.hologram {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 191, 255, 0.1) 0%,
    rgba(0, 191, 255, 0.05) 50%,
    rgba(0, 191, 255, 0.1) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: var(--radius-md);
}

.hologram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 191, 255, 0.1) 50%,
    transparent 70%
  );
  animation: holoScan 3s linear infinite;
  pointer-events: none;
}

@keyframes holoScan {
  0% { transform: translateX(-100%) skewX(-45deg); }
  100% { transform: translateX(100%) skewX(-45deg); }
}