/* Root variables for consistent theming */
:root {
    --primary-color: #111111;
    --success-color: #111111;
    --info-color: #0EA5E9;
    --background-color: #F9FAFB;
    --card-background: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --original-color: #cb5b5b;
    --enhanced-color: #5bcba3;
        --primary: #000;;
        --primary-hover: #059669;
        --danger: #dc2626;
        --danger-hover: #b91c1c;
        --background: #f8fafc;
        --card-bg: #ffffff;
        --text: #0f172a;
        --text-secondary: #475569;
}

/* Base styles */
html{
    scroll-behavior: smooth;
}
body {
    font-family: "epilogue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
    scroll-behavior: smooth;
    background-image: url(geometric-leaves.webp);
    background-repeat: repeat;
}

/* Container and column layouts */
.container {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}
.icon-padding {
    margin-right: 6px;
}
.column {
    flex: 1;
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
}

/* Typography */
h1 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

h2 {
    color: var(--text-primary);
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed #E5E7EB;
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #F9FAFB;
}

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

.upload-area p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.upload-area:hover p {
    color: var(--primary-color);
}

/* Preview and file info */
.preview {
    margin-top: 32px;
}

.file-info {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #ffffff;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 6px;
}

/* Modern Audio Player Styling */
audio {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #F3F4F6;
    height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Styling for the media controls panel */
audio::-webkit-media-controls-panel {
    background-color: #F3F4F6;
    border-radius: 8px;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

/* Styling for the play button */
audio::-webkit-media-controls-play-button {
    background-color: transparent;
    width: 28px;
    height: 28px;
    transition: opacity 0.2s ease;
    opacity: 0.85;
    margin-right: 4px;
}

audio::-webkit-media-controls-play-button:hover {
    opacity: 1;
}

/* Styling for the timeline/progress bar */
audio::-webkit-media-controls-timeline {
    background-color: #E5E7EB;
    border-radius: 4px;
    height: 4px;
    margin: 0 8px;
    position: relative;
}

/* Remove background for the playhead scrubber */
audio::-webkit-media-controls-timeline::-webkit-slider-thumb {
    background: transparent;
}

/* Styling for the current time display and time remaining display */
audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--text-primary);
    font-family: "epilogue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 0 4px;
}

/* Hide volume and menu buttons */
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-volume-slider-container,
audio::-webkit-media-controls-toggle-closed-captions-button,
audio::-webkit-media-controls-fullscreen-button,
audio::-webkit-media-controls-overflow-button,
audio::-webkit-media-controls-enclosure > *:last-child {
    display: none !important;
}

/* Additional targeting for the 3-dot menu */
audio::-webkit-media-controls-enclosure div[pseudo="-webkit-media-controls-overflow-button"] {
    display: none !important;
}

/* Firefox specific styling */
@-moz-document url-prefix() {
    audio {
        background-color: #F3F4F6;
        border-radius: 8px;
    }
    
    /* Hide Firefox audio controls except play and progress */
    audio::-moz-range-thumb,
    audio::-moz-range-track {
        width: 0;
        height: 0;
    }
}

/* Microsoft Edge/Safari compatibility */
@supports (-ms-ime-align:auto) or (-webkit-appearance:none) {
    audio {
        background-color: #F3F4F6;
        border-radius: 8px;
    }
}

/* Button styles */
.mix-button {
    display: block;
    width: 200px;
    margin: 32px auto;
    padding: 12px 24px;
    background-color: #111111;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.mix-button:disabled {
    background-color: #E5E7EB;
    cursor: not-allowed;
}

.mix-button:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-1px);
}

/* Mixed section styles */
.mixed-section {
    margin-top: 40px;
    background: var(--card-background);
    padding: 32px;
    border-radius: var(--border-radius);
}

.mixed-preview {
    position: relative;
    padding-top: 48px;
    margin-top: 24px;
}

/* Segment overlay styles */
.segment-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-weight: 600;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 160px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.original-segment {
    background-color: var(--original-color);
}

.enhanced-segment {
    background-color: var(--enhanced-color);
}

/* Timestamp styling */
.timestamp {
    text-align: center;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: "epilogue", sans-serif;
}

/* Download section styles */
.download-section {
    margin-top: 24px;
    text-align: center;
}

.download-button {
    background-color: #111111;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.download-button:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-1px);
}

.download-button:disabled {
    background-color: #E5E7EB;
    cursor: not-allowed;
    transform: none;
}

