/* public/assets/css/tools/text/martian-translator.css */
.mar-workspace {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.mar-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-body);
}

.mar-actions-left, .mar-actions-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mar-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mar-btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 0, 102, 204), 0.2);
}

.mar-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.mar-btn-secondary {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.mar-btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.mar-btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.mar-btn-outline:hover {
    background: rgba(0,0,0,0.05);
}

.mar-error-msg {
    padding: 12px 24px;
    background: #fef2f2;
    color: #ef4444;
    border-bottom: 1px solid #fecaca;
    font-size: 0.95rem;
    font-weight: 500;
}

[data-theme="dark"] .mar-error-msg { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
[data-theme="dark"] .mar-btn-outline:hover { background: rgba(255,255,255,0.05); }

.mar-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

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

.mar-editor-pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}
.mar-editor-pane:last-child { border-right: none; }

@media (max-width: 768px) {
    .mar-editor-pane { border-right: none; border-bottom: 1px solid var(--border-color); }
    .mar-editor-pane:last-child { border-bottom: none; }
}

.mar-textarea {
    flex: 1;
    width: 100%;
    min-height: 250px;
    padding: 24px;
    border: none;
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
    resize: none;
    outline: none;
}

.mar-output-area {
    background: var(--bg-body);
}

/* Toast */
.mar-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: #10b981;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}

.mar-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}