* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-weight: bold;
    color: #333;
}

.user-company {
    color: #666;
    font-size: 0.9em;
}

.logout-btn {
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c0392b;
}

.app-link {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.app-link:hover {
    background: #5568d3;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.hint {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.voice-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
    padding: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    background: #2ecc71;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.voice-btn.listening {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

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

.status {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status.listening {
    background: #fff3cd;
    color: #856404;
}

.status.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.status.warning {
    background: #fff3cd;
    color: #856404;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.output {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    min-height: 50px;
    color: #333;
    font-size: 1.05em;
    line-height: 1.6;
}

pre.output {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.examples ul {
    list-style: none;
    padding: 0;
}

.examples li {
    padding: 10px 15px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    
    .voice-btn {
        font-size: 1.1em;
    }
    
    .card {
        padding: 20px;
    }
}
