  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-dark: #0f0f23;
      --bg-darker: #0a0a17;
      --bg-card: #1a1a2e;
      --bg-hover: #252540;
      --primary: #6366f1;
      --primary-dark: #4f46e5;
      --secondary: #8b5cf6;
      --accent: #22d3ee;
      --success: #10b981;
      --danger: #ef4444;
      --warning: #f59e0b;
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --border: #1e293b;
      --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-dark);
      color: var(--text-primary);
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .navbar {
      background: var(--bg-darker);
      padding: 0 30px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow);
      position: relative;
      z-index: 1000;
    }

    .navbar-brand {
      display: flex;
      align-items: center;
      gap: 15px;
      text-decoration: none;
      color: var(--text-primary);
      font-weight: 700;
      font-size: 22px;
      transition: all 0.3s ease;
    }

    .navbar-brand:hover {
      color: var(--primary);
      transform: translateX(-5px);
    }

    .brand-icon {
      width: 42px;
      height: 42px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    .brand-name {
      font-size: 20px;
      font-weight: 700;
    }

    .brand-subtitle {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 400;
      letter-spacing: 0.5px;
    }

    .navbar-actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .btn {
      padding: 10px 20px;
      border-radius: 8px;
      border: none;
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .btn-secondary {
      background: var(--bg-card);
      color: var(--text-primary);
      border: 1px solid var(--border);
    }

    .btn-secondary:hover {
      background: var(--bg-hover);
      border-color: var(--primary);
      transform: translateY(-2px);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    }

    .btn-success {
      background: var(--success);
      color: white;
    }

    .btn-success:hover {
      background: #059669;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    .toggle-container {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      background: var(--bg-card);
      border-radius: 8px;
      border: 1px solid var(--border);
    }

    .toggle-label {
      font-size: 13px;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .toggle-switch {
      width: 44px;
      height: 24px;
      background: var(--bg-darker);
      border-radius: 12px;
      position: relative;
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid var(--border);
    }

    .toggle-switch.active {
      background: var(--primary);
      border-color: var(--primary);
    }

    .toggle-slider {
      width: 16px;
      height: 16px;
      background: white;
      border-radius: 50%;
      position: absolute;
      top: 2px;
      left: 2px;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .toggle-switch.active .toggle-slider {
      left: 22px;
    }

   
    .container {
      display: flex;
      height: calc(100vh - 70px);
      overflow: hidden;
    }

 
    .editor-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: var(--bg-darker);
      border-right: 1px solid var(--border);
    }

    .editor-header {
      background: var(--bg-card);
      padding: 15px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .editor-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .editor-tabs {
      display: flex;
      background: var(--bg-darker);
      border-bottom: 1px solid var(--border);
    }

    .tab {
      flex: 1;
      padding: 16px 20px;
      text-align: center;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
      background: transparent;
      border-right: 1px solid var(--border);
      transition: all 0.3s ease;
      position: relative;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .tab:hover {
      background: var(--bg-card);
      color: var(--text-primary);
    }

    .tab.active {
      background: var(--bg-card);
      color: var(--primary);
    }

    .tab.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .editors {
      flex: 1;
      position: relative;
      overflow: hidden;
    }

    .editor-panel {
      display: none;
      height: 100%;
      padding: 0;
      overflow: hidden;
    }

    .editor-panel.active {
      display: block;
    }

    textarea {
      width: 100%;
      height: 100%;
      background: var(--bg-dark);
      color: var(--text-primary);
      border: none;
      padding: 24px;
      font-family: 'JetBrains Mono', 'Courier New', monospace;
      font-size: 14px;
      line-height: 1.8;
      resize: none;
      outline: none;
      tab-size: 2;
    }

    textarea::placeholder {
      color: var(--text-muted);
    }

    textarea::-webkit-scrollbar {
      width: 12px;
    }

    textarea::-webkit-scrollbar-track {
      background: var(--bg-darker);
    }

    textarea::-webkit-scrollbar-thumb {
      background: var(--bg-hover);
      border-radius: 6px;
    }

    textarea::-webkit-scrollbar-thumb:hover {
      background: var(--border);
    }

   
    .output-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: var(--bg-darker);
    }

    .output-header {
      background: var(--bg-card);
      padding: 15px 20px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .output-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .status-indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    .output-controls {
      display: flex;
      gap: 8px;
    }

    .icon-btn {
      width: 36px;
      height: 36px;
      background: var(--bg-darker);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      font-size: 14px;
    }

    .icon-btn:hover {
      background: var(--bg-hover);
      border-color: var(--primary);
      color: var(--primary);
      transform: scale(1.1);
    }

    .output-frame {
      flex: 1;
      background: white;
      border: none;
      width: 100%;
      height: 100%;
    }

   
    .mobile-menu-toggle {
      display: none;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-primary);
      width: 40px;
      height: 40px;
      border-radius: 8px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

   
    @media (max-width: 1024px) {
      .container {
        flex-direction: column;
      }

      .editor-section, .output-section {
        flex: none;
        height: 50%;
        border-right: none;
        border-bottom: 1px solid var(--border);
      }
    }

    @media (max-width: 768px) {
      .navbar {
        padding: 0 15px;
        height: 60px;
      }

      .brand-text {
        display: none;
      }

      .navbar-actions {
        gap: 8px;
      }

      .btn {
        padding: 8px 14px;
        font-size: 13px;
      }

      .btn span.btn-text {
        display: none;
      }

      .toggle-container {
        padding: 8px 10px;
      }

      .toggle-label {
        display: none;
      }

      .mobile-menu-toggle {
        display: flex;
      }

      .tab {
        padding: 14px 10px;
        font-size: 13px;
      }

      .tab span.tab-text {
        display: none;
      }

      textarea {
        font-size: 13px;
        padding: 16px;
      }
    }

    @media (max-width: 480px) {
      .navbar-brand {
        font-size: 18px;
      }

      .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
      }

      .container {
        height: calc(100vh - 60px);
      }
    }

   
    .fullscreen {
      position: fixed !important;
      top: 0;
      left: 0;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 9999;
      flex: none !important;
      border: none !important;
    }

   
    .loading {
      opacity: 0.6;
      pointer-events: none;
    }