 /* Base styles */
    * {
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      padding: 0;
      background: #f5f8fa;
      color: #333;
      line-height: 1.5;
    }

body {
  background: linear-gradient(to bottom, rgba(0, 0, 255, 0.25), rgba(0, 0, 255, 0));
  min-height: 100vh;
}

    /* Main container */
    .container {
      max-width: 800px;
      margin: 20px auto;
      padding: 0 15px;
    }

    .card {
      background: white;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin-bottom: 20px;
      overflow: hidden;
    }

    .card-header {
      padding: 15px 20px;
      background: #f0f7ff;
      border-bottom: 1px solid #e6f0fa;
    }

    .card-header h3 {
      margin: 0;
      color: #0366d6;
      font-size: 18px;
    }

    .card-body {
      padding: 20px;
    }

    /* Form elements */
    .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-bottom: 15px;
    }

    .form-group {
      flex: 1 1 200px;
      margin-bottom: 15px;
    }

    .form-group.full-width {
      flex: 1 1 100%;
    }

    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: 500;
      font-size: 14px;
    }

    input[type="file"] {
      display: none;
    }

    input[type="text"],
    input[type="number"],
    select,
    textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-family: inherit;
      font-size: 14px;
    }

    textarea {
      min-height: 80px;
      resize: vertical;
    }

    /* Buttons */
    .btn {
      background-color: #0366d6;
      color: white;
      border: none;
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      border-radius: 6px;
      transition: all 0.2s ease;
      display: inline-block;
      text-align: center;
    }

    .btn:hover {
      background-color: #0256b9;
    }

    .btn-secondary {
      background-color: #f0f0f0;
      color: #333;
      border: 1px solid #ddd;
    }

    .btn-secondary:hover {
      background-color: #e0e0e0;
    }

    .btn-upload {
      display: block;
      width: 100%;
      margin-bottom: 15px;
    }

    .btn-submit {
      min-width: 120px;
    }

    /* Image preview */
    .preview-container {
      margin: 10px 0;
    }

    .preview {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
      min-height: 60px;
      border: 1px dashed #ccc;
      border-radius: 6px;
      padding: 10px;
      background: #fafafa;
    }

    .preview img {
      height: 80px;
      border-radius: 4px;
      border: 1px solid #ddd;
      cursor: grab;
      transition: transform 0.2s;
    }

    .preview img:hover {
      transform: scale(1.05);
    }


.preview-item {
  position: relative;
  display: inline-block;
}

.preview-item img {
  display: block;
}