.download-button svg {
    width: 20px;
    height: 20px;
}

/* Progress bar styles */
.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 2px;
    margin: 16px auto;
    display: none;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--success-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Video preview styles */
#video-preview {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 8px;
    display: none;
}

canvas {
    display: none;
}

/* Project description styles */
.project-description {
    margin-left: 20%;
    margin-right: 20%;
    text-align: center;
    margin-bottom: 5%;
    padding: 2%;
    border-radius: 12px;
}

/* Link styles */
a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
  
}
.copy-text a {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 0.5px;
}

/* Sample files banner styles */
.sample-files-banner {
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #059669;
    color: #fff;
}

.sample-files-button {
    background-color: #111111;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.sample-files-button:hover {
    background-color: #044e37;
    transform: translateY(-1px);
}

/* Hero section styles */
.hero {
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: white;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.hero-label {
    color: #059669;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -1px;
    max-width: 600px;
    text-align: left;
    color: #111;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px 0;
    color: #6B7280;
    max-width: 600px;
    text-align: left;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #059669;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hero-button:hover {
    background-color: #044e37;
}

.hero-button .arrow {
    font-size: 20px;
}

/* Footer styles */
.footer {
    margin-top: 80px;
    padding: 80px 20px;
    background-color: #f1f1f1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-left: 80px;
    padding-right: 80px;
}

.footer-main {
    max-width: 400px;
}

.footer-title {
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 24px 0;
    text-align: left;
}

.footer-text {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.footer-feature {
    background: var(--card-background);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.footer-feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.footer-feature p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.feature-link {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    body {
        padding: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-main {
        max-width: 100%;
    }

    .hero {
        padding: 2rem;
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
    }

    .sample-files-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1.25rem;
    }

    .sample-files-button {
        width: 100%;
        justify-content: center;
    }
}

.modern-footer {
    background-color: #f1f1f1;
    padding: 4rem 8rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    max-width: 1400px;
    margin-top: 1rem;
    border-radius: var(--border-radius);
}

.footer-column h3 {
    color: #333;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column p {
    color: #666;
    line-height: 1.6;
    max-width: 320px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #000;
}

@media (max-width: 1200px) {
    .modern-footer {
        padding: 4rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2.5rem;
    }
    
    .footer-column p {
        max-width: 100%;
    }
} 

.mixer-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.tracks-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
}

.track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    min-height: 450px;
}

.track h3 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
    white-space: nowrap;
}

.slider-container {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 2.5rem;
    background: #e1e1e1;
    border-radius: 8px;
    padding: 0.5rem;
}

input[type="range"].vertical {
    -webkit-appearance: none;
    width: 300px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    transform: rotate(-90deg) translate(-150px, 0px);
    transform-origin: left;
    position: absolute;
    top: 150px;
    left: 38%;
}

input[type="range"].vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 40px;
    border-radius: 4px;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"].vertical::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

input[type="range"].vertical::-moz-range-thumb {
    width: 20px;
    height: 40px;
    border-radius: 4px;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

input[type="range"].vertical::-ms-thumb {
    width: 20px;
    height: 40px;
    border-radius: 4px;
    background: var(--primary);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.volume-value {
    position: absolute;
    bottom: -25px;
    font-family: "epilogue", sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.file-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.file-input-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #333;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
}

.file-input-label:hover {
    background: #555;
}

.file-input-container input[type="file"] {
    display: none;
}

.file-name {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

button {
    background-color: #111;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #333;
}

button:disabled {
    background-color: #E5E7EB;
    cursor: not-allowed;
}

.delete-preset {
    background: #000;
}

.delete-preset:hover {
    background: #333;
}

#scrubberContainer {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.scrubber-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.scrubber-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.scrubber-controls button:hover:not(:disabled) {
    transform: scale(1.05);
    background-color: #333;
}

#timeDisplay {
    font-family: "epilogue", sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

#scrubber {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #F3F4F6;
    border-radius: 3px;
    outline: none;
}

#scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

#scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Modern Presets Container Styling */
#presetContainer {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0 1rem 0;

}

#presetContainer h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.preset-description {
    color: #666;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.preset-row {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.preset-input-group, .preset-select-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.preset-input-group {
    flex: 1;
}

.preset-select-group {
    flex: 2;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#presetName {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

#presetName:focus {
    outline: none;
    border-color: #5bcba3;
    box-shadow: 0 0 0 3px rgba(91, 203, 163, 0.2);
}

#presetSelect {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

