/**
 * GilGamez AI — Rentable AI Assistants Workspace CSS
 * Strict styling adhering to DEVELOPMENT_RULES.md and anti-slop-design
 */

.assistants-workspace-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 80px 24px;
    color: var(--text-color, #f8fafc);
}

/* Header */
.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.workspace-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    background: rgba(212, 163, 42, 0.12);
    border: 1px solid rgba(212, 163, 42, 0.3);
    border-radius: 9999px;
    color: var(--accent, #d4a32a);
    margin-bottom: 12px;
}

.header-titles h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.header-titles p {
    font-size: 1rem;
    color: var(--text-muted, #94a3b8);
    max-width: 680px;
    line-height: 1.5;
    margin: 0;
}

/* KPI Bar */
.workspace-kpi-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.kpi-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
    border-color: rgba(212, 163, 42, 0.4);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(212, 163, 42, 0.12);
    color: var(--accent, #d4a32a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.kpi-data {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 4px;
}

/* Section Headings */
.section-head {
    margin-bottom: 24px;
}

.section-head h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
}

/* Assistants Grid */
.assistants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.assistant-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.assistant-card:hover {
    border-color: rgba(212, 163, 42, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 163, 42, 0.2), rgba(212, 163, 42, 0.05));
    border: 1.5px solid var(--accent, #d4a32a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent, #d4a32a);
    flex-shrink: 0;
}

.card-titles {
    flex: 1;
}

.card-titles h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #ffffff;
}

.role-title {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}

.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.status-pill.active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pill.paused {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.quota-progress-block {
    margin-bottom: 18px;
}

.quota-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 6px;
}