.preview-item .delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  cursor: pointer;
  line-height: 20px;
  text-align: center;
  padding: 0;
}





    /* Slider styles */
    .slider-container {
      position: relative;
      width: 100%;
    }

    .slider-with-labels {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 5px;
    }

    .slider-label {
      font-size: 12px;
      color: #666;
      flex: 0 0 50px;
    }

    .slider-value {
      flex: 0 0 50px;
      text-align: right;
      font-weight: 500;
    }

    input[type="range"] {
      -webkit-appearance: none;
      flex: 1;
      height: 6px;
      border-radius: 3px;
      background: #d7e7f7;
      outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #0366d6;
      cursor: pointer;
      margin-top: -5px;
    }

    input[type="range"]::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border: 0;
      border-radius: 50%;
      background: #0366d6;
      cursor: pointer;
    }

    /* Color picker */
    .color-picker {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    input[type="color"] {
      -webkit-appearance: none;
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      padding: 0;
    }

    input[type="color"]::-webkit-color-swatch-wrapper {
      padding: 0;
    }

    input[type="color"]::-webkit-color-swatch {
      border: none;
      border-radius: 4px;
    }

    /* Checkbox styling */
    .checkbox-group {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }

    .checkbox-group input[type="checkbox"] {
      margin-right: 8px;
    }

    /* Advanced options toggle */
    .collapsible-section {
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      margin-bottom: 15px;
      background: #fafafa;
    }

    .collapsible-header {
      padding: 10px 15px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 500;
    }

    .collapsible-header:after {
      content: '+';
      font-size: 18px;
      font-weight: bold;
    }

    .collapsible-header.active:after {
      content: '−';
    }

    .collapsible-content {
      display: none;
      padding: 15px;
      border-top: 1px solid #e0e0e0;
      background: white;
    }

    /* Text alignment icons - alternative implementation with varied line lengths */
    .text-align-icon {
      display: inline-block;
      width: 16px;
      height: 14px;
      margin-left: 5px;
      position: relative;
    }
    
    /* Left alignment - decreasing line lengths */
    .text-align-icon.left:before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 2px;
      background: #666;
    }
    
    .text-align-icon.left:after {
      content: '';
      position: absolute;
      left: 0;
      top: 4px;
      width: 80%;
      height: 2px;
      background: #666;
      box-shadow: 0 4px 0 #666, 0 8px 0 #666;
    }
    
    /* Center alignment - centered lines with varied lengths */
    .text-align-icon.center:before {
      content: '';
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      width: 100%;
      height: 2px;
      background: #666;
    }
    
    .text-align-icon.center:after {
      content: '';
      position: absolute;
      left: 50%;
      top: 4px;
      transform: translateX(-50%);
      width: 60%;
      height: 2px;
      background: #666;
      box-shadow: 0 4px 0 #666, 0 8px 0 #666;
    }
    
    /* Right alignment - increasing line lengths */
    .text-align-icon.right:before {
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      width: 100%;
      height: 2px;
      background: #666;
    }
    
    .text-align-icon.right:after {
      content: '';
      position: absolute;
      right: 0;
      top: 4px;
      width: 80%;
      height: 2px;
      background: #666;
      box-shadow: 0 4px 0 #666, 0 8px 0 #666;
    }
    
    /* Color palette icon */
    .color-palette-icon {
      display: inline-block;
      width: 16px;
      height: 16px;
      margin-left: 5px;
      position: relative;
      background: linear-gradient(45deg, 
        red 0%, red 16.67%, 
        yellow 16.67%, yellow 33.33%, 
        #00ff00 33.33%, #00ff00 50%, 
        cyan 50%, cyan 66.67%, 
        blue 66.67%, blue 83.33%,
        magenta 83.33%, magenta 100%);
      border-radius: 3px;
    }

    /* Loader */
    #loader {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.8);
      z-index: 9999;
      text-align: center;
      padding: 20px;
    }
    
    .loader-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .loader-spinner {
      display: inline-block;
      width: 60px;
      height: 60px;
      border: 5px solid rgba(0, 0, 0, 0.1);
      border-radius: 50%;
      border-top-color: #0366d6;
      animation: spin 1s ease-in-out infinite;
      margin-bottom: 15px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Result */
    #result {
      text-align: center;
      margin-top: 20px;
    }

    #result img {
      max-width: 100%;
      border-radius: 6px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .result-actions {
      margin-top: 15px;
    }

    .result-actions a {
      display: inline-block;
      margin: 0 5px;
      color: #0366d6;
      text-decoration: none;
    }

    /* Responsive adjustments */
    @media (max-width: 600px) {
      .form-row {
        flex-direction: column;
      }
      
      .form-group {
        flex: 1 1 100%;
      }
      
      .preview img {
        height: 60px;
      }
      
      .card-header, .card-body {
        padding: 15px;
      }
    }

  .heading-with-icon {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between text and icon */
  }

      /* Footer */
    .footer {
      text-align: center;
      padding: 20px;
      color: #666;
      font-size: 14px;
    }

  /* Info icon styles */
  .info-icon-container {
    position: relative;
    display: inline-block;
    margin-left: 15px;
  }
  
  .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #0366d6;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: help;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
  }
  
  .info-icon:hover {
    background-color: #0256b9;
  }
  
  /* Tooltip styles */
  .info-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 400px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  /* Arrow pointing to the info icon */
  .info-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
  }
  
  .info-icon-container:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Tooltip content styling */
  .info-tooltip h4 {
    color: #0366d6;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
  }
  
  .info-tooltip ol {
    margin: 0;
    padding-left: 20px;
  }
  
  .info-tooltip li {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
  }
  
  .info-tooltip .info-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    font-style: italic;
    color: #666;
  }
  
  /* Media query for mobile devices */
/* Media query for mobile devices */
@media (max-width: 600px) {
  .info-tooltip {
    width: 420px;
    right: -300px; /* Moved further to the left to center it */
    left: auto;
  }
  
  .info-tooltip::before {
    right: 285px; /* Adjusted to match the new position */
  }
  
  /* Additional positioning for very small screens */
  @media (max-width: 400px) {
    .info-tooltip {
      right: -100px;
    }
    
    .info-tooltip::before {
      right: 105px;
    }
  }
}

  /* Privacy Banner Styles */
  .privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 54, 107, 0.95);
    color: white;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Will be shown with JS */
  }
  
  .privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .privacy-content p {
    margin: 0;
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .privacy-content a {
    color: #94c2ff;
    text-decoration: underline;
    cursor: pointer;
  }
  
  .privacy-button {
    background-color: #ffffff;
    color: #003670;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .privacy-button:hover {
    background-color: #e6e6e6;
  }
  
  /* Privacy Modal Styles */
  .privacy-modal {
    display: none;
    position: fixed;
    z-index: 1010;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  .privacy-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
  }
  
  .privacy-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .privacy-close:hover {
    color: #000;
  }
  
  .privacy-policy-text {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .privacy-policy-text h3 {
    color: #003670;
    margin-top: 0;
  }
  
  .privacy-policy-text h4 {
    color: #003670;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  .privacy-policy-text ul {
    padding-left: 20px;
  }
  
  .privacy-policy-text p, .privacy-policy-text li {
    margin-bottom: 10px;
  }
  
  @media (max-width: 768px) {
    .privacy-content {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .privacy-button {
      align-self: flex-end;
    }
    
    .privacy-modal-content {
      width: 95%;
      margin: 10% auto;
    }
  }
