/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tim Hortons Brand Colors */
    --primary-red: #c8102e;
    --primary-brown: #4d2d1e;
    --accent-gold: #d4a650;
    --light-bg: #f8f5f2;
    --white: #ffffff;
    --dark-text: #2c1810;
    --medium-text: #5a4a42;
    --light-text: #8b7d76;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ede4dc 100%);
    color: var(--dark-text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a00d25 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mode-switch {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.25rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-btn:hover {
    background: rgba(255,255,255,0.15);
}

.mode-btn.active {
    background: var(--white);
    color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Interface Sections */
.interface-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.interface-section.active {
    display: block;
}

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

.interface-header {
    text-align: center;
    margin-bottom: 2rem;
}

.interface-header h2 {
    font-size: 2rem;
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.interface-header h2 i {
    color: var(--primary-red);
}

.subtitle {
    color: var(--medium-text);
    font-size: 1rem;
}

/* Voice Control Panel */
.voice-control-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.voice-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a00d25 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
}

.voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(200, 16, 46, 0.4);
}

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

.voice-btn i {
    font-size: 3rem;
}

.listening-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--primary-red);
    font-weight: 600;
}

.listening-indicator.active {
    display: flex;
}

.pulse {
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Continuous Listening Indicator */
.continuous-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.continuous-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.3), transparent);
    transition: left 0.6s ease;
}

