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

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      padding: 1rem;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      background: white;
      border-radius: 20px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    .header {
      background: linear-gradient(135deg, #390053, #2300ec);
      color: white;
      padding: 2rem 1rem;
      text-align: center;
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;
    }

    .header h1 {
      font-size: 2.2rem;
      margin-bottom: 0.5rem;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .header-desc {
      font-size: 1.15rem;
      margin-bottom: 1rem;
      opacity: 0.95;
      font-weight: 500;
    }

    .header-steps {
      list-style: none;
      padding: 0;
      margin: 1rem 0 0 0;
      font-size: 1rem;
      text-align: left;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }

    .header-steps li {
      background: rgba(255,255,255,0.15);
      margin-bottom: 0.5rem;
      padding: 0.7rem 1rem;
      border-radius: 10px;
      font-weight: 400;
      color: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .demo-link {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.8rem 1.5rem;
      background: rgb(255, 0, 0);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
    }

    .demo-link:hover {
      background: rgba(132, 14, 211, 0.8);
      transform: translateY(-2px);
    }

    .form-container {
      padding: 2rem;
    }

    .form-row {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
      background: #f8f9fa;
      padding: 1rem;
      border-radius: 15px;
      border: 2px solid #e1e8ed;
      transition: all 0.3s ease;
    }

    .form-row:hover {
      border-color: #667eea;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .form-group {
      flex: 1;
    }

    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #333;
      font-size: 1rem;
    }

    .input-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      
    }




    .input-wrapper textarea {
  flex: 1;
  resize: vertical; /* allow vertical resizing */
  min-height: 80px;
}


    .form-group input,
    .form-group textarea {
      flex: 1;
      padding: 0.8rem;
      border: 2px solid #e1e8ed;
      border-radius: 10px;
      font-size: 1rem;
      transition: all 0.3s ease;
      background: white;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 80px;
    }

    .field-image {
      width: 120px;
      height: 80px;
      object-fit: cover;
      border-radius: 10px;
      border: 2px solid #e1e8ed;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
    }

    .field-image:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .mobile-image-btn {
      display: flex; /* Always show on all devices */
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: #667eea;
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      transition: all 0.3s ease;
      position: relative;
      margin-left: 8px; /* Add spacing for desktop */
    }

    .mobile-image-btn:hover {
      background: #5a6fd8;
      transform: scale(1.1);
    }

    .mobile-image-btn:active {
      transform: scale(0.95);
    }

    .image-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.8);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .image-overlay.show {
      opacity: 1;
      visibility: visible;
    }

    .image-overlay-content {
      background: white;
      padding: 2rem;
      border-radius: 20px;
      max-width: 90%;
      max-height: 90%;
      position: relative;
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }

    .image-overlay.show .image-overlay-content {
      transform: translateX(0);
    }

    .image-overlay img {
      width: 100%;
      max-width: 400px;
      height: auto;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .close-overlay {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #ff4757;
      color: white;
      border: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .overlay-label {
      text-align: center;
      margin-top: 1rem;
      font-weight: 600;
      color: #333;
      font-size: 1.1rem;
    }

    .submit-btn {
      width: 100%;
      padding: 1rem 2rem;
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      border: none;
      border-radius: 50px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 1rem;
    }

    .submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }

    .submit-btn:active {
      transform: translateY(0);
    }

    .response {
      margin-top: 2rem;
      padding: 1.5rem;
      background: #f8f9fa;
      border-radius: 15px;
      border: 2px solid #e1e8ed;
    }

    .response.success {
      background: #d4edda;
      border-color: #c3e6cb;
      color: #155724;
    }

    .response.error {
      background: #f8d7da;
      border-color: #f5c6cb;
      color: #721c24;
    }

    .share-controls {
      display: flex;
      gap: 1rem;
      margin-top: 1rem;
    }

    .share-controls input {
      flex: 1;
      padding: 0.8rem;
      border: 2px solid #e1e8ed;
      border-radius: 10px;
      font-family: monospace;
      font-size: 0.9rem;
    }

    .share-controls button {
      padding: 0.8rem 1.5rem;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .share-controls button:hover {
      background: #218838;
      transform: translateY(-2px);
    }

    .share-controls button.share-btn {
      background: #007bff;
    }

    .share-controls button.share-btn:hover {
      background: #0056b3;
    }

    .links-popup {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.85);
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .links-popup-content {
      background: #fff;
      border-radius: 20px;
      padding: 2rem;
      max-width: 95vw;
      width: 500px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      position: relative;
      text-align: center;
    }

    .close-links-popup {
      position: absolute;
      top: 10px; right: 10px;
      background: #ff4757;
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 32px; height: 32px;
      font-size: 1.5rem;
      cursor: pointer;
    }

    .links-list {
      margin-top: 1rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .link-row {
      display: flex;
      align-items: center;
      gap: 0.1rem;
      background: #f8f9fa;
      padding: 0.5rem;
      border-radius: 10px;
    }

    .site-label {
      font-weight: 600;
      min-width: 70px;
    }

    .link-row input {
      flex: 1;
      padding: 0.5rem;
      border-radius: 8px;
      border: 2px solid #e1e8ed;
      font-size: 0.95rem;
    }

    .link-row button {
      padding: 0.5rem 1rem;
      border-radius: 8px;
      border: none;
      font-weight: 600;
      cursor: pointer;
      background: #28a745;
      color: #fff;
      transition: all 0.2s;
    }

    .link-row button.share-link-btn {
      background: #007bff;
    }

    .link-row button:hover {
      opacity: 0.85;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
      .form-row {
        flex-direction: column;
        gap: 1rem;
      }

      .field-image {
        display: none;
      }

      .mobile-image-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
      }

      .input-wrapper {
        position: relative;
        width: 100%;
      }

      .form-group {
        width: 100%;
      }

      .header {
        padding: 1.5rem;
      }

      .header h1 {
        font-size: 2rem;
      }

      .form-container {
        padding: 1.5rem;
      }

      .share-controls {
        flex-direction: column;
      }

      .share-controls button {
        width: 100%;
      }
    }

    @media (max-width: 600px) {
  .links-popup-content {
    width: 95vw;
    padding: 1rem;
  }
  .link-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .site-label {
    margin-bottom: 0.2rem;
  }
  .link-row input,
  .link-row button {
    width: 100%;
    margin: 0;
  }
}

    @media (max-width: 480px) {
      body {
        padding: 0.5rem;
      }

      .header {
        padding: 1rem;
      }

      .header h1 {
        font-size: 1.5rem;
      }

      .form-container {
        padding: 1rem;
      }

      .form-row {
        padding: 0.8rem;
      }
    }

    /* Loading animation */
    .loading {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid #f3f3f3;
      border-top: 3px solid #667eea;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

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

    /* Pulse animation for mobile buttons */
    .mobile-image-btn::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: rgba(102, 126, 234, 0.3);
      transform: translate(-50%, -50%);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
      }
      100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
      }
    }

 .github-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: bold;
  background-color: #24292e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.github-btn:hover {
  background-color: #444c56;
}

.github-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: currentColor;
  filter: invert(100%);
}
