.tecz-base64-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tecz-base64-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tecz-base64-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.tecz-base64-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.tecz-base64-content {
    padding: 20px;
}

.tecz-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tecz-dropzone:hover, .tecz-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tecz-dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.tecz-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.tecz-upload-icon {
    width: 48px;
    height: 48px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.tecz-dropzone:hover .tecz-upload-icon, .tecz-dropzone.dragover .tecz-upload-icon {
    color: #3b82f6;
}

.tecz-upload-text {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 5px;
}

.tecz-upload-text strong {
    color: #3b82f6;
}

.tecz-upload-hint {
    font-size: 0.8rem;
    color: #64748b;
}

.tecz-error-msg {
    margin-top: 15px;
    padding: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.tecz-result-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.tecz-preview-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.tecz-preview-header {
    margin-bottom: 15px;
}

.tecz-preview-header h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1e293b;
}

.tecz-file-stats {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.tecz-preview-box {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.tecz-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tecz-output-panel {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tecz-output-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tecz-out-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tecz-out-tab-btn:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.tecz-out-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #ffffff;
}

.tecz-out-content {
    padding: 15px;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tecz-out-pane {
    display: none;
    height: 100%;
    flex-direction: column;
}

.tecz-out-pane.active {
    display: flex;
}

.tecz-code-textarea {
    width: 100%;
    flex-grow: 1;
    min-height: 200px;
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 15px;
    word-break: break-all;
}

.tecz-code-textarea:focus {
    outline: none;
    border-color: #64748b;
}

.tecz-action-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tecz-btn {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.tecz-btn:hover {
    background: #2563eb;
}

.tecz-btn-secondary {
    background: #64748b;
    width: 100%;
}

.tecz-btn-secondary:hover {
    background: #475569;
}

.tecz-copy-msg {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

.tecz-mt-10 {
    margin-top: auto;
}

@media (max-width: 768px) {
    .tecz-result-section {
        grid-template-columns: 1fr;
    }
    .tecz-code-textarea {
        min-height: 150px;
    }
}