/* Base Styles */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFBF5;
    color: #3D3D3D;
    line-height: 1.5;
}

.recording-container {
    min-width: 65%;
    max-width: 60rem;
    margin: 0 auto;
    padding: 70px 10px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 15px;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.header p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #7A7A7A;
}

/* Layout */
.layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar */
.sidebar {
    width: 100%;
    background-color: #EDE7DC;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .sidebar {
        width: 384px;
        position: sticky;
        top: 24px;
        max-height: 85vh;
        overflow-y: auto;
    }
}

.sidebar h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Section Buttons */
.section-group {
    margin-bottom: 12px;
}

.btn-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background-color: #FFFBF5;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-section.active {
    background-color: #C9A961;
    color: #FFFBF5;
}

/* Recording Sub-items */
.recording-list {
    margin-top: 8px;
    margin-left: 16px;
    display: none; /* Hidden by default */
}

.recording-list.expanded {
    display: block;
}

.btn-recording {
    width: 100%;
    text-align: left;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: none;
    background-color: #FFFBF5;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-recording.active {
    background-color: #C9A961;
    color: #FFFBF5;
}

.btn-recording .title {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.btn-recording .duration {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Main Player Area */
.main-content {
    flex: 1;
    order: 1;
}

.player-card {
    background-color: #EDE7DC;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.player-card h3 {
    font-size: 1.75rem;
    margin: 0 0 8px 0;
}

.player-card .meta {
    color: #7A7A7A;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Audio Controls */
.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.btn-circle {
    border: none;
    border-radius: 50%;
    background-color: #C9A961;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-circle:hover { transform: scale(1.1); }

.btn-nav { width: 48px; height: 48px; }
.btn-play { width: 64px; height: 64px; }

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(201, 169, 97, 0.3);
    border-radius: 4px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background-color: #C9A961;
    border-radius: 4px;
    width: 0%;
}

.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* Transcript */
.transcript-card {
    background-color: #F0EBE3;
    padding: 32px;
    border-radius: 12px;
    order: 2;
}

.transcript-card h3 {
    font-size: 1.75rem;
    margin-top: 0;
    padding-bottom: 10px;
}
.transcript-content
{
    overflow-y: scroll;
    padding-right: 15px;
    line-height: 1.2;
    max-height: 35vh;
}
.transcript-content p {
    font-size: 1.15rem;

    margin-bottom: 1.5rem;
    color: #3D3D3D;


}
div.lang-btn
{
    display:none;
}
/* Icons */
svg { fill: currentColor; }
.progress-container {
    position: relative;
    height: 12px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.progress-bg {
    position: absolute;
    width: 100%;
    height: 4px; /* The thin line */
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4A90E2; /* Your primary color */
    width: 0%;
}

#progress-slider {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    margin: 0;
    cursor: pointer;
    opacity: 0; /* Makes the default range slider invisible */
    z-index: 2;
}
.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7A7A7A;
    margin-top: 0; /* Pull it closer to the bar if needed */
    margin-bottom: 10px;
}