.continuous-indicator.active {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.continuous-indicator.active::before {
    left: 100%;
}

.indicator-pulse {
    width: 16px;
    height: 16px;
    background: #999;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.continuous-indicator.active .indicator-pulse {
    background: #4CAF50;
    animation: pulse-continuous 2s ease-in-out infinite;
}

@keyframes pulse-continuous {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

.indicator-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.continuous-indicator.active .indicator-text {
    color: #2e7d32;
}

.indicator-text i {
    font-size: 1.3rem;
}

.continuous-indicator.active .indicator-text i.fa-microphone-slash {
    display: none;
}

.continuous-indicator.active .indicator-text::before {
    content: '🎤';
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

/* Hands-Free Toggle */
.hands-free-toggle {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    box-shadow: var(--shadow-sm);
}

.toggle-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

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

.toggle-btn.active {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.toggle-btn i {
    font-size: 1.3rem;
}

.wake-word-info {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.toggle-hint {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.wake-words {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--medium-text);
    margin: 0.5rem 0;
}

.wake-words code {
    background: #e8f5e9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2e7d32;
}

.example {
    font-size: 0.85rem;
    color: var(--light-text);
    font-style: italic;
    margin-top: 0.5rem;
}

.example em {
    font-weight: 600;
    color: var(--primary-red);
}

.transcript {
    min-height: 60px;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    color: var(--medium-text);
    font-style: italic;
    margin-top: 1rem;
}

.voice-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--dark-text);
    border-left: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.voice-tip i {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.voice-tip strong {
    color: var(--primary-red);
}

.mic-permission-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1976d2;
    border-left: 3px solid #1976d2;
}

.mic-permission-help i {
    font-size: 1.1rem;
}

/* Confirmation Panel */
.confirmation-panel {
    display: none;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.15);
    border: 3px solid var(--primary-red);
    animation: slideInDown 0.4s ease;
}

.confirmation-panel.show {
    display: block;
}

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

.confirmation-header {
    text-align: center;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.confirmation-header i {
    font-size: 2rem;
    color: var(--success);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.confirmation-header h3 {
    font-size: 1.3rem;
    color: var(--primary-brown);
    margin: 0;
}

.confirmation-details {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0d5cc;
}

.confirm-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.confirm-label {
    font-weight: 600;
    color: var(--medium-text);
    font-size: 0.95rem;
}

.confirm-value {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.confirm-value.urgency {
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--warning);
    color: var(--dark-text);
}

.confirmation-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff9e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--dark-text);
    border-left: 3px solid var(--accent-gold);
}

.confirmation-note i {
    color: var(--accent-gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.confirm-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.send-btn {
    background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%);
    color: var(--white);
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: var(--white);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.confirmation-voice-hint {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirmation-voice-hint.active-listening {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border: 2px solid var(--success);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(40, 167, 69, 0.6);
    }
}

.confirmation-voice-hint i {
    color: var(--primary-red);
    font-size: 1.1rem;
}

.confirmation-voice-hint.active-listening i {
    animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.confirmation-voice-hint strong {
    color: var(--primary-red);
    font-weight: 700;
}

/* Manual Form */
.manual-form {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.manual-form h3 {
    color: var(--primary-brown);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0d5cc;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, #a00d25 100%);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Requests List */
.requests-list {
    margin-bottom: 2rem;
}

.requests-list h3 {
    color: var(--primary-brown);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-red);
}

.list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Request Cards */
.request-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--info);
    cursor: pointer;
}

.request-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.request-card.selected {
    border-left-color: var(--primary-red);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.2);
}

.request-card.status-pending {
    border-left-color: var(--warning);
}

.request-card.status-in_progress {
    border-left-color: var(--info);
}

.request-card.status-completed {
    border-left-color: var(--success);
    background: linear-gradient(to right, #e8f5e9 0%, var(--white) 100%);
}

.request-card.status-declined {
    border-left-color: var(--danger);
    background: linear-gradient(to right, #ffebee 0%, var(--white) 100%);
}

.request-card.status-completed .status-badge {
    background: var(--success);
    animation: completePulse 2s ease-in-out 3;
}

@keyframes completePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px 5px rgba(40, 167, 69, 0.6);
    }
}

.request-card.urgency-urgent {
    background: linear-gradient(to right, #fff5e6 0%, var(--white) 100%);
}

.request-card.urgency-asap {
    background: linear-gradient(to right, #ffe6e6 0%, var(--white) 100%);
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: var(--shadow-sm);
    }
    50% {
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
    }
}

@keyframes newResponsePulse {
    0%, 100% {
        box-shadow: var(--shadow-sm);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(23, 162, 184, 0.5);
        transform: scale(1.02);
    }
}

.request-card.new-response {
    animation: newResponsePulse 2s ease-in-out 3;
    border-left-color: var(--info);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.request-item {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.request-item i {
    color: var(--accent-gold);
}

.request-quantity {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
}

.request-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.staff-name,
.urgency-badge,
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.staff-name {
    background: var(--light-bg);
    color: var(--medium-text);
}

.urgency-badge {
    background: var(--warning);
    color: var(--dark-text);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.urgency-badge:where(.request-card.urgency-urgent *) {
    background: #ff9800;
    color: var(--white);
}

.urgency-badge:where(.request-card.urgency-asap *) {
    background: var(--danger);
    color: var(--white);
}

.status-badge {
    background: var(--info);
    color: var(--white);
    text-transform: capitalize;
}

.baker-response {
    background: var(--light-bg);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--medium-text);
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.baker-response i {
    color: var(--primary-red);
    margin-top: 0.2rem;
}

/* Request Timeline */
.request-timeline {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    border-left: 4px solid var(--accent-gold);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.timeline-item:not(:last-child) {
    border-bottom: 1px dashed #dee2e6;
}

.timeline-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.timeline-item:nth-child(1) i {
    color: #17a2b8; /* Request - info blue */
}

.timeline-item:nth-child(2) i {
    color: #28a745; /* Accepted - success green */
}

.timeline-item:nth-child(3) i {
    color: #ffc107; /* Completed - gold */
}

.timeline-item:nth-child(4) i {
    color: #dc3545; /* Declined - danger red */
}

.timeline-label {
    font-weight: 600;
    color: var(--medium-text);
    min-width: 90px;
}

.timeline-time {
    color: var(--dark-text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.estimated-time,
.request-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

.estimated-time i,
.request-time i {
    color: var(--accent-gold);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.accept-btn {
    background: var(--success);
    color: var(--white);
}

.accept-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.decline-btn {
    background: var(--danger);
    color: var(--white);
}

.decline-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.complete-btn {
    background: var(--primary-red);
    color: var(--white);
}

.complete-btn:hover {
    background: #a00d25;
    transform: translateY(-2px);
}

/* Voice Feedback */
.voice-feedback {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-brown) 0%, #3a2116 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

.voice-feedback.show {
    display: flex;
}

.voice-feedback i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    animation: soundWave 0.8s ease-in-out infinite;
}

@keyframes soundWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

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

/* Toast Notification */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--dark-text);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.toast.show {
    display: block;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
    color: var(--dark-text);
}

.toast.info {
    background: var(--info);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Empty Message */
.empty-message {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
    padding: 2rem;
}

/* Microphone Permission Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 500px;
    margin: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a00d25 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 2rem;
    color: var(--dark-text);
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ol,
.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.browser-help {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.browser-help strong {
    color: var(--primary-red);
}

.modal-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e0d5cc;
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, #a00d25 100%);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .mode-switch {
        width: 100%;
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .list-container {
        grid-template-columns: 1fr;
    }
    
    .voice-btn {
        width: 120px;
        height: 120px;
    }
    
    .voice-btn i {
        font-size: 2.5rem;
    }
    
    .voice-feedback,
    .toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .interface-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}
