* {
        box-sizing: border-box;
      }
      body {
        background: linear-gradient(145deg, #0b0e1a 0%, #111324 100%);
        font-family: system-ui, 'Segoe UI', sans-serif;
        margin: 0;
        padding: 2rem;
        color: #eee;
      }
      .container {
        max-width: 1200px;
        margin: 0 auto;
        background: #0f1120dd;
        backdrop-filter: blur(4px);
        border-radius: 48px;
        padding: 2rem;
        border: 1px solid #2d3142;
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
      }
      h1 {
        font-size: 2rem;
        background: linear-gradient(135deg, #c084fc, #9d6cab);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin: 0 0 0.5rem;
      }
      .sub {
        color: #aaa;
        border-right: 3px solid #9d6cab;
        padding-right: 1rem;
        margin-bottom: 2rem;
      }
      .upload-area {
        background: #1e2137;
        border: 2px dashed #3d2a6f;
        border-radius: 32px;
        padding: 2rem;
        text-align: center;
        cursor: pointer;
        transition: 0.2s;
        margin-bottom: 1.5rem;
      }
      .upload-area:hover {
        background: #292e4a;
        border-color: #9d6cab;
      }
      .preview-img {
        max-width: 100%;
        max-height: 250px;
        border-radius: 24px;
        object-fit: contain;
        background: #00000044;
        margin-top: 1rem;
      }
      .controls {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
        margin: 1rem 0;
      }
      .left-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
      }
      .format-switch {
        display: flex;
        gap: 0.5rem;
        background: #1e2137;
        padding: 5px 10px;
        border-radius: 40px;
      }
      .format-switch button {
        background: transparent;
        border: none;
        color: #bbb;
        padding: 6px 16px;
        border-radius: 30px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: 0.2s;
        margin: 0;
      }
      .format-switch button.active {
        background: #9d6cab;
        color: white;
      }
      button {
        background: #3f5dad;
        border: none;
        padding: 8px 24px;
        border-radius: 40px;
        color: white;
        font-weight: bold;
        cursor: pointer;
      }
      button:hover {
        background: #9d6cab;
      }
      .palette {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin: 2rem 0;
      }
      .color-card {
        background: #1e2137;
        border-radius: 24px;
        padding: 1rem;
        text-align: center;
        width: 180px;
        transition: 0.2s;
        cursor: pointer;
        border: 1px solid #2d3142;
      }
      .color-card:hover {
        transform: scale(1.02);
        border-color: #9d6cab;
      }
      .color-preview {
        width: 80px;
        height: 80px;
        border-radius: 20px;
        margin: 0 auto 0.5rem;
        border: 2px solid #ffffff44;
      }
      .color-value {
        font-family: monospace;
        font-size: 0.7rem;
        background: #00000066;
        padding: 4px 8px;
        border-radius: 20px;
        display: inline-block;
        word-break: break-word;
      }
      .css-output {
        background: #0c0e1a;
        border-radius: 24px;
        padding: 1.2rem;
        margin-top: 1.5rem;
      }
      pre {
        background: #00000066;
        padding: 1rem;
        border-radius: 20px;
        overflow-x: auto;
        font-size: 0.75rem;
        font-family: monospace;
        direction: ltr;
        text-align: left;
        white-space: pre-wrap;
      }
      .copy-btn {
        background: #3f5dad;
        border: none;
        padding: 4px 12px;
        border-radius: 30px;
        font-size: 0.7rem;
        cursor: pointer;
        margin-right: 8px;
      }
      .status {
        background: #1e2137;
        padding: 8px;
        border-radius: 40px;
        margin-top: 1rem;
        text-align: center;
        font-size: 0.8rem;
      }
      footer {
        text-align: center;
        font-size: 0.7rem;
        margin-top: 2rem;
        color: #5a5e7e;
      }
