
/* Base64 Encoder & Decoder */

.base64-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.base64-mode-buttons {
    display: flex;
    gap: 8px;
}

.base64-mode-buttons button {
    padding: 9px 18px;
    border: 1px solid var(--border-color, #dfe3e8);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--text-color, #333);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.base64-mode-buttons button.active {
    background: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
    color: #fff;
}

.base64-mode-buttons button:hover {
    border-color: var(--primary-color, #2563eb);
}

.base64-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.base64-editor .editor-panel {
    min-width: 0;
}

.base64-editor .editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.base64-editor .editor-heading label {
    font-weight: 600;
    font-size: 14px;
}

.base64-editor .editor-heading span {
    color: var(--muted-color, #777);
    font-size: 12px;
}

.base64-editor textarea {
    display: block;
    width: 100%;
    min-height: 280px;
    padding: 16px;
    border: 1px solid var(--border-color, #dfe3e8);
    border-radius: 10px;
    background: var(--input-bg, #fff);
    color: var(--text-color, #333);
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.base64-editor textarea:focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.base64-editor textarea::placeholder {
    color: var(--muted-color, #999);
}

.base64-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.base64-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color, #dfe3e8);
    border-radius: 8px;
    background: var(--card-bg, #fff);
    color: var(--text-color, #333);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.base64-swap:hover {
    border-color: var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
}

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

    .base64-editor textarea {
        min-height: 220px;
    }

    .base64-toolbar {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .base64-mode-buttons {
        width: 100%;
    }

    .base64-mode-buttons button {
        flex: 1;
    }

    .base64-actions {
        gap: 8px;
    }

    .base64-actions .btn {
        flex: 1;
    }
}
