* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.5rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1A73E8; /* Cor primária */
    margin-bottom: 0.5rem;
}

header h1 i {
    margin-right: 8px;
}

header p {
    font-size: 1rem;
    color: #666;
}

.tech-badges {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: #e8f0fe;
    color: #1A73E8;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

main > div, main > button {
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1A73E8;
    padding-bottom: 8px;
    display: inline-block;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #1A73E8;
    background-color: #f8f9fa;
}

.upload-area i {
    font-size: 2.5rem;
    color: #1A73E8;
    margin-bottom: 1rem;
}

.upload-area p {
    font-size: 1rem;
    color: #555;
}

.upload-area small {
    color: #777;
}

.record-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #1A73E8;
    color: white;
    width: 100%;
    font-size: 1.1rem;
}

.btn-primary:hover:not(:disabled) {
    background-color: #155ab6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.btn-record {
    background-color: #34A853; /* Cor secundária */
    color: white;
}

.btn-record:hover:not(:disabled) {
    background-color: #2b8a43;
}

.btn-stop {
    background-color: #ea4335;
    color: white;
}

.btn-stop:hover:not(:disabled) {
    background-color: #c5372a;
}

#audioPlayback {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
}

.options-section .option-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.option-label {
    font-weight: 600;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-select, .checkbox-label {
    width: 100%;
}

.model-select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox {
    width: 18px;
    height: 18px;
    accent-color: #1A73E8;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1A73E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-section, .error-section {
    margin-top: 2rem;
}

.result-box, .error-box {
    border-radius: 8px;
    padding: 1.5rem;
}

.result-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.file-info {
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    white-space: pre-wrap;
}

.btn-copy {
    background: #6c757d;
    color: white;
    padding: 8px 16px;
}

.btn-copy:hover:not(:disabled) {
    background: #5a6268;
}

.transcription {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #fff;
    border-radius: 4px;
}

.error-box {
    background: #fbe9e7;
    border: 1px solid #ffab91;
    color: #d9534f;
    text-align: center;
}

.error-box i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .record-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
