@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-btn2 {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #012f42 !important;
    color: rgb(226, 35, 35);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn {
    position: absolute;
    top: 80px;
    left: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Upload Page Styles */
.upload-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.upload-area {
    border: 3px dashed #ccc;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-area p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.file-info {
    margin-top: 30px;
    text-align: center;
}

.file-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-details h3 {
    color: #333;
    margin-bottom: 10px;
}

.file-details p {
    color: #666;
    margin-bottom: 5px;
}

.next-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

/* Editor Page Styles */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100vh - 200px);
}

.color-palette-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-container, .download-container {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.preview-container {
    flex: 1;
}

.color-palette-section h2, .preview-container h2, .download-container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.color-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.color-item {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.color-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.color-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.color-label {
    font-weight: 600;
    color: #333;
}

.reset-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.color-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.current {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.color-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666;
}

.color-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input {
    width: 60px;
    height: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.done-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.svg-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.svg-preview svg {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .editor-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
}

.custom-header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.44);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center; /* Center the message */
  align-items: center;
}

.offer-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}


@media (max-width: 768px) {
  .editor-layout {
    display: flex;
    flex-direction: column;
    padding: 0 16px; /* ✅ Adds side spacing on mobile */
    height: auto;
  }

  .editor-layout > :first-child {
    order: 2; /* Left column moves below */
  }

  .editor-layout > :last-child {
    order: 1; /* Right column moves on top */
  }

  .header h1 {
    font-size: 2rem;
  }

  .upload-area {
    padding: 40px 20px;
  }

  .container {
    padding: 20px 16px; /* Optional: adds spacing to entire container too */
  }
}

@media (max-width: 768px) {
  .svg-preview {
    height: 580px; /* You can tweak this to 250 or 300 if needed */
  }
}