/* BeastToolsHub Base64 Tool — Orange #FF6B35 / Navy #1A1A2E */

.bb64-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.bb64-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
    border: 1px solid #f0f0f0;
}

/* ── Toolbar ── */
.bb64-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.bb64-tabs {
    display: flex;
    gap: 8px;
}

.bb64-tab {
    padding: 9px 20px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    background: #ffffff;
    color: #1A1A2E;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bb64-tab:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.bb64-tab-active {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #ffffff;
}

.bb64-mode-label {
    font-size: 13px;
    color: #999999;
    font-style: italic;
}

/* ── Panels ── */
.bb64-panel {
    margin-bottom: 16px;
}

.bb64-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bb64-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #FF6B35;
    font-weight: 600;
    padding: 0;
    font-family: inherit;
}

.bb64-icon-btn:hover {
    text-decoration: underline;
}

.bb64-textarea {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    resize: vertical;
    font-family: "Courier New", Courier, monospace;
    color: #1A1A2E;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.bb64-textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: #ffffff;
}

.bb64-textarea::placeholder {
    color: #bbbbbb;
}

.bb64-output-area {
    background: #f5f5f5;
    color: #333333;
}

.bb64-output-area.bb64-success {
    border-color: #66bb6a;
    background: #f9fff9;
}

.bb64-output-area.bb64-error {
    border-color: #ef5350;
    background: #fff5f5;
    color: #b71c1c;
}

/* ── Action row ── */
.bb64-action-row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.bb64-btn {
    padding: 12px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.bb64-btn-primary {
    background: #FF6B35;
    color: #ffffff;
}

.bb64-btn-primary:hover {
    background: #e85a28;
}

/* ── Stats ── */
.bb64-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.bb64-stat-box {
    background: #FFF3EE;
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
    border: 1px solid #FFE0D2;
}

.bb64-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #FF6B35;
    line-height: 1.2;
}

.bb64-stat-label {
    display: block;
    font-size: 12px;
    color: #1A1A2E;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Status ── */
.bb64-status-row {
    margin-top: 14px;
    text-align: center;
}

.bb64-status {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

.bb64-status.bb64-status-success { color: #1B5E20; }
.bb64-status.bb64-status-error   { color: #B71C1C; }

.bb64-copy-feedback {
    text-align: center;
    color: #1B5E20;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 0;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bb64-copy-feedback.bb64-show {
    opacity: 1;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .bb64-card { padding: 16px; border-radius: 12px; }
    .bb64-tabs { flex-direction: column; width: 100%; }
    .bb64-tab  { text-align: center; }
    .bb64-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bb64-btn  { width: 100%; }
}
