/* SHARED TOOLS UI - MATCHES WEBSITE THEME */
/* Dark theme + Caramel (#C68964) accents - Consistent with master CSS */

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
  background: var(--dark); 
  color: var(--white);
  line-height: 1.6;
}

/* Tool Hero */
.tool-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
}
.tool-hero::before {
content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.tool-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  /* background: linear-gradient(135deg, var(--white) 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
  margin-bottom: 16px;
}
.tool-hero .urdu {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 20px;
  direction: rtl;
}
.tool-hero p {
   font-size: 1.3rem;
 color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

  :root {
    --green: #C68964;
    --green-dark: #C68964;
    --green-light: #000000;
    --ink: #000000;
    --ink2: #ffffff;
    --muted: #6b7c6d;
    --border: #d4e8d6;
    --bg: #000000;
    --white: #000000;
    --gold: #f5a623;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
  }

 
  .stat-label {
    font-size: 11px;
    color: var(--ink2);
    font-weight: 500;
  }

  /* MAIN LAYOUT */
  .main {
    max-width: 90%;
    margin: 0 auto;
    padding: 36px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  @media (max-width: 680px) {
    .main { grid-template-columns: 1fr; }
  }

  /* FORM CARD */
  .card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .card-head {
    background: var(--green-light);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
  }
  .card-head h2 {
    font-size: 16px;
    font-weight: 600;
    color: white;
  }
  .card-head p {
    font-size: 12px;
    color: white;
    margin-top: 2px;
  }
  .card-body { padding: 24px; }

  /* FORM ELEMENTS */
  .field { margin-bottom: 18px; }
  label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: 6px;
  }
  label .urdu {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin-left: 6px;
    direction: rtl;
    display: inline;
  }
  .field input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: white;
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.12);
  }
  textarea { resize: vertical; min-height: 90px; }

  /* LANGUAGE TOGGLE */
  .lang-toggle {
    display: flex;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
  }
  .lang-btn {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--muted);
  }
  .lang-btn.active {
    background: white;
    /* color: #fff; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  /* TONE PILLS */
  .pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pill {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    background: #fff;
    color: black;
  }
  .pill.active, .pill:hover {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
  }

  /* GENERATE BUTTON */
  .btn-generate {
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: var(--ink);
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
  }
  .btn-generate:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    /* box-shadow: 0 6px 20px rgba(0,200,83,0.3); */
  }
  .btn-generate:active { transform: translateY(0); }
  .btn-generate.loading { opacity: 0.7; pointer-events: none; }

  /* OUTPUT CARD */
  .output-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }
  .output-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ink);
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .output-head h2 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
  }
  .copy-btn {
    padding: 7px 16px;
    background: var(--green);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
  }
  .copy-btn:hover { background: var(--green-dark); color: #fff; }
  .copy-btn.show { display: block; }

  .output-body {
    padding: 24px;
    flex: 1;
    min-height: 300px;
    position: relative;
  }
  .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    text-align: center;
    gap: 12px;
  }
  .placeholder-icon {
    width: 60px; height: 60px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
  }
  .placeholder p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 220px;
  }
  .proposal-text {
    display: none;
    font-size: 14px;
    line-height: 1.8;
    color: white;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  .proposal-text.show { display: block; }

  /* LOADING DOTS */
  .loading-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    gap: 16px;
  }
  .loading-state.show { display: flex; }
  .dots {
    display: flex;
    gap: 8px;
  }
  .dot {
    width: 10px; height: 10px;
    background: var(--green);
    border-radius: 50%;
    animation: bounce 1.2s infinite;
  }
  .dot:nth-child(2) { animation-delay: 0.2s; }
  .dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
  }
  .loading-text { color: var(--muted); font-size: 14px; }

  /* TIPS SECTION */
  .tips {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 20px;

  }
  .tips h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 14px;
  }
  .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
  .tip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--ink2);
    line-height: 1.5;
  }
  .tip strong {
    display: block;
    color: var(--green-dark);
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