.quota-meta strong {
    color: #ffffff;
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #d4a32a), #facc15);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.card-badges .badge {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-manage, .btn-test {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-manage {
    flex: 2;
    background: rgba(212, 163, 42, 0.15);
    border: 1px solid rgba(212, 163, 42, 0.4);
    color: var(--accent, #d4a32a);
}

.btn-manage:hover {
    background: var(--accent, #d4a32a);
    color: #0f172a;
}

.btn-test {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-test:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Empty State */
.empty-assistants-card {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 60px;
}

.empty-icon {
    font-size: 3rem;
    color: var(--accent, #d4a32a);
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty-assistants-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.empty-assistants-card p {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    max-width: 500px;
    margin: 0 auto 24px auto;
}

/* Templates Section */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.template-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.template-card:hover {
    border-color: rgba(212, 163, 42, 0.4);
    transform: translateY(-3px);
}

.template-top {
    margin-bottom: 20px;
}

.template-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent, #d4a32a);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.template-top h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.template-top p {
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.45;
    margin: 0;
}

.template-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.price-period {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.btn-rent {
    padding: 9px 18px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent, #d4a32a), #f3c64d);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.btn-rent:hover {
    opacity: 0.92;
}

/* Modals */
.workspace-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.workspace-modal {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    padding: 28px;
}

.workspace-modal.drawer-style {
    max-width: 900px;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.modal-head h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    display: block;
    margin-top: 4px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.modal-close:hover {
    color: #ffffff;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #ffffff;
}

.tab-btn.active {
    color: var(--accent, #d4a32a);
    border-bottom-color: var(--accent, #d4a32a);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent, #d4a32a);
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 {
    flex: 1;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary, .btn-secondary, .btn-cancel {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent, #d4a32a), #f3c64d);
    color: #0f172a;
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-cancel {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted, #94a3b8);
}

/* Drawer Lists */
.pane-head {
    margin-bottom: 18px;
}

.pane-head h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.pane-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.item-row {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-info strong {
    color: #ffffff;
    display: block;
    font-size: 0.95rem;
}

.item-info span {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.btn-delete-row {
    background: none;
    border: none;
    color: #f87171;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 6px;
}

.btn-delete-row:hover {
    background: rgba(239, 68, 68, 0.15);
}

.add-section-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 18px;
}

.add-section-card h5 {
    margin: 0 0 14px 0;
    font-size: 0.95rem;
    color: #ffffff;
}

/* Audit Table */
.table-responsive {
    overflow-x: auto;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.audit-table th, .audit-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-table th {
    color: var(--text-muted, #94a3b8);
    font-weight: 600;
}

.audit-table td {
    color: #cbd5e1;
}

/* Sandbox Modal */
.sandbox-modal {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    height: 75vh;
}

.sandbox-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.sandbox-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.82rem;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-item select {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 0.82rem;
}

.sandbox-chat-area {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.sandbox-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.sandbox-msg.user {
    align-self: flex-end;
    background: var(--accent, #d4a32a);
    color: #0f172a;
    font-weight: 500;
}

.sandbox-msg.assistant {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sandbox-msg.sys-msg {
    align-self: center;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 6px 12px;
}

.sandbox-input-form {
    display: flex;
    gap: 10px;
}

.sandbox-input-form input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #ffffff;
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workspace-header {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .sandbox-modal {
        height: 90vh;
    }
}

/* =========================================================================
   MULTIMODAL VOICE, INTERACTIVE BUTTONS & SONNER TOASTS (WP-AI-VOICE-01)
   ========================================================================= */

/* Badges for Voice Persona & VoIP Calling */
.badge-voice {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-calling {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Voice Persona Selector & Preview Button */
.voice-select-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.voice-select-wrap select {
    flex: 1;
}

.btn-voice-preview {
    background: rgba(212, 163, 42, 0.15);
    border: 1px solid rgba(212, 163, 42, 0.35);
    color: var(--accent, #d4a32a);
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-voice-preview:hover {
    background: var(--accent, #d4a32a);
    color: #0f172a;
    border-color: var(--accent, #d4a32a);
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.88rem;
    margin-top: 6px;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent, #d4a32a);
    cursor: pointer;
}

/* Multimodal Audio Player Bubble */
.voice-note-bubble {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(212, 163, 42, 0.25);
    border-radius: 12px;
    display: inline-block;
    max-width: 100%;
}

.voice-note-player {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-play-voice-note {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent, #d4a32a);
    color: #0f172a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.btn-play-voice-note:hover {
    transform: scale(1.08);
    background: #eab308;
}

.audio-wave-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.wave-bar {
    width: 3px;
    background: rgba(212, 163, 42, 0.7);
    border-radius: 2px;
}

.wave-bar:nth-child(1) { height: 8px; }
.wave-bar:nth-child(2) { height: 16px; }
.wave-bar:nth-child(3) { height: 12px; }
.wave-bar:nth-child(4) { height: 18px; }
.wave-bar:nth-child(5) { height: 10px; }

.audio-duration {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    font-family: monospace;
}

/* Interactive Quick-Reply Buttons */
.interactive-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(212, 163, 42, 0.35);
    color: #f8fafc;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: rgba(212, 163, 42, 0.18);
    border-color: var(--accent, #d4a32a);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Custom In-DOM Confirmation Modal */
.confirm-modal {
    max-width: 440px !important;
    width: 90% !important;
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
}

.confirm-message {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 16px 0;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-danger {
    background: #ef4444;
    border: 1px solid #dc2626;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Sonner-Style Stacked Toast Container */
.sonner-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 48px);
}

.sonner-toast {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    animation: sonnerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sonner-toast-success {
    border-left: 4px solid #22c55e;
}
.sonner-toast-success i {
    color: #22c55e;
    font-size: 1.1rem;
}

.sonner-toast-error {
    border-left: 4px solid #ef4444;
}
.sonner-toast-error i {
    color: #ef4444;
    font-size: 1.1rem;
}

.sonner-toast-info {
    border-left: 4px solid #0ea5e9;
}
.sonner-toast-info i {
    color: #0ea5e9;
    font-size: 1.1rem;
}

.sonner-toast-warning {
    border-left: 4px solid #f59e0b;
}
.sonner-toast-warning i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.sonner-toast.toast-fade-out {
    opacity: 0;
    transform: translateY(12px);
}

@keyframes sonnerSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4-Viewport Responsive Design */
@media (max-width: 1280px) {
    .assistants-workspace-container {
        padding: 24px 16px 60px 16px;
    }
}

@media (max-width: 768px) {
    .workspace-header {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .sandbox-modal {
        height: 90vh;
        width: 95% !important;
    }
    .sandbox-controls {
        flex-direction: column;
        gap: 8px;
    }
    .sonner-toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

@media (max-width: 360px) {
    .assistants-workspace-container {
        padding: 16px 8px 48px 8px;
    }
    .header-titles h1 {
        font-size: 1.6rem;
    }
    .kpi-card {
        padding: 14px;
    }
    .btn-voice-preview {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
}