#presetSelect:focus {
    outline: none;
    border-color: #5bcba3;
    box-shadow: 0 0 0 3px rgba(91, 203, 163, 0.2);
}

#presetContainer button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

#savePreset {
    background: #059669;
    color: white;
}

#savePreset:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.2);
}

#loadPreset {
    background: #333;
    color: white;
}

#deletePreset {
    background: #000 !important;
    color: white;
}

#deletePreset:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .preset-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preset-input-group, .preset-select-group {
        width: 100%;
    }
}

.playback-controls {
    display: none;
}

/* Transcript Comparison Tool Styles */
.pdf-upload-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
    transition: all 0.3s ease;
}

.pdf-upload {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.pdf-upload:hover {
    background-color: #f3f4f6;
}

.pdf-upload h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.file-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.file-input-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #333;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
    width: 80%;
    max-width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-input-label:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-input-container input[type="file"] {
    display: none;
}

.file-name {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1rem;
}

.compare-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
}

.compare-button {
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compare-button:hover:not(:disabled) {
    background: #0056b3;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.compare-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.compare-button i {
    font-size: 0.9rem;
}

.viewers-container {
    display: flex;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1200px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
}

.pdf-column {
    flex: 1;
    min-height: 500px;
}

/* Text viewer styling with improved padding */
.text-viewer {
    width: 100%;
    height: 100%;
    max-height: 800px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;  /* Consistent padding on all sides */
    line-height: 1.5;
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

.page-style {
    background: white;
}

/* Ensure content doesn't touch edges on small screens */
@media (max-width: 768px) {
    .text-viewer {
        padding: 1.5rem; /* Slightly smaller padding on mobile but still sufficient */
    }
}

/* Dialogue styling - removed boxes */
.dialogue {
    margin-bottom: 1.5rem;
    padding: 0;
}

.speaker {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.dialogue-text {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
}

/* Highlight colors - removed yellow */
.new-word {
    background-color:#3fffba;
    padding: 2px 0;
    border-radius: 2px;
}

.removed-word {
    background-color: #ff7e7e5c;
    padding: 2px 0;
    border-radius: 2px;
}

/* Removed .changed-word style */

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    .pdf-upload-container {
        flex-direction: column;
    }
    
    .viewers-container {
        flex-direction: column;
    }
    
    .pdf-column {
        min-height: 300px;
    }
}

/* Analysis buttons container */
.analysis-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    position: sticky;
    top: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Analysis button styling */
.analysis-button {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    justify-content: center;
}

.analysis-button:hover:not(:disabled) {
    background: #e9ecef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.analysis-button:disabled {
    background: #f8f9fa;
    color: #aaa;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.analysis-button i {
    font-size: 1rem;
}

.primary-button {
    background: #007bff;
    color: white;
}

.primary-button:hover:not(:disabled) {
    background: #0069d9;
}

.primary-button:disabled {
    background: #ccc;
    color: #666;
}

/* Active button state */
.active-button {
    background: #059669 !important;
    color: white !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .analysis-buttons-container {
        padding: 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .analysis-button {
        max-width: none;
        width: 100%;
    }
}

/* Summary Bento Box Styles */
.summary-bento-container {
    max-width: 1200px;
    margin: 2rem auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.summary-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 230, 230, 0.8);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.bento-icon {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #059669;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bento-content {
    flex: 1;
    width: 100%;
}

.bento-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.bento-stat-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.bento-stat-column {
    flex: 1;
    text-align: center;
}

.bento-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    display: inline-block;
}

.bento-stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.bento-stat-removed {
    color: var(--original-color);
}

.bento-stat-added {
    color: var(--enhanced-color);
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-bento-container {
        padding: 1.5rem;
    }
    
    .bento-item {
        padding: 1.25rem;
    }
}

/* Add font-family to form elements and buttons */
button, 
input, 
select, 
textarea,
#presetName,
#presetSelect {
    font-family: "epilogue", sans-serif;
}

/* Add font-family to specific elements that might inherit browser defaults */
.segment-overlay,
.file-info,
.upload-area p,
.hero-label,
.hero-title,
.hero-description,
.hero-button,
.footer-title,
.footer-text,
.footer-feature h3,
.footer-feature p,
.feature-link,
.footer-column h3,
.footer-column p,
.footer-links a,
.file-input-label,
.file-name,
.preset-description,
.speaker,
.dialogue-text,
.bento-label,
.bento-stat,
.bento-content h3 {
    font-family: "epilogue", sans-serif;
} 