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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.recording-section {
    text-align: center;
    margin-bottom: 2rem;
}

.record-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 60px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.record-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.record-button.recording {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 1.5s infinite;
}

.record-icon {
    font-size: 1.8rem;
}

.recording-status {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
}


.conversation-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.conversation-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.conversation-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.conversation-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.bubble {
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    max-width: 85%;
    word-break: break-word;
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

.bubble.transcript {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    align-self: flex-start;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}

.bubble.transcript.expandable {
    cursor: pointer;
    border: 2px solid transparent;
}

.bubble.transcript.expandable:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.bubble.transcript.expanded {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.timestamp {
    font-size: 0.95rem;
    color: #95a5a6;
    margin-bottom: 1rem;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Accessibility improvements for seniors */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .record-button {
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .record-button {
        border: 3px solid #000;
    }
    
    .bubble {
        border: 2px solid #000;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
