/*
  VitalVox Theme Palette
  Inspired by Logo Option 1

  - Light Background: #f4f7f9
  - White Panel: #ffffff
  - Dark Text: #2d3748
  - Muted Text: #5a6a7e
  - Primary Blue: #0077b6
  - Accent Green: #2a9d8f
  - Stop Red: #d90429 (For universal UX)
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Lighter, more modern background */
    color: #2d3748; /* Dark charcoal for primary text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.recorder-container {
    background-color: #ffffff; /* Clean white card */
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(45, 55, 72, 0.1), 0 8px 10px -6px rgba(45, 55, 72, 0.1); /* Softer, deeper shadow */
    max-width: 32rem;
    width: 100%;
    text-align: center;
}

/* Header now uses the logo's signature gradient */
.header-container {
    background: linear-gradient(90deg, #0077b6, #2a9d8f);
    color: white;
    padding: 1.5rem 2rem;
    margin: -2.5rem -2.5rem 2.5rem; /* Increased bottom margin */
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

/* Make sure you have an H1 in your header for this style to apply */
.header-container h1 {
    font-size: 1.75rem;
    font-weight: 700;
}
.header-container h1 span {
    font-weight: 400; /* Replicates the "Vital(Vox)" logo style */
}

.recorder-icon-box {
    background-color: #e0f2fe; /* Light blue to complement the theme */
    padding: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 0 5px white, 0 0 0 8px #0077b6; /* Themed outer ring */
}
/* Style the SVG icon inside the box */
.recorder-icon-box svg {
    width: 48px;
    height: 48px;
    color: #0077b6;
}

.status-message {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #5a6a7e; /* Softer gray for secondary text */
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.record-btn {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 130px;
    color: white;
}
.record-btn:hover:not(:disabled) {
    transform: translateY(-2px); /* Add a satisfying lift effect */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Use the theme's green for "Start/Go" */
#startButton {
    background-color: #2a9d8f;
}
#startButton:hover:not(:disabled) {
    background-color: #268d80;
}

/* A strong, universal red for "Stop" is best for usability */
#stopButton {
    background-color: #d90429;
}
#stopButton:hover:not(:disabled) {
    background-color: #b50322;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#audioElement, #downloadLink {
    margin-top: 2rem;
    width: 100%;
}

/* Themed download and upload buttons as primary actions */
#downloadLink, .upload-controls button {
    display: inline-block;
    background-color: #0077b6; /* Primary Blue */
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
#downloadLink:hover, .upload-controls button:hover:not(:disabled) {
    background-color: #005a8d; /* Darker blue on hover */
    transform: translateY(-2px);
}

#transcribeRecordingButton {
    display: inline-block;
    background-color: #0077b6; /* Primary Blue */
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
#transcribeRecordingButton:hover:not(:disabled) {
    background-color: #005a8d; /* Darker blue on hover */
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* Polished Transcription Section */
.transcribe-section {
    margin-top: 0;
    padding-top: 0;
    text-align: left;
}
.transcribe-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

#transcriptOutput {
    background-color: #f4f7f9; /* Match body background for consistency */
    border: 1px solid #dde3ea;
    border-radius: 0.75rem; /* Consistent rounding */
    padding: 1.25rem;
    white-space: pre-wrap;
    min-height: 120px;
    font-size: 1rem;
    line-height: 1.6;
}

.upload-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* main.css */

.custom-file-upload {
    display: inline-block;
    background-color: #0077b6; /* Primary Blue */
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-file-upload:hover {
    background-color: #005a8d; /* Darker blue on hover */
    transform: translateY(-2px);
}