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

      body {
        margin: 0;
        overflow: hidden;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
        background: linear-gradient(135deg, #66ea94 0%, #4ba0a2 100%);
        /* background: #25d4b1; */
        /* background: url("https://img.freepik.com/free-photo/city-blue-sky_1417-1867.jpg"); */
        background-repeat: no-repeat;
        background-size: cover;
      }

      canvas {
        display: block;
      }

      .ui-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10;
      }

      .header {
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        pointer-events: auto;
      }

      .title {
        color: white;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.02em;
      }

      .subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        font-weight: 400;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      }

      .upload-panel {
        position: absolute;
        top: 30px;
        left: 30px;
        pointer-events: auto;
      }

      .upload-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        max-width: 320px;
        transition: all 0.3s ease;
        margin-bottom: 1rem;
      }
      
      .upload-section-title {
        color: #333;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #667eea;
      }

      .background-upload {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        max-width: 320px;
        transition: all 0.3s ease;
      }

      .background-upload:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
      }

      .upload-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
      }

      .upload-label {
        display: block;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .upload-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
      }

      .upload-label:hover .upload-icon {
        transform: scale(1.1);
        background: linear-gradient(135deg, #5a6fd8, #6a42a0);
      }

      .upload-text {
        color: #333;
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
      }

      .upload-hint {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
      }

      #upload {
        display: none;
      }

      #background-upload {
        display: none;
      }

      .upload-button {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: inherit;
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
      }

      .upload-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
      }

      .controls-hint {
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
        pointer-events: auto;
        backdrop-filter: blur(10px);
        max-width: 200px;
      }

      .controls-hint h4 {
        margin-bottom: 0.5rem;
        font-weight: 600;
      }

      .controls-hint p {
        margin: 0.25rem 0;
        opacity: 0.9;
      }
      
      .model-switcher {
        position: absolute;
        left: 30px;
        bottom: 30px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
        pointer-events: auto;
        backdrop-filter: blur(10px);
        max-width: 250px;
      }
      
      .model-switcher h4 {
        margin-bottom: 0.8rem;
        font-weight: 600;
        text-align: center;
      }
      
      .switch-buttons {
        display: flex;
        gap: 8px;
      }
      
      .switch-btn {
        flex: 1;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 8px;
        color: white;
        padding: 8px 12px;
        font-family: inherit;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      
      .switch-btn:hover {
        background: rgba(255, 255, 255, 0.3);
      }
      
      .switch-btn.active {
        background: rgba(102, 126, 234, 0.6);
        font-weight: 600;
      }

      .loading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 1.2rem;
        font-weight: 500;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        display: none;
      }

      .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 1rem;
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

      @media (max-width: 768px) {
        .title {
          font-size: 2rem;
        }

        .upload-panel {
          top: 20px;
          left: 20px;
          right: 20px;
        }

        .upload-container, .background-upload {
          margin: 0 0 1rem 0;
          padding: 1.25rem;
          max-width: none;
        }

        .controls-hint {
          display: none;
        }
        
        .model-switcher {
          left: 20px;
          bottom: 20px;
          right: 20px;
          max-width: none;
        }
      }