:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #5865f2;
    --primary-hover: #4752c4;
    --text-color: #e1e1e1;
    --text-secondary: #a0a0a0;
    --error-color: #f44336;
    --success-color: #4caf50;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #5865f2, #8c9eff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.record-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.record-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.record-btn.recording {
    background-color: var(--error-color);
    animation: pulse 1.5s infinite;
}

.recording-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.recording-indicator p {
    font-weight: 500;
}

#recordingTime {
    font-weight: bold;
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1.2rem;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.recording-waves {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.recording-waves span {
    display: block;
    width: 6px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 3px;
    animation: wave 1s infinite ease-in-out;
}

.recording-waves span:nth-child(1) {
    animation-delay: 0s;
}

.recording-waves span:nth-child(2) {
    animation-delay: 0.2s;
}

.recording-waves span:nth-child(3) {
    animation-delay: 0.4s;
}

.recording-waves span:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes wave {
    0%, 100% {
        height: 15px;
    }
    50% {
        height: 35px;
    }
}

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

.result-container {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: var(--text-color);
}

.transcription-content {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.7;
}

.transcription-content p {
    margin-bottom: 1rem;
}

.transcription-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--error-color);
    margin: 1rem 0;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Add styles for keyboard shortcuts - desktop only by default */
.keyboard-shortcuts {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #888;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    display: none; /* Hidden by default */
    margin-left: auto;
    margin-right: auto;
}

/* Show keyboard shortcuts only on large screens (desktops) */
@media (min-width: 1024px) {
    .keyboard-shortcuts {
        display: inline-block;
    }
}

.keyboard-shortcuts i {
    margin-right: 5px;
    color: var(--primary-color);
}

.keyboard-shortcuts kbd {
    display: inline-block;
    padding: 4px 8px;
    font-family: monospace;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    color: #333;
    font-weight: bold;
    margin: 0 3px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .record-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
} 