/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Root Variables */
:root {
  --primary-color: #00b894;
  --primary-hover: #00cec9;
  --secondary-color: #007bff;
  --secondary-hover: #0056b3;
  --accent-color: #00e5ff;
  --accent-hover: #00bcd4;
  --bg-color: #ffffff;
  --bg-light: #f9f9f9;
  --bg-gradient: linear-gradient(to right, #eef2f3, #ffffff);
  --text-color: #2c3e50;
  --text-light: #666;
  --text-muted: #888;
  --border-color: #ccc;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --input-radius: 8px;
  --input-padding: 10px;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px;
  background-color: var(--bg-color);
  border-radius: 20px;
  box-shadow: 0 0 30px var(--shadow-light);
}



/* ===== TOP HEADER NAV ===== */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #0b1020;
  border-radius: 16px;
  margin-bottom: 20px;
  color: #fff;
}
.top-header .logo { height: 42px; }
.nav-links { display: flex; gap: 20px; }
.nav-links .nav-item {
  text-decoration: none; color: #cbd5e1;
  font-weight: 500; padding-bottom: 4px;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.nav-links .nav-item:hover { color: #fff; }
.nav-links .nav-item.active {
  color: #fff; border-bottom: 2px solid #3b82f6;
}
.header-right { position: relative; }
.dropdown-toggle {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border: none; border-radius: 50%; color: white;
  font-size: 18px; padding: 10px; cursor: pointer;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  min-width: 140px;
  z-index: 10;
  padding: 8px 0;
}
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu button {
  padding: 8px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
  transition: background 0.2s ease;
}
.dropdown-menu button:hover {
  background: #f1f5f9;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 50px; padding: 18px;
  background: #0b1020; border-radius: 12px;
  text-align: center; color: #cbd5e1;
  font-size: 0.9rem;
}
.footer a { color: #93c5fd; margin: 0 8px; text-decoration: none; }
.footer a:hover { color: #fff; }


.brand .logo { height: 48px; }
.brand { color: #1a1a1a; }      /* SVG ka color yahi se set hoga (currentColor) */


/* Layout */
.layout {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* Sidebar */
.sidebar {
  flex: 1 1 300px;
  background: var(--bg-light);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  margin-bottom: 15px;
}

.sidebar-section label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

.sidebar-section select,
.sidebar-section textarea,
.sidebar-section input[type="text"],
.sidebar-section input[type="file"] {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 3px var(--shadow-light);
}

.sidebar-section input[type="file"]::file-selector-button {
  visibility: hidden;
}

.sidebar-section input[type="file"]::before {
  content: "📎 Choose File";
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}

.sidebar button {
  margin-top: auto;
}

/* #profileBtn {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
}

#profileBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
} */


/* Main Content */
.main-content {
  flex: 2 1 600px;
  background: var(--bg-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-height: 800px;
  overflow-y: auto;
}

/* Output Section */
.output-section, #output {
  background: #f2f2f2;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 10px;
  color: #222;
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  line-height: 1.4;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
}

/* Form Section */
.form-section {
  padding: 25px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border-left: 5px solid var(--primary-color);
  transition: box-shadow 0.3s ease;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.form-section:hover {
  box-shadow: 0 8px 20px var(--shadow-light);
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 30px;
  background: #e0e0e0;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.radio-group input[type="radio"] {
  display: none;
}

/* .radio-group input[type="radio"]:checked + span {
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  padding: 6px 12px;
} */

.input-method-label.active {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}


/* Input Toggle & Switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--secondary-color);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(26px);
}

/* Input Method Buttons */
#inputMethodGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.input-method-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f2f2f2;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 14px;
}

.input-method-label.active {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.input-method-label input[type="radio"] {
  accent-color: var(--secondary-color);
}

/* Buttons */
button,
.generate-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.generate-button-container {
  text-align: center;
  margin-top: 30px;
  padding: 20px 0;
  background-color: transparent;
}

.generate-btn {
  background-color: var(--accent-color);
  color: #000;
}

.generate-btn:hover {
  background-color: var(--accent-hover);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


/* Added for url */
.styled-input {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 3px var(--shadow-light);
  margin-top: 6px;
  margin-bottom: 12px;
}

/* Pre block */
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #f3f3f3;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
}

/* New Style */
.view-section {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.view-section:not(.hidden) {
  display: flex;
}

textarea {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: var(--input-padding);
  border-radius: var(--input-radius);
  width: 100%;
  max-width: 600px;
  min-height: 150px;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
  overflow-y: auto;
}


/* === FIX for input area === */
#inputArea {
  margin-top: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-height: 100px;
}

.output-box {
  width: 100%;
  max-width: 600px;
  min-height: 150px;
  background: #f9f9f9;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: monospace;
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(to right, #38b2ac, #805ad5);
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button.back-btn {
  align-self: flex-start;
  background: #e2e8f0;
  color: #2d3748;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}


.output-wrapper {
  padding: 1rem;
  background: #f6f6f6;
  border-radius: 8px;
  margin-top: 1rem;
  white-space: pre-wrap;
}

/* New Style End */


/* Responsive */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .main-content {
    gap: 20px;
  }
}

/* ===== Hero Section ===== */
.hero{
  position:relative; isolation:isolate;
  display:flex; align-items:center; justify-content:center;
  padding:88px 16px 72px; text-align:center; overflow:hidden;
  /* background: linear-gradient(to right, #38b2ac, #805ad5); */
  background: radial-gradient(1200px 600px at 50% -10%, rgba(80,120,255,.12), transparent 60%),
            linear-gradient(180deg, #0b1020 0%, #0a0d18 100%);
  color:#eef2ff;
}
.hero-inner { max-width:980px; width:100%; z-index:1; }
.hero .badge{
  display:inline-block; font-size:12px; letter-spacing:.4px;
  padding:6px 10px; border:1px solid rgba(255,255,255,.16);
  border-radius:999px; margin-bottom:14px; color:#c7d2fe; background:rgba(255,255,255,.04);
}
.hero h1{
  font-size: clamp(28px, 6vw, 52px);
  line-height:1.08; margin:0 0 12px; font-weight:800;
  background: linear-gradient(90deg, #dbe3ff, #a7b8ff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero .sub{
  max-width:720px; margin:0 auto 22px; color:#cbd5e1; font-size:clamp(14px, 2.4vw, 18px);
}
.cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:18px 0 8px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:12px; text-decoration:none; font-weight:600;
  border:1px solid transparent; transition:transform .1s ease, background .2s ease, border-color .2s ease;
}
.btn.primary{
  background:#3b82f6; color:white; border-color:#4f86ff;
}
.btn.primary:hover{ transform:translateY(-1px); }
.btn.ghost{
  background:transparent; color:#c7d2fe; border-color:rgba(255,255,255,.18);
}
.btn.ghost:hover{ background:rgba(255,255,255,.06); transform:translateY(-1px); }

.highlights{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  margin:18px 0 0; padding:0; list-style:none; color:#9aa6ff; font-size:14px;
}
.highlights li{ padding:8px 12px; border:1px dashed rgba(255,255,255,.14); border-radius:10px; }

.blob{ position:absolute; filter:blur(40px); opacity:.35; z-index:0; }
.blob.b1{ width:360px; height:360px; background:#5b8bff; border-radius:50%;
  top:-80px; left:-80px; opacity:.22; }
.blob.b2{ width:420px; height:420px; background:#7aa2ff; border-radius:50%;
  bottom:-120px; right:-140px; opacity:.18; }

@media (max-width:600px){ .btn{ width:100%; } }