/* ==========================================================================
   EBADA AI MARKETING ERP DESIGN SYSTEM (v3.0 ENTERPRISE)
   ========================================================================== */

   :root {
    --neon-blue: #00f0ff;
    --neon-purple: #9d4edd;
    --neon-pink: #ff007f;
    --neon-green: #39ff14;
    --neon-amber: #f59e0b;
    --dark-bg: #03050c;
    --panel-bg: rgba(8, 14, 28, 0.65);
    --border-color: rgba(255, 255, 255, 0.05);
  }
  
  /* Reset and Base Scrollbar */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.4);
  }
  
  body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: #e2e8f0;
    overflow: hidden;
  }
  
  /* Glassmorphism Panels */
  .glass {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
  }
  
  /* ERP Tabs Layout */
  .erp-tab-content {
    display: none;
  }
  .erp-tab-content.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.25s ease-in-out;
    height: 100%;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Label Row and Micro Buttons */
  .label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .mini-btn {
    font-size: 9px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--neon-blue);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .mini-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
  }
  
  /* 90-Day Calendar Grid */
  .calendar-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  
  /* Calendar Cell States */
  .calendar-cell.waiting {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: #475569;
  }
  .calendar-cell.waiting:hover {
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
  }
  
  .calendar-cell.completed {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--neon-blue);
    box-shadow: inset 0 0 10px rgba(6, 182, 212, 0.05);
  }
  .calendar-cell.completed:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25), inset 0 0 10px rgba(6, 182, 212, 0.1);
    color: #ffffff;
  }
  
  .calendar-cell.today {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: var(--neon-amber);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
    animation: pulseToday 2s infinite alternate;
  }
  .calendar-cell.today:hover {
    border-color: var(--neon-amber);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    color: #ffffff;
  }
  
  @keyframes pulseToday {
    from { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 0 5px rgba(245, 158, 11, 0.1); }
    to { border-color: rgba(245, 158, 11, 0.8); box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
  }
  
  /* ==========================================================================
     MOTHERBOARD HARDWARE PIPELINE ANIMATION
     ========================================================================== */
  .pc-case-frame {
    width: 280px;
    height: 160px;
    background-color: #020408;
    border: 2px solid #1e293b;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: border-color 0.3s;
  }
  
  .pc-case-frame.power-on {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.1);
  }
  
  /* CPU Socket */
  #comp-cpu {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: #090d16;
    border: 2px solid #334155;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .fan-blade {
    width: 50px;
    height: 50px;
    background: repeating-conic-gradient(from 0deg, #1e293b 0deg 30deg, transparent 30deg 60deg);
    border-radius: 50%;
    transition: transform 0.1s linear;
  }
  
  .fan-spinning-fast .fan-blade {
    animation: spin 0.3s linear infinite;
  }
  
  /* GPU Slot */
  #comp-gpu {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 140px;
    height: 35px;
    background: #090d16;
    border: 2px solid #334155;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-color 0.3s;
  }
  
  .gpu-active {
    border-color: var(--neon-purple) !important;
    box-shadow: 0 0 10px rgba(157, 77, 221, 0.4);
    animation: pulseGpu 1.5s infinite alternate;
  }
  
  @keyframes pulseGpu {
    from { box-shadow: 0 0 5px rgba(157, 77, 221, 0.2); }
    to { box-shadow: 0 0 15px rgba(157, 77, 221, 0.5); }
  }
  
  /* RAM Slots */
  .ram-slots {
    position: absolute;
    top: 20px;
    left: 110px;
    display: flex;
    gap: 4px;
  }
  
  .ram-bar {
    width: 6px;
    height: 60px;
    background: #1e293b;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  
  .ram-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--neon-blue);
    transition: height 0.3s ease-in-out;
  }
  
  /* SSD Storage */
  .ssd-drive {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 50px;
    background: #090d16;
    border: 2px solid #334155;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }
  
  .ssd-led {
    width: 6px;
    height: 6px;
    background: #475569;
    border-radius: 50%;
  }
  
  .ssd-writing {
    animation: ssd-blink 0.1s infinite alternate;
  }
  
  /* Glowing Cable Laser Lines */
  .laser-cables {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 50%, rgba(0, 240, 255, 0.2) 50%, transparent 52%);
    background-size: 200% 100%;
    background-position: 100% 0;
  }
  
  .pulse-active {
    animation: send-laser 2s infinite linear;
  }
  
  /* LEDs */
  .led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
  }
  .led-green { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
  .led-yellow { background: var(--neon-amber); box-shadow: 0 0 8px var(--neon-amber); }
  .led-red { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }
  
  /* Keyframes */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  @keyframes send-laser {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
  }
  
  @keyframes ssd-blink {
    from { background: #475569; box-shadow: none; }
    to { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }
  }
  
  /* ==========================================================================
     VIRTUAL MONITOR HARDWARE FRAME
     ========================================================================== */
  .virtual-monitor-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .monitor-bezel {
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 480px;
    background-color: #0c0f1d;
    border: 12px solid #13182b;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
  }
  
  .monitor-display {
    width: 100%;
    height: 100%;
    background-color: #03050c;
    position: relative;
  }
  
  .monitor-base-stand {
    width: 120px;
    height: 16px;
    background-color: #13182b;
    border-bottom: 4px solid #0c0f1d;
    border-radius: 4px 4px 0 0;
    position: relative;
    margin-top: -1px;
  }
  .monitor-base-stand::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: -40px;
    width: 200px;
    height: 14px;
    background-color: #0f1322;
    border-radius: 6px 6px 0 0;
  }
  
  /* Footer Action Buttons */
  .btn-footer {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
  }
  .btn-footer:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
  }
  .btn-footer:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  
  .btn-primary {
    color: var(--dark-bg) !important;
    background: var(--neon-blue) !important;
    border-color: var(--neon-blue) !important;
  }
  .btn-primary:hover:not(:disabled) {
    background: #00d8e6 !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  }
  
  .component-label {
    position: absolute;
    bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #475569;
  }

  /* ==========================================================================
     EBADA AI MARKETING ERP v4.0 ADDITIONAL STYLES
     ========================================================================== */

  /* 90-Day Calendar Status Text */
  .calendar-cell .cell-day {
    font-size: 9px;
    font-weight: 900;
  }
  
  .calendar-cell .cell-status {
    font-size: 7px;
    margin-top: 2px;
    opacity: 0.8;
    font-family: 'Outfit', sans-serif;
  }

  /* Status Colors for Calendar Cells */
  .calendar-cell.status-completed {
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--neon-blue);
  }
  .calendar-cell.status-scheduled {
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
  }
  .calendar-cell.status-analyzing {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
  }
  .calendar-cell.status-views {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
  }
  .calendar-cell.status-edited {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
  }
  .calendar-cell.status-waiting {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    color: #475569;
  }

  /* Vertical Timeline */
  .timeline-container {
    position: relative;
    padding-left: 20px;
  }
  .timeline-container::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.04);
  }

  .timeline-item {
    position: relative;
    padding-bottom: 16px;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #0f172a;
    transition: all 0.2s;
  }

  .timeline-item.completed::before {
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    border-color: #03050c;
  }
  
  .timeline-item.active::before {
    background: var(--neon-amber);
    box-shadow: 0 0 8px var(--neon-amber);
    border-color: #03050c;
    animation: timelinePulse 1.5s infinite alternate;
  }

  @keyframes timelinePulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
  }

  /* Version Badge */
  .version-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 1px 5px;
    color: #94a3b8;
  }

