body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    width: 100px;
    height: auto;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
}

h1 {
    font-size: 28px;
    color: #4a2c7c;
    margin-bottom: 10px;
    text-align: center;
}

p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

.form-group, .options-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.drop-zone {
    position: relative;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #ecf0f1;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #4a2c7c;
    background-color: #f8f9f9;
}

.file-name-display {
    display: flex;
    align-items: center;
    margin-top: 15px; /* Add space below the drop zone */
}

.file-name-display p {
    flex-grow: 1;
    min-width: 0; /* Prevents text from overflowing */
    margin: 0 0 0 15px; /* Add space to the left of the text */
    font-size: 16px;
    color: #34495e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-name-display span {
    font-weight: bold;
}

#change-file-btn {
    width: auto; /* Override generic button width */
    padding: 8px 16px;
    font-size: 14px;
    background-color: #a0aec0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Prevent button from shrinking */
}

#change-file-btn:hover {
    background-color: #718096;
}

.drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-prompt h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #34495e;
}

.drop-zone-prompt p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #4a2c7c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #3b2363;
    transform: translateY(-2px);
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

#loading {
    text-align: center;
    margin-top: 30px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4a2c7c;
    animation: spin 1s ease infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#result {
    margin-top: 30px;
}

h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fdfdfd;
    resize: vertical;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.button-group button {
    background-color: #2ecc71;
}

.button-group button:hover {
    background-color: #27ae60;
}

#new-transcription-btn {
    margin-bottom: 20px;
    background-color: #27ae60;
}

#new-transcription-btn:hover {
    background-color: #229954;
}

#copy-btn {
    background-color: #7d5bbe;
}

#copy-btn:hover {
    background-color: #694a9e;
}

.hidden {
    display: none;
}
