/* Workspace */
    .workspace {
      max-width: 1200px;
      margin: 0 auto;
      padding: 12px 0px 12px 0px;
      box-sizing: border-box;
    }

    .panes {
      background: #0b0c10;
      border: 1px solid #171920;
      border-radius: 10px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      overflow: hidden;
    }

    .pane {
      display: flex;
      flex-direction: column;
    }

    .pane+.pane {
      border-left: 1px solid #1f2330;
    }

    .pane-header {
      background: #11131a;
      color: #d1d5db;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #1f2330;
    }

    .pane-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
    }

    .pane-title i {
      font-size: 18px;
    }

    .pane-title .html-icon {
      color: #e34f26;
    }

    .pane-title .css-icon {
      color: #264de4;
    }

    .pane-title .js-icon {
      color: #f7df1e;
    }

    .preview-head {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .preview-head i {
      font-size: 18px;
      color: #39e778;
    }

    /* Improved hover effects */
    .pane-header:hover {
      background: #161822;
    }

    .code-area {
      position: relative;
    }

    .code-area::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, #0f1117, transparent 10px);
      pointer-events: none;
      z-index: 2;
    }

    .code-area {
      display: flex;
      height: 340px;
    }

    .gutter {
      width: 44px;
      background: #0c0e14;
      color: #6b7280;
      text-align: right;
      box-sizing: border-box;
      padding: 0px 16px 12px 7px;
      border-right: 1px solid #1f2330;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 13px;
      line-height: 1.6;
      overflow: auto;
    }

    .code-wrap {
      position: relative;
      flex: 1;
    }

    .highlight {
      position: absolute;
      inset: 0;
      overflow: auto;
      padding: 10px 12px;
      background: var(--code-bg);
      display: none;
    }

    .highlight code {
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 13px;
      line-height: 1.6;
      white-space: pre;
      tab-size: 2;
    }

    .code {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      background: #0f1117;
      box-sizing: border-box;
      color: #e5e7eb;
      caret-color: #e5e7eb;
      border: 0;
      padding: 10px 12px;
      font-family: 'JetBrains Mono', ui-monospace, monospace;
      font-size: 13px;
      line-height: 1.6;
      outline: none;
      resize: none;
      overflow: auto;
      white-space: pre;
      tab-size: 2;
    }

    .code:focus {
      box-shadow: inset 0 0 0 1px #6c5ce7;
      transition: box-shadow 0.2s ease;
    }

    .code,
    .gutter,
    .highlight {
      height: 100%;
    }

    .code::-webkit-scrollbar,
    .gutter::-webkit-scrollbar,
    .highlight::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    .code::-webkit-scrollbar-thumb,
    .gutter::-webkit-scrollbar-thumb,
    .highlight::-webkit-scrollbar-thumb {
      background: #3a3f4b;
      border-radius: 8px;
      border: 2px solid #0f1117;
    }

    .code::-webkit-scrollbar-thumb:hover,
    .gutter::-webkit-scrollbar-thumb:hover,
    .highlight::-webkit-scrollbar-thumb:hover {
      background: #4a4f5b;
    }

    .code::-webkit-scrollbar-track,
    .gutter::-webkit-scrollbar-track,
    .highlight::-webkit-scrollbar-track {
      background: transparent;
    }

    .preview-wrap {
      border: 1px solid #171920;
      border-radius: 10px;
      overflow: hidden;
      margin-top: 14px;
    }

    .preview-head {
      background: #11131a;
      padding: 10px 12px;
      font-weight: 700;
      color: #ffff;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .preview-title {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .open-new-tab {
      background: #20232b;
      color: #e5e7eb;
      border: 1px solid #2f3340;
      padding: 6px 12px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }
    
    .open-new-tab:hover {
      background: #2a2d36;
      border-color: #3f4356;
      transform: translateY(-1px);
    }

    .open-new-tab:active {
      transform: translateY(0);
    }
    
    
    .preview iframe {
      width: 100%;
      height: 460px;
      border: 0;
      display: block;
      background: #ffff;
    }

    /* Pane actions */
    .pane-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .action-btn {
      background: #20232b;
      color: #e5e7eb;
      border: 1px solid #2f3340;
      padding: 6px 12px;
      box-sizing: border-box;
      border-radius: 8px;
      cursor: pointer;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .action-btn i {
      font-size: 14px;
    }

    .action-btn:hover {
      background: #2a2d36;
      border-color: #3f4356;
      transform: translateY(-1px);
    }

    .action-btn:active {
      transform: translateY(0);
    }

    .action-btn.success {
      background: #14532d;
      border-color: #166534;
      color: #bbf7d0;
    }

    footer {
      text-align: center;
      color: #a3a3a3;
      padding: 16px 0;
      font-size: 0.95rem;
    }

    @media (max-width: 1000px) {
      .panes {
        grid-template-columns: 1fr;
      }

      .pane+.pane {
        border-left: none;
        border-top: 1px solid #1f2330;
      }
    }
