body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #101a2b 0%, #232e4a 100%);
    margin: 0;
    min-height: 100vh;
    color: #f4f6fa;
    overflow-x: hidden;
  }
  .saas-header, .classic-header {
    width: 100vw;
    background: rgba(21,31,54,0.92);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 0 0 0;
    height: 64px;
    box-shadow: 0 2px 16px 0 rgba(36,113,163,0.10);
    backdrop-filter: blur(8px);
  }
  .logo {
    font-size: 1.7em;
    font-weight: 800;
    letter-spacing: 2px;
    color: #6ddcff;
    text-decoration: none;
    margin-left: 40px;
    text-shadow: 0 2px 12px #1a2330cc;
    transition: color 0.2s;
  }
  .logo:hover {
    color: #2196f3;
  }
  .classic-main {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    width: 100vw;
    min-height: calc(100vh - 64px);
    background: none;
  }
  .classic-controls {
    background: rgba(30, 36, 50, 0.82);
    color: #fff;
    width: 370px;
    min-width: 260px;
    max-width: 420px;
    padding: 48px 36px 36px 36px;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 32px 0 rgba(36,113,163,0.13);
    border-right: 2px solid #2e3a5e;
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
    backdrop-filter: blur(16px);
    z-index: 2;
  }
  .classic-title {
    font-size: 2.2em;
    font-weight: 900;
    color: #6ddcff;
    margin-bottom: 36px;
    letter-spacing: 2px;
    text-align: left;
    text-shadow: 0 2px 12px #1a2330cc;
  }
  .form-group {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
  }
  .form-group label {
    font-size: 1.12em;
    color: #b0c4ff;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  #sockInputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    margin-bottom: 10px;
  }
  .sock-input {
    width: 64px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #3a4a6d;
    font-size: 1.08em;
    background: rgba(35,46,74,0.85);
    color: #fff;
    outline: none;
    font-weight: 600;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(36,113,163,0.08);
  }
  .sock-input:focus {
    border: 1.5px solid #6ddcff;
    box-shadow: 0 0 0 2px #6ddcff55;
  }
  #sortType {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid #3a4a6d;
    font-size: 1.08em;
    background: rgba(35,46,74,0.85);
    color: #fff;
    outline: none;
    font-weight: 600;
    transition: border 0.2s, box-shadow 0.2s;
  }
  #sortType:focus {
    border: 1.5px solid #6ddcff;
    box-shadow: 0 0 0 2px #6ddcff55;
  }
  .classic-btn {
    padding: 16px 0;
    width: 100%;
    border-radius: 10px;
    font-size: 1.12em;
    font-weight: 800;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    margin-bottom: 22px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 12px rgba(36,113,163,0.13);
  }
  .classic-btn-random {
    background: linear-gradient(90deg, #ff5858 0%, #f09819 100%);
    color: #fff;
    text-shadow: 0 2px 8px #1a2330cc;
  }
  .classic-btn-random:hover {
    background: linear-gradient(90deg, #f09819 0%, #ff5858 100%);
    transform: translateY(-2px) scale(1.03);
  }
  .classic-btn-sort {
    background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
    color: #fff;
    text-shadow: 0 2px 8px #1a2330cc;
  }
  .classic-btn-sort:hover {
    background: linear-gradient(90deg, #185a9d 0%, #43cea2 100%);
    transform: translateY(-2px) scale(1.03);
  }
  .classic-visualization {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    min-width: 0;
    min-height: 100%;
    position: relative;
  }
  #myCanvas {
    border: 2.5px solid #6ddcff;
    background: rgba(16,26,43,0.92);
    border-radius: 18px;
    width: 62vw;
    height: 78vh;
    max-width: 950px;
    max-height: 82vh;
    display: block;
    box-shadow: 0 8px 32px 0 rgba(36, 113, 163, 0.18);
    transition: box-shadow 0.2s, border-color 0.3s;
  }
  #myCanvas:focus {
    box-shadow: 0 0 0 3px #6ddcff;
  }
  @media (max-width: 1100px) {
    .classic-main {
      flex-direction: column;
    }
    .classic-controls {
      width: 100vw;
      max-width: 100vw;
      border-right: none;
      border-bottom: 2px solid #2e3a5e;
      border-radius: 0 0 32px 32px;
      box-shadow: none;
    }
    .classic-visualization {
      padding: 0 0 24px 0;
    }
    #myCanvas {
      width: 98vw;
      height: 44vh;
      max-width: 98vw;
      max-height: 54vh;
    }
  }
  ::-webkit-scrollbar {
    width: 8px;
    background: #232e4a;
  }
  ::-webkit-scrollbar-thumb {
    background: #6ddcff;
    border-radius: 8px;
  }
  