/* ===== Layout ===== */




/* ===== Tabs ===== */
.tabs {
    display: flex;
    background: #283f4d;
    padding: 6px;
    width: fit-content;
    margin: 0 auto 30px;
    border-radius: 30px;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.tab {
     position: relative;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    color: #999999;
    font-size: 15px;
        gap: 5px;
    -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
          -o-transition: all 0.5s;
             transition: all 0.5s;

}

.tab:hover{
  color: #ffffff;
}

.tab.active {
    color: #283f4d;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.knob {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 48.7%;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* When second option is active, slide right */
#modeSwitch.right .knob {
  transform: translateX(100%);
}

/* ===== Card ===== */
.card {
    background: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media(max-width:900px){
    .grid { grid-template-columns: 1fr; }
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #283f4d;
    margin-bottom: 6px;
    display: block;
    font-weight: 600;
}

textarea, .editor {
    width: 100%;
    min-height: 320px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    background: #fdfdff;
}

div#wordInput {
    height: 320px;
    overflow: scroll;
}

/* ===== Pills ===== */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.pill {
    padding: 7px 14px 7px;
    border: 1.5px solid #dce3eb;
    border-radius: 10px;
    cursor: pointer;
    background: #f2f2f2;
    font-size: 0.85rem;
    font-weight: 500;
}

.pill.active {
    background: #283f4d;
    color: #fff;
}

/* ===== Buttons ===== */
.copy-btn {
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5c35 0%, #ff8f6b 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    /* width: 100%; */
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter';
    letter-spacing: .2px;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(var(--brand-rgb), 0.4);
}
.word-grid {
    position: relative;
}
/* ===== Loading Overlay ===== */
/* Output wrapper for scoped loader */
.output-wrap {
    position: relative;
}

/* Loading Overlay (only output area) */
.loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 5;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===== Word Tool ===== */
.word-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.conversion-stat {
    margin-top: 48px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.stats-badge {
    background: #283f4d;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 0;
    border: 1px solid rgba(255,255,255,0.3);
    letter-spacing: .4px;
    font-weight: 400;
}

textarea { resize: none; }
.header h1 span{color:#fe5b32 ;}



@media(max-width:900px){
    .word-grid { grid-template-columns: 1fr; }
    textarea, .editor {
    width: 100%;
    min-height: 186px;
}
.header h1 {
    font-size: 2rem;
}
.header p {
    font-size: 16px;
}
.header-nav ul {
    gap: 20px;
  }

}

.hidden { display:none; }
