    :root {
      --primary-color: #4361ee;
      --accent-color: #4cc9f0;
      --dark-color: #1a1a2e;
      --light-color: #f8f9fa;
      --success-color: #2ecc71;
      --warning-color: #f39c12;
      --danger-color: #e74c3c;
    }
    
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 30px;
      border-radius: 12px;
      background: white;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .upload-area {
      border: 2px dashed #d1d5db;
      border-radius: 10px;
      padding: 40px 20px;
      text-align: center;
      background: #f8fafc;
      transition: all 0.3s ease;
      margin-bottom: 30px;
      cursor: pointer;
      position: relative;
    }
    
    .upload-area:hover {
      border-color: var(--primary-color);
      background: rgba(67, 97, 238, 0.03);
    }
    
    .upload-area i {
      font-size: 48px;
      color: var(--primary-color);
      margin-bottom: 15px;
    }
    
    .upload-area h4 {
      color: var(--dark-color);
      margin-bottom: 10px;
    }
    
    .upload-area p {
      color: #6b7280;
      margin-bottom: 0;
    }
    
    .error-message {
      color: var(--danger-color);
      background-color: #fef2f2;
      padding: 10px 15px;
      border-radius: 6px;
      margin-top: 10px;
      display: none;
    }
    
    .controls-card {
      background: white;
      border-radius: 10px;
      padding: 25px;
      margin-bottom: 30px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .controls-title {
      font-weight: 600;
      color: var(--dark-color);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .controls-title i {
      color: var(--primary-color);
    }
    
    .format-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }
    
    .format-btn {
      flex: 1;
      min-width: 120px;
      padding: 12px;
      border: none;
      border-radius: 8px;
      background: white;
      color: var(--dark-color);
      font-weight: 500;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      border: 1px solid #e2e8f0;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    
    .format-btn:hover {
      background: #f8fafc;
      transform: translateY(-2px);
    }
    
    .format-btn.active {
      background: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
      box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
    }
    
    .action-buttons {
      display: flex;
      gap: 15px;
      margin-top: 20px;
    }
    
    .action-btn {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-weight: 500;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    
    .primary-btn {
      background: var(--primary-color);
      color: white;
    }
    
    .primary-btn:hover {
      background: #3a56d4;
      transform: translateY(-2px);
    }
    
    .secondary-btn {
      background: white;
      color: var(--dark-color);
      border: 1px solid #e2e8f0;
    }
    
    .secondary-btn:hover {
      background: #f8fafc;
      transform: translateY(-2px);
    }
    
    .danger-btn {
      background: white;
      color: var(--danger-color);
      border: 1px solid #e2e8f0;
    }
    
    .danger-btn:hover {
      background: #fef2f2;
      transform: translateY(-2px);
    }
    
    .results-container {
      background: white;
      border-radius: 10px;
      padding: 25px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .results-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    
    .results-title {
      font-weight: 600;
      color: var(--dark-color);
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .image-grid {
      display: grid;
      gap: 20px;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .image-card {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }
    
    .image-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .image-preview {
      width: 100%;
      height: 180px;
      object-fit: contain;
      background: #f8fafc;
      border-bottom: 1px solid #e2e8f0;
    }
    
    .image-details {
      padding: 15px;
      background: white;
    }
    
    .image-name {
      font-weight: 500;
      color: var(--dark-color);
      margin-bottom: 8px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .image-meta {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 0.85rem;
    }
    
    .image-size {
      color: #6b7280;
    }
    
    .image-dimensions {
      color: #6b7280;
    }
    
    .compression-info {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 0.85rem;
      margin-bottom: 12px;
    }
    
    .compression-ratio {
      font-weight: 500;
    }
    
    .ratio-up {
      color: var(--danger-color);
    }
    
    .ratio-down {
      color: var(--success-color);
    }
    
    .download-btn {
      width: 100%;
      padding: 8px;
      border: none;
      border-radius: 6px;
      background: var(--primary-color);
      color: white;
      font-weight: 500;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    
    .download-btn:hover {
      background: #3a56d4;
    }
    
    .loading-container {
      display: none;
      text-align: center;
      padding: 30px;
    }
    
    .spinner {
      width: 50px;
      height: 50px;
      border: 4px solid rgba(67, 97, 238, 0.2);
      border-top: 4px solid var(--primary-color);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 15px;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .progress-container {
      height: 10px;
      background: #e2e8f0;
      border-radius: 10px;
      overflow: hidden;
      margin: 20px 0;
      display: none;
    }
    
    .progress-bar {
      height: 100%;
      background: var(--primary-color);
      border-radius: 10px;
      transition: width 0.3s ease;
      width: 0%;
    }
    
    .features-container {
      margin-top: 40px;
    }
    
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }
    
    .feature-card {
      background: white;
      border-radius: 10px;
      padding: 25px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }
    
    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .feature-icon {
      font-size: 24px;
      color: var(--primary-color);
      margin-bottom: 15px;
    }
    
    .feature-title {
      font-weight: 600;
      color: var(--dark-color);
      margin-bottom: 10px;
    }
    
    .feature-desc {
      color: #6b7280;
      font-size: 0.95rem;
    }
    
    .hidden {
      display: none;
    }
    
    .hidden-input {
      display: none;
    }
    
    .info-section {
      margin-top: 40px;
      padding: 20px;
      background: #f8fafc;
      border-radius: 10px;
    }
    
    .info-section h3 {
      color: var(--primary-color);
      margin-top: 0;
    }
    
    .info-section ul, .info-section ol {
      padding-left: 20px;
    }
    
    .info-section li {
      margin-bottom: 8px;
    }
    
    .supported-formats {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 15px 0;
    }
    
    .format-badge {
      padding: 5px 12px;
      background: white;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 500;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      border: 1px solid #e2e8f0;
    }
    
    @media (max-width: 768px) {
      .container {
        padding: 20px;
      }
      
      .format-buttons {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .action-buttons {
        flex-direction: column;
      }
      
      .image-grid {
        grid-template-columns: 1fr;
      }
    }