/* ========================================================
   PaatuBook Tools Core UI
   ======================================================== */
.pb-tool-wrapper, .pb-tool-wrapper * {
    box-sizing: border-box;
}

.pb-tool-wrapper {
    max-width: 980px;
    margin: 25px auto 35px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pb-tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.pb-tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #b10021;
    margin: 0;
}

.pb-badge-group {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Text Areas */
.pb-textarea-custom {
    width: 100% !important;
    min-height: 190px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 1.15rem !important;
    line-height: 1.7 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    outline: none !important;
    resize: vertical !important;
    font-family: inherit !important;
}

.pb-textarea-custom:focus {
    border-color: #b10021 !important;
}

/* Dual Box Grid for Translators/Converters */
.pb-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .pb-dual-grid {
        grid-template-columns: 1fr;
    }
}

.pb-box-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

/* Action Bars & Buttons */
.pb-btn-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.pb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #b10021;
    color: #ffffff !important;
    border: none;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pb-action-btn:hover {
    background: #8e001a;
    transform: translateY(-1px);
}

.pb-btn-wa { background: #25D366; }
.pb-btn-wa:hover { background: #1ebd5a; }

.pb-btn-file { background: #0284c7; }
.pb-btn-file:hover { background: #0369a1; }

.pb-btn-dim { background: #64748b; }
.pb-btn-dim:hover { background: #475569; }

.pb-live-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    color: #16a34a;
    margin-left: 6px;
}