@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 {

    min-height: 100vh;
    padding: 0px;
}

/* Default body styling */
body {
  font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d001a;
  animation: backgroundTintFade 20s ease-in-out infinite;
  margin: 0;
  padding: 0;
  color: white;
  height: 100%;
  position: relative;
  z-index: 0; /* ensure stacking for pseudo */
}

/* Animated tint */
@keyframes backgroundTintFade {
  0% { background-color: #0d001a; }
  25% { background-color: #1a0033; }
  50% { background-color: #2c0056; }
  75% { background-color: #1a0029; }
  100% { background-color: #0d001a; }
}

/* Overlay only for desktop via pseudo-element */
@media (min-width: 1025px) {
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://ilovehue.app/wp-content/uploads/2025/07/777.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: overlay;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
  }
}

/* Logo Container */
.logo-container {
  display: flex;
  justify-content: center;
  margin: 100px 0 0px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 15px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: static;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 60px;
}

.title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #e879f9, #ffecb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 400;
}

#glassdiv {
  background: rgba(255, 255, 255, 0.07); /* semi-transparent */
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  color: white;

  /* Glass blur effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Border with shine */
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: 1px solid rgba(255, 255, 255, 0.05);

  /* Optional border highlight */
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 10px rgba(255, 255, 255, 0.1);

  padding: 2rem;
  color: white;
  position: relative;
  z-index: 1; /* Ensure it sits above background elements */
}
#glassdiv::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
  pointer-events: none;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
}


.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: #ffffff;
    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: #ffffff;
    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: rgb(236, 173, 252);
  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: #550041;
  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: 180px; /* You can tweak this to 250 or 300 if needed */
  }
}