
.yellow-band {
    background: #ffd833;
    margin-top: 14px;
    height: 70px;
    font-size: 54px;
    font-weight: 900;
    display: flex;
    align-items: center;
    padding-left: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    letter-spacing: -1px;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.icon-box img { width: 48px; }

/* CONTENT */
.content {
    padding: 20px;
    margin-top: 40px;
}

.label {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.lang-tag {
    background: #dce2ea;
    color: #555;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
}

.textbox {
    background: #f4f4f4;
    border-radius: 26px;
    padding: 20px;
    margin-top: 6px;
    margin-bottom: 4px;
    font-size: 20px;
    min-height: 120px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.counter {
    text-align: right;
    font-size: 14px;
    margin-top: -4px;
    color: #666;
}

/* BUTTON */
.translate-btn {
    display: block;
    width: 160px;
    margin: 20px auto;
    padding: 12px 20px;
    font-size: 18px;
    color: white;
    background: #2b66b1;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* DROPDOWN LANGUAGE SELECT */
.dropdown-wrap {
    position: relative;
    display: inline-block;
    float: right;
}

.dropdown-btn {
    background: #dce2ea;
    padding: 4px 16px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    color: #555;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown div {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
}

.dropdown div:hover {
    background: #f4f4f4;
}

/* COPY BUTTON */
.copy-btn {
    margin: 14px auto 0;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 20px;
    background: #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    width: 90px;
    justify-content: center;
}

.copy-btn img {
    width: 18px;
}

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-label span {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* FIX 2: Unified lang-tag style for both source and target */
.lang-tag {
    background: #9ca3af;
    color: white;
    padding: 6px 14px;           /* same padding */
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 90px;             /* same min-width so both are equal */
    justify-content: center;
    white-space: nowrap;
    user-select: none;
}

/* =====================
   DROPDOWN
   FIX 3: Target dropdown now same as source (top:100%, right:0)
===================== */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    min-width: 150px;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown div {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-dropdown div:hover {
    background: #f3f4f6;
}

.lang-dropdown div:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-dropdown div:last-child {
    border-radius: 0 0 8px 8px;
}

/* =====================
   TEXTBOX
   FIX 4: outText shows full content via auto-expand (JS handles height)
===================== */
.textbox {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    background: #f9fafb;
    box-sizing: border-box;
    overflow: hidden;        /* hide scrollbar; JS expands height instead */
}

.textbox:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

#outText {
    background: #f3f4f6;
    color: #333;
    resize: none;
}

/* =====================
   COUNTER
===================== */
.counter {
    text-align: right;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 8px;
}

/* =====================
   ERROR MESSAGE  (FIX 1)
===================== */
.error-msg {
    display: none;
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 10px;
}

.error-msg.active {
    display: block;
}

/* =====================
   TRANSLATE BUTTON
===================== */
.translate-btn {
    width: 100%;
    padding: 14px;
    background: #1d4ed8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.translate-btn:hover {
    background: #1e40af;
}

.translate-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* =====================
   LOADING
===================== */
.loading {
    text-align: center;
    color: #667eea;
    margin: 10px 0;
    display: none;
}

.loading.active {
    display: block;
}

/* =====================
   TARGET LANG SECTION
===================== */
.target-lang-section {
    position: relative;
    margin-bottom: 20px;
}

/* =====================
   ACTION BUTTONS
===================== */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f3f4f6;
}

.action-btn img {
    width: 16px;
    height: 16px;
}
