
:root {
    --primary: #b91c1c;
    --primary-dark: #991b1b;
    --primary-light: #fff1ef;
    --background: #fff8f5;
    --white: #ffffff;
    --text: #252525;
    --muted: #777777;
    --border: #eadfdb;
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 23px;
    font-weight: 800;
}

.brand span {
    color: var(--primary);
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 15px;
    border-radius: 30px;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 25px 20px;
}

header {
    text-align: center;
    padding: 35px 0;
}

.status-badge {
    display: inline-block;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 38px;
    line-height: 1.3;
    font-weight: 750;
    margin-bottom: 12px;
}

header h1 span {
    color: var(--primary);
}

header p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}

.benefits span {
    font-size: 12px;
    color: #15803d;
    font-weight: 600;
}

.upload-card,
.output-card {
    background: var(--white);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(80, 30, 20, 0.05);
}

h2 {
    font-size: 19px;
    margin-bottom: 20px;
}

.upload-area {
    min-height: 230px;
    border: 2px dashed #e9a59a;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: #ffe5df;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    font-size: 35px;
    margin-bottom: 15px;
}

.upload-area strong {
    font-size: 16px;
}

.upload-area p {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 18px;
}

.browse-btn {
    padding: 11px 22px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

#fileName {
    font-size: 13px;
    color: var(--muted);
    margin: 15px 0;
    overflow-wrap: anywhere;
}

audio {
    width: 100%;
    margin-bottom: 15px;
}

.settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 22px 0;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    background: var(--white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

select:focus,
textarea:focus {
    border-color: var(--primary);
}

button {
    border: none;
    cursor: pointer;
    border-radius: 9px;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

#transcribeBtn {
    width: 100%;
    background: var(--primary);
    padding: 16px;
    color: white;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(185, 28, 28, 0.15);
}

#transcribeBtn:hover:not(:disabled) {
    background: var(--primary-dark);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#cancelBtn {
    width: 100%;
    color: var(--primary);
    background: var(--primary-light);
    margin-top: 10px;
}

.progress-section {
    margin-top: 22px;
}

progress {
    width: 100%;
    height: 8px;
    border: none;
    border-radius: 20px;
    appearance: none;
    overflow: hidden;
    background: #eeeeee;
}

progress::-webkit-progress-bar {
    background: #eeeeee;
}

progress::-webkit-progress-value {
    background: var(--primary);
    border-radius: 20px;
    transition: width 0.3s ease;
}

progress::-moz-progress-bar {
    background: var(--primary);
}

#statusText {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.output-header h2 {
    margin: 0;
}

#wordCount {
    font-size: 12px;
    color: var(--muted);
}

textarea {
    width: 100%;
    min-height: 300px;
    border: 1px solid var(--border);
    background: #fafafa;
    border-radius: 12px;
    padding: 18px;
    font-size: 15px;
    line-height: 1.8;
    font-family: inherit;
    color: var(--text);
    resize: vertical;
    outline: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.actions button {
    flex: 1;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #f0d3cc;
    white-space: nowrap;
}

.actions button:hover {
    background: #ffe5df;
}

footer {
    text-align: center;
    line-height: 2;
    padding: 20px 0;
    color: var(--muted);
    font-size: 12px;
}

footer strong {
    color: var(--primary);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .navbar {
        padding: 15px;
    }

    .brand {
        font-size: 18px;
    }

    .nav-label {
        font-size: 10px;
    }

    header h1 {
        font-size: 28px;
    }

    .settings {
        grid-template-columns: 1fr;
    }

    .upload-card,
    .output-card {
        padding: 18px;
    }

    .actions button {
        flex: 1 1 40%;
    }

    .benefits {
        gap: 10px;
    }
}
