/* DevMit FunkMix Theme - Gritty Neon Urban Aesthetic */

/* CSS Custom Properties for FunkMix Theme */
:root {
    --funkmix-primary: #00ff88;
    --funkmix-accent: #ffaa00;
    --funkmix-background: #0a0a0a;
    --funkmix-surface: #1a203a;
    --funkmix-text: #ffffff;
    --funkmix-text-secondary: #cccccc;
    --funkmix-border: #333333;
    --funkmix-glow: rgba(0, 255, 136, 0.3);
    --funkmix-accent-glow: rgba(255, 170, 0, 0.3);
    --funkmix-font: 'Orbitron', monospace;
    --funkmix-border-radius: 8px;
    --funkmix-shadow: 0 4px 12px var(--funkmix-glow);
    --funkmix-accent-shadow: 0 4px 12px var(--funkmix-accent-glow);
    --dm-primary: #10F4F0;
    --dm-accent:  #FFB300;
    --dm-bg:      #14192F;
    --dm-text:    #FFFFFF;
    --dm-inactive:#323357;
    --dm-radius:  1.5rem;
    --dm-shadow:  0 4px 24px rgba(16, 244, 240, 0.12);
    --font-header: 700;
    --font-body:   400;
    --font-stack:  'Montserrat', 'Inter', Arial, sans-serif;
}

/* Apply FunkMix Theme */
.funkmix-theme {
    background-color: var(--funkmix-background);
    color: var(--funkmix-text);
    font-family: var(--funkmix-font);
}

/* Typography */
.funkmix-theme h1, 
.funkmix-theme h2, 
.funkmix-theme h3, 
.funkmix-theme h4, 
.funkmix-theme h5, 
.funkmix-theme h6 {
    color: var(--funkmix-primary);
    font-weight: 700;
    text-shadow: 0 0 10px var(--funkmix-glow);
}

.funkmix-theme h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.funkmix-theme h2 {
    font-size: 2rem;
    letter-spacing: 1.5px;
}

.funkmix-theme h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Navigation Elements */
.funkmix-theme .nav-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--funkmix-border);
    border-radius: var(--funkmix-border-radius);
    color: var(--funkmix-text);
    padding: 12px 20px;
    font-family: var(--funkmix-font);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.funkmix-theme .nav-button:hover {
    background-color: var(--funkmix-primary);
    color: var(--funkmix-background);
    box-shadow: var(--funkmix-shadow);
    transform: translateY(-2px);
}

.funkmix-theme .nav-button.active {
    background-color: var(--funkmix-primary);
    color: var(--funkmix-background);
    box-shadow: var(--funkmix-shadow);
    border-color: var(--funkmix-primary);
}

