/* Easy Learning Tutor - Redesigned v2.0 */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

.smt-panel {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

/* ==================== WELCOME SCREEN ==================== */

.smt-welcome {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.smt-welcome-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.smt-welcome h2 {
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.smt-welcome > p {
    font-size: 18px;
    margin: 0 0 40px 0;
    opacity: 0.95;
}

/* Age Selector */
.smt-age-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px auto;
    flex-wrap: wrap;
    max-width: 600px;
}

.smt-age-btn {
    background: white;
    border: 4px solid transparent;
    border-radius: 16px;
    padding: 30px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.smt-age-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.smt-age-btn.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: scale(1.05);
    border-color: white;
}

.smt-age-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.smt-age-btn h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.smt-age-btn.selected h3 {
    color: white;
}

.smt-age-btn p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.smt-age-btn.selected p {
    color: rgba(255,255,255,0.9);
}

.smt-welcome-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.smt-welcome-step {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.smt-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.smt-welcome-step h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.smt-welcome-step p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

/* ==================== HEADER ==================== */

.smt-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-light);
}

.smt-status-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.smt-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
}

.smt-status-text {
    flex: 1;
}

.smt-tutor-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.smt-status {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.smt-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.smt-status.active {
    color: var(--success-color);
}

.smt-status.listening {
    color: var(--danger-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== CHAT AREA ==================== */

.smt-chat-area {
    padding: 25px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    background: white;
}

.smt-message {
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smt-message-tutor .smt-message-content {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    padding: 25px 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    color: var(--text-dark);
    line-height: 2.5;
    font-size: 17px;
}

.smt-text-chunk {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
}

.smt-text-chunk.smt-chunk-reveal {
    animation: chunkReveal 0.5s ease-out forwards;
}

@keyframes chunkReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smt-text-chunk.smt-speaking {
    background: rgba(255, 235, 59, 0.3);
    padding: 8px 12px;
    margin: -8px -12px 12px -12px;
    border-radius: 8px;
    animation: highlight-pulse 1s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        background: rgba(255, 235, 59, 0.3);
    }
    50% {
        background: rgba(255, 235, 59, 0.5);
    }
}

.smt-message-content .smt-step {
    display: block;
    font-size: 32px;
    margin: 15px 0 10px 0;
}

.smt-message-content .smt-math {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-color);
    margin: 12px 0;
    font-size: 18px;
    text-align: center;
}

.smt-message-content strong {
    color: var(--primary-color);
    font-size: 18px;
}

.smt-message-content br {
    display: block;
    margin: 12px 0;
    content: "";
}

.smt-message-student .smt-message-content {
    background: var(--bg-light);
    padding: 18px 22px;
    border-radius: var(--radius);
    border-left: 4px solid var(--success-color);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 15px;
    margin-left: auto;
    max-width: 80%;
}

/* ==================== INPUT MODE SELECTOR ==================== */

.smt-input-selector {
    display: flex;
    gap: 0;
    padding: 0 25px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
}

.smt-mode-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    position: relative;
}

.smt-mode-btn:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

.smt-mode-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.smt-mode-icon {
    font-size: 24px;
}

.smt-mode-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== INPUT MODES ==================== */

.smt-input-mode {
    display: none;
    padding: 25px;
    background: white;
}

.smt-input-mode.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* TYPE MODE */

.smt-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smt-answer {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: var(--transition);
}

.smt-answer:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.smt-btn-send {
    align-self: flex-end;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.smt-btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.smt-btn-send:active {
    transform: translateY(0);
}

.smt-btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.smt-send-icon {
    font-size: 20px;
}

/* SPEAK MODE */

.smt-voice-interface {
    text-align: center;
}

.smt-voice-status {
    margin-bottom: 30px;
}

.smt-voice-icon {
    font-size: 80px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.smt-voice-interface.listening .smt-voice-icon {
    animation: pulse 1.5s infinite;
    color: var(--danger-color);
}

.smt-voice-text {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.smt-btn-voice {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 30px;
}

.smt-btn-voice:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.smt-btn-voice:active {
    transform: scale(0.98);
}

.smt-btn-voice.listening {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    animation: pulse-button 1.5s infinite;
}

@keyframes pulse-button {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
}

.smt-voice-btn-icon {
    font-size: 48px;
}

.smt-voice-btn-text {
    font-size: 16px;
}

/* Permission Notice */

.smt-permission-notice {
    padding: 25px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 20px;
}

.smt-notice-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.smt-permission-notice p {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 15px;
}

/* Transcript */

.smt-transcript {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 2px solid var(--border-color);
}

.smt-transcript label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smt-transcript-text {
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.smt-transcript-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* UPLOAD MODE */

.smt-upload-interface {
    min-height: 300px;
}

.smt-upload-zone {
    text-align: center;
    padding: 60px 40px;
    border: 3px dashed var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.smt-upload-zone:hover,
.smt-upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.smt-upload-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
}

.smt-upload-zone h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--text-dark);
}

.smt-upload-zone p {
    margin: 0 0 25px 0;
    color: var(--text-light);
    font-size: 15px;
}

.smt-upload-hint {
    margin-top: 15px !important;
    font-size: 13px !important;
    color: var(--text-light) !important;
}

.smt-upload-preview-zone {
    text-align: center;
}

.smt-preview-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.smt-preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.smt-remove-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.smt-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.smt-preview-filename {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 20px 0;
}

/* ==================== BUTTONS ==================== */

.smt-btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.smt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.smt-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.smt-btn-secondary {
    padding: 14px 28px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.smt-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.smt-btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.smt-btn-icon {
    padding: 10px 15px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.smt-btn-icon:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.smt-icon {
    font-size: 20px;
}

/* ==================== VOICE CONTROLS ==================== */

.smt-voice-controls {
    padding: 15px 25px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-top: 2px solid #fbbf24;
    border-bottom: 2px solid #fbbf24;
    animation: fadeIn 0.3s ease-out;
}

.smt-voice-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.smt-voice-indicator {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.smt-voice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.smt-voice-control-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.smt-voice-control-btn:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.smt-voice-control-btn.smt-stop {
    background: #fee;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.smt-voice-control-btn.smt-stop:hover {
    background: var(--danger-color);
    color: white;
}

.smt-control-icon {
    font-size: 18px;
}

/* ==================== INTERACTIVE QUESTION PROMPTS ==================== */

.smt-question-prompts {
    padding: 20px 25px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smt-prompt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.smt-prompt-icon {
    font-size: 24px;
}

.smt-prompt-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.smt-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.smt-prompt-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    box-shadow: var(--shadow-sm);
}

.smt-prompt-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.smt-prompt-emoji {
    font-size: 28px;
}

.smt-prompt-label {
    font-size: 14px;
    font-weight: 600;
}

/* ==================== QUICK ACTIONS ==================== */

.smt-quick-actions {
    padding: 20px 25px;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 15px;
    background: var(--bg-light);
    flex-wrap: wrap;
}

.smt-action-btn {
    flex: 1;
    padding: 16px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.smt-action-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.smt-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.smt-action-btn.smt-secondary:hover:not(:disabled) {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.smt-action-icon {
    font-size: 20px;
}

/* ==================== CANVAS ==================== */

.smt-canvas-container {
    padding: 25px;
    background: var(--bg-light);
}

#smtCanvas {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ==================== MODAL ==================== */

.smt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.smt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.smt-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smt-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smt-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--text-dark);
}

.smt-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.smt-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.smt-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.smt-loading {
    text-align: center;
    padding: 60px 20px;
}

.smt-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.smt-loading p {
    color: var(--text-light);
    font-size: 15px;
}

.smt-history-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.smt-history-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.smt-history-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.smt-history-problem {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.smt-history-answer {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .smt-panel {
        margin: 20px 10px;
        border-radius: 12px;
    }

    .smt-welcome {
        padding: 40px 20px;
    }

    .smt-welcome-icon {
        font-size: 60px;
    }

    .smt-welcome h2 {
        font-size: 24px;
    }

    .smt-welcome-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .smt-header {
        padding: 15px 20px;
    }

    .smt-chat-area {
        padding: 20px;
    }

    .smt-input-selector {
        padding: 0 20px;
    }

    .smt-mode-label {
        font-size: 11px;
    }

    .smt-input-mode {
        padding: 20px;
    }

    .smt-btn-voice {
        width: 160px;
        height: 160px;
    }

    .smt-voice-btn-icon {
        font-size: 36px;
    }

    .smt-upload-zone {
        padding: 40px 20px;
    }

    .smt-quick-actions {
        flex-direction: column;
        padding: 15px 20px;
    }

    .smt-action-btn {
        width: 100%;
    }

    .smt-voice-controls {
        padding: 12px 15px;
    }

    .smt-voice-status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .smt-voice-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .smt-voice-control-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        flex-direction: column;
        gap: 4px;
    }

    .smt-control-icon {
        font-size: 20px;
    }

    .smt-control-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .smt-modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .smt-btn-large {
        padding: 16px 30px;
        font-size: 16px;
    }
}

/* ==================== UTILITY ==================== */

.smt-hidden {
    display: none !important;
}

.smt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