/* Buttons */
.funkmix-theme .btn-primary {
    background: linear-gradient(135deg, var(--funkmix-primary), #00cc6a);
    border: none;
    border-radius: var(--funkmix-border-radius);
    color: var(--funkmix-background);
    padding: 12px 24px;
    font-family: var(--funkmix-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--funkmix-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.funkmix-theme .btn-primary:hover {
    background: linear-gradient(135deg, #00cc6a, var(--funkmix-primary));
    box-shadow: 0 6px 20px var(--funkmix-glow);
    transform: translateY(-2px);
}

.funkmix-theme .btn-accent {
    background: linear-gradient(135deg, var(--funkmix-accent), #ff8800);
    border: none;
    border-radius: var(--funkmix-border-radius);
    color: var(--funkmix-background);
    padding: 12px 24px;
    font-family: var(--funkmix-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--funkmix-accent-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.funkmix-theme .btn-accent:hover {
    background: linear-gradient(135deg, #ff8800, var(--funkmix-accent));
    box-shadow: 0 6px 20px var(--funkmix-accent-glow);
    transform: translateY(-2px);
}

/* Panels and Cards */
.funkmix-theme .module-panel {
    background-color: var(--funkmix-surface);
    border: 1px solid var(--funkmix-border);
    border-radius: var(--funkmix-border-radius);
    box-shadow: var(--funkmix-shadow);
    padding: 20px;
    margin: 10px 0;
}

.funkmix-theme .card {
    background-color: var(--funkmix-surface);
    border: 1px solid var(--funkmix-border);
    border-radius: var(--funkmix-border-radius);
    box-shadow: var(--funkmix-shadow);
    padding: 20px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.funkmix-theme .card:hover {
    box-shadow: 0 8px 25px var(--funkmix-glow);
    transform: translateY(-3px);
}

/* Sub-tabs */
.funkmix-theme .sub-tab-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--funkmix-border);
    border-radius: var(--funkmix-border-radius);
    color: var(--funkmix-text);
    padding: 8px 16px;
    font-family: var(--funkmix-font);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 2px;
}

.funkmix-theme .sub-tab-button:hover {
    background-color: var(--funkmix-primary);
    color: var(--funkmix-background);
    box-shadow: var(--funkmix-shadow);
}

.funkmix-theme .sub-tab-button.active {
    background-color: var(--funkmix-primary);
    color: var(--funkmix-background);
    box-shadow: var(--funkmix-shadow);
    border-color: var(--funkmix-primary);
}

.funkmix-theme .sub-tab-content {
    background-color: var(--funkmix-surface);
    border: 1px solid var(--funkmix-border);
    border-radius: var(--funkmix-border-radius);
    padding: 20px;
    margin-top: 10px;
}

/* Form Elements */
.funkmix-theme input,
.funkmix-theme textarea,
.funkmix-theme select {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--funkmix-border);
    border-radius: var(--funkmix-border-radius);
    color: var(--funkmix-text);
    padding: 12px;
    font-family: var(--funkmix-font);
    transition: all 0.3s ease;
}

.funkmix-theme input:focus,
.funkmix-theme textarea:focus,
.funkmix-theme select:focus {
    outline: none;
    border-color: var(--funkmix-primary);
    box-shadow: 0 0 10px var(--funkmix-glow);
}

/* Status Indicators */
.funkmix-theme .status-ok {
    color: var(--funkmix-primary);
    text-shadow: 0 0 5px var(--funkmix-glow);
}

.funkmix-theme .status-warning {
    color: var(--funkmix-accent);
    text-shadow: 0 0 5px var(--funkmix-accent-glow);
}

.funkmix-theme .status-error {
    color: #ff3e3e;
    text-shadow: 0 0 5px rgba(255, 62, 62, 0.5);
}

/* Animations */
@keyframes funkmix-glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--funkmix-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--funkmix-glow), 0 0 30px var(--funkmix-glow);
    }
}

@keyframes funkmix-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.funkmix-theme .glow-animation {
    animation: funkmix-glow 2s ease-in-out infinite;
}

.funkmix-theme .pulse-animation {
    animation: funkmix-pulse 1.5s ease-in-out infinite;
}

/* Scrollbars */
.funkmix-theme ::-webkit-scrollbar {
    width: 8px;
}

.funkmix-theme ::-webkit-scrollbar-track {
    background: var(--funkmix-background);
}

.funkmix-theme ::-webkit-scrollbar-thumb {
    background: var(--funkmix-primary);
    border-radius: 4px;
}

.funkmix-theme ::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
    box-shadow: 0 0 5px var(--funkmix-glow);
}

/* Special Effects */
.funkmix-theme .neon-border {
    border: 1px solid var(--funkmix-primary);
    box-shadow: 
        0 0 5px var(--funkmix-glow),
        inset 0 0 5px var(--funkmix-glow);
}

.funkmix-theme .neon-text {
    color: var(--funkmix-primary);
    text-shadow: 
        0 0 5px var(--funkmix-glow),
        0 0 10px var(--funkmix-glow),
        0 0 15px var(--funkmix-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .funkmix-theme h1 {
        font-size: 2rem;
    }
    
    .funkmix-theme h2 {
        font-size: 1.5rem;
    }
    
    .funkmix-theme .nav-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .funkmix-theme .btn-primary,
    .funkmix-theme .btn-accent {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .funkmix-theme {
        --funkmix-primary: #00ff00;
        --funkmix-accent: #ffff00;
        --funkmix-background: #000000;
        --funkmix-surface: #111111;
        --funkmix-text: #ffffff;
        --funkmix-border: #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .funkmix-theme * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Global Base Styles                                        */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
body {
  background-color: var(--dm-bg);
  color: var(--dm-text);
  font-family: var(--font-stack);
  font-weight: var(--font-body);
  margin: 0; padding: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: var(--font-header);
  color: var(--dm-primary);
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Buttons & Toggles                                         */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.button, .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
  background-color: var(--dm-primary);
  color: var(--dm-bg);
  font-weight: var(--font-header);
  cursor: pointer;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(16, 244, 240, 0.2);
}

.toggle-switch {
  position: relative;
  width: 3rem; height: 1.5rem;
  background: var(--dm-inactive);
  border-radius: var(--dm-radius);
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 0.125rem; left: 0.125rem;
  width: 1.25rem; height: 1.25rem;
  background: var(--dm-bg);
  border-radius: 50%;
  transition: left 0.3s;
}
.toggle-switch.active {
  background: var(--dm-primary);
}
.toggle-switch.active::after {
  left: calc(100% - 1.375rem);
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Tab Styles                                                */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.tab-bar {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0,0,0,0.25);
}
.tab-bar .tab {
  padding: 0.5rem 1rem;
  border-radius: var(--dm-radius);
  background: var(--dm-inactive);
  color: var(--dm-text);
  font-weight: var(--font-header);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.tab-bar .tab.active {
  background: var(--dm-primary);
  box-shadow: var(--dm-shadow);
}
.tab-bar .tab.pinned {
  background: var(--dm-accent);
}
.tab-bar .tab.locked {
  background: #444;
  cursor: not-allowed;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Agent Selector                                           */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.agent-selector {
  margin: 1rem 0;
}
.agent-selector select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--dm-primary);
  border-radius: var(--dm-radius);
  background: var(--dm-bg);
  color: var(--dm-text);
  font-family: var(--font-stack);
  font-weight: var(--font-body);
  appearance: none;
  cursor: pointer;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      LaunchTour Overlay                                        */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.launch-tour-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(20,25,47,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.launch-tour-overlay .step {
  background: var(--dm-bg);
  border-radius: var(--dm-radius);
  padding: 2rem;
  max-width: 500px;
  box-shadow: var(--dm-shadow);
}
.launch-tour-overlay .step h2 {
  margin-top: 0;
  color: var(--dm-primary);
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Notifications                                            */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.toast {
  position: fixed;
  bottom: 1rem; right: 1rem;
  background: var(--dm-primary);
  color: var(--dm-bg);
  padding: 1rem 1.5rem;
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow);
  animation: fadeIn 0.4s ease-out, fadeOut 0.4s ease-in 4s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);}
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0);}
  to   { opacity: 0; transform: translateY(10px);}
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Utility & Layout                                         */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.container {
  padding: 2rem;
}
.hidden {
  display: none !important;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      FunkToggle Component                                      */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.funk-toggle-container {
  display: inline-block;
  margin: 0.5rem;
}

.funk-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--dm-surface);
  border-radius: var(--dm-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--dm-inactive);
}

.funk-toggle:hover {
  border-color: var(--dm-primary);
  box-shadow: var(--dm-shadow);
}

.funk-toggle.active {
  border-color: var(--dm-primary);
  background: rgba(16, 244, 240, 0.1);
  box-shadow: var(--dm-shadow);
}

.funk-toggle-label {
  font-weight: var(--font-header);
  color: var(--dm-text);
  font-size: 0.9rem;
}

.funk-toggle.active .funk-toggle-label {
  color: var(--dm-primary);
}

.funk-toggle-switch {
  position: relative;
  width: 2.5rem;
  height: 1.25rem;
  background: var(--dm-inactive);
  border-radius: var(--dm-radius);
  transition: background 0.3s;
}

.funk-toggle.active .funk-toggle-switch {
  background: var(--dm-primary);
}

.funk-toggle-slider {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1rem;
  height: 1rem;
  background: var(--dm-bg);
  border-radius: 50%;
  transition: left 0.3s ease;
}

.funk-toggle.active .funk-toggle-slider {
  left: calc(100% - 1.125rem);
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Cockpit Mode Effects                                      */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.cockpit-mode {
  /* Add special cockpit mode visual effects */
  background: linear-gradient(135deg, var(--dm-bg) 0%, #1a1f3a 100%);
}

.cockpit-mode .funk-toggle {
  animation: cockpit-glow 2s ease-in-out infinite alternate;
}

@keyframes cockpit-glow {
  from {
    box-shadow: 0 0 10px rgba(16, 244, 240, 0.3);
  }
  to {
    box-shadow: 0 0 20px rgba(16, 244, 240, 0.6);
  }
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Sidebar Component                                         */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.sidebar {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(0,0,0,0.1);
  border-radius: var(--dm-radius);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-tab {
  padding: 0.75rem 1rem;
  border-radius: var(--dm-radius);
  background: var(--dm-inactive);
  color: var(--dm-text);
  font-weight: var(--font-header);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.sidebar-tab:hover {
  background: rgba(16, 244, 240, 0.1);
  border-color: var(--dm-primary);
  transform: translateX(4px);
}

.sidebar-tab.active {
  background: var(--dm-primary);
  color: var(--dm-bg);
  box-shadow: var(--dm-shadow);
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Disable FloatingTabTray                                   */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
.sub-tab-container,
.floating-tab-tray,
#sub-tab-container {
  display: none !important;
}

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
/*      Utility & Layout                                          */
/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/ 