* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

:root {
    /* Light theme */
    --light-bg: #f8fafc;
    --light-text: #1e293b;
    --light-text-secondary: #64748b;
    --light-border: #e2e8f0;
    --light-card-bg: #ffffff;
    --light-accent: #2563eb;
    --light-accent-hover: #1d4ed8;
    --light-hover: #f1f5f9;
    
    /* Dark theme */
    --dark-bg: #0f172a;
    --dark-text: #ffffff;
    --dark-text-secondary: #cbd5e1;
    --dark-border: #334155;
    --dark-card-bg: #1e293b;
    --dark-card-hover: #283548;
    --dark-accent: #38bdf8;
    --dark-accent-hover: #0ea5e9;
}

body {
    background-color: var(--light-bg);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text) !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 2rem;
}

header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--light-border);
}

body.dark-theme header {
    border-color: var(--dark-border);
}

.header-left {
    justify-self: start;
}

.header-center {
    text-align: center;
}

.header-right {
    justify-self: end;
}

.documents-link {
    padding: 0.5rem 1rem;
    background: var(--light-card-bg);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid var(--light-border);
    transition: all 0.2s ease;
    font-weight: 500;
}

body.dark-theme .documents-link {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.documents-link:hover {
    background: var(--light-hover);
    border-color: var(--light-accent);
    color: var(--light-accent);
    transform: translateY(-1px);
}

body.dark-theme .documents-link:hover {
    background: var(--dark-card-hover);
    border-color: var(--dark-accent);
    color: var(--dark-accent);
}

.pixel-link {
    padding: 0.5rem 1rem;
    background: var(--light-card-bg);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid var(--light-border);
    transition: all 0.2s ease;
    font-weight: 500;
    margin-left: 0.5rem;
}

body.dark-theme .pixel-link {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.pixel-link:hover {
    background: var(--light-hover);
    border-color: var(--light-accent);
    color: var(--light-accent);
    transform: translateY(-1px);
}

body.dark-theme .pixel-link:hover {
    background: var(--dark-card-hover);
    border-color: var(--dark-accent);
    color: var(--dark-accent);
}

.header-center h1 {
    margin: 0 0 0.5rem 0;
}

.header-center p {
    margin: 0;
    color: var(--light-text-secondary);
}

body.dark-theme .header-center p {
    color: var(--dark-text-secondary);
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.left-panel {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.right-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 1rem;
    position: relative;
}

.input-section {
    background: var(--light-card-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
}

body.dark-theme .input-section {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

body.light-theme input[type="text"] {
    background: var(--light-card-bg);
    color: var(--light-text);
    border: 1px solid var(--light-border);
}

body.dark-theme input[type="text"] {
    background: var(--dark-card-bg);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--light-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.dark-theme input[type="text"]:focus {
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

input[type="text"]::placeholder {
    color: var(--light-text-secondary);
}

body.dark-theme input[type="text"]::placeholder {
    color: var(--dark-text-secondary);
}

/* Button styles */
button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
}

button:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1 !important;
}

/* Primary button styles */
.ui.primary.button,
body.light-theme .ui.primary.button,
body.dark-theme .ui.primary.button {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
}

.ui.primary.button:hover,
body.light-theme .ui.primary.button:hover,
body.dark-theme .ui.primary.button:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1 !important;
}

/* Ensure all buttons follow the same theme */
.ui.button,
body.light-theme .ui.button,
body.dark-theme .ui.button {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
}

.ui.button:hover,
body.light-theme .ui.button:hover,
body.dark-theme .ui.button:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1 !important;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.dark-theme .video-container {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.transcript-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--light-card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
    overflow: hidden;
    height: calc(100vh - 5rem); /* Increased height for a longer transcript block */
}

body.dark-theme .transcript-section {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.transcript-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-card-bg);
}

body.dark-theme .transcript-header {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.transcript-header h2 {
    font-size: 1.25rem;
    color: var(--light-text);
    font-weight: 600;
}

body.dark-theme .transcript-header h2 {
    color: var(--dark-text);
}

.transcript-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    padding: 0.5rem 0;
}

.transcript-controls button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .transcript-controls button {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.transcript-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

body.dark-theme .transcript-controls button:hover {
    border-color: var(--dark-accent);
    background: var(--dark-card-hover);
}

.transcript-controls button#summarizeBtn {
    background: linear-gradient(135deg, var(--primary-color), #06b6d4);
    color: white;
    border: none;
}

body.dark-theme .transcript-controls button#summarizeBtn {
    background: linear-gradient(135deg, var(--dark-accent), #0ea5e9);
}

.transcript-controls button#summarizeBtn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.transcript-controls button .btn-icon {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.transcript-controls button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#transcript {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--text-secondary) var(--background);
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
}

body.dark-theme #transcript {
    scrollbar-color: var(--dark-text-secondary) var(--dark-bg);
}

.subtitle-line {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme .subtitle-line {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.subtitle-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

body.dark-theme .subtitle-line:hover {
    border-color: var(--dark-accent);
    background: rgba(0, 0, 0, 0.3);
}

.transcript-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

body.dark-theme .transcript-text {
    color: var(--dark-text);
}

/* Custom scrollbar styles */
#transcript::-webkit-scrollbar {
    width: 8px;
}

#transcript::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

#transcript::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    border: 2px solid var(--background);
}

body.dark-theme #transcript::-webkit-scrollbar-thumb {
    background: var(--dark-accent);
}

/* Loading and error states */
.loading, .error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

body.dark-theme .loading, 
body.dark-theme .error {
    color: var(--dark-text-secondary);
}

.error {
    color: #ef4444;
}

body.dark-theme .error {
    color: #f87171;
}

.summary-section {
    width: 400px;
    background: var(--light-card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-border);
    display: none;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    height: 100%;
    max-height: calc(100vh - 12rem); /* Prevent overflow on smaller screens */
    overflow: hidden; /* Contain the content */
}

body.dark-theme .summary-section {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.summary-section.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.summary-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-card-bg);
}

body.dark-theme .summary-header {
    background-color: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.summary-header h3 {
    color: var(--light-text);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

body.dark-theme .summary-header h3 {
    color: var(--dark-text);
}

.close-btn {
    background: none;
    border: none;
    color: var(--light-text-secondary);
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    line-height: 1;
    transition: all 0.2s ease;
}

body.dark-theme .close-btn {
    color: var(--dark-text-secondary);
}

.close-btn:hover {
    color: var(--danger-color);
    background-color: rgba(220, 38, 38, 0.1);
}

body.dark-theme .close-btn:hover {
    color: var(--danger-color);
    background-color: rgba(220, 38, 38, 0.1);
}

.summary-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    word-wrap: break-word; /* Ensure long words don't overflow */
    overflow-wrap: break-word;
}

/* Update media queries */
@media (max-width: 1200px) {
    .summary-section {
        width: 350px;
    }
    
    .transcript-controls {
        gap: 0.5rem; /* Reduce gap on smaller screens */
    }
    
    .transcript-controls button {
        padding: 0.5rem 0.75rem; /* Slightly reduce padding */
        font-size: 0.9rem; /* Slightly reduce font size */
    }
}

@media (max-width: 768px) {
    .right-panel {
        flex-direction: column;
    }
    
    .summary-section {
        width: 100%;
        transform: translateY(100%);
        max-height: 50vh; /* Limit height on mobile */
    }
    
    .summary-section.active {
        transform: translateY(0);
    }
    
    .transcript-controls {
        justify-content: center; /* Center buttons on mobile */
    }
}

/* Summary Formatting */
.bullet-summary {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 1rem;
    max-width: 100%; /* Ensure content doesn't overflow */
}

body.dark-theme .bullet-summary {
    color: var(--dark-text);
}

.bullet-summary::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(to right, #4a90e2, transparent);
    margin-bottom: 1rem;
}

/* Ensure bullet points and dashes are preserved */
.bullet-summary {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Add some spacing between sections */
.bullet-summary > *:not(:last-child) {
    margin-bottom: 1rem;
}

/* Highlight main sections */
.bullet-summary strong {
    color: #4a90e2;
}

body.dark-theme .bullet-summary strong {
    color: #4a90e2;
}

/* Auth Button */
.auth-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: var(--light-card-bg);
    color: var(--light-text);
    border: 1px solid var(--light-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-theme .auth-btn {
    background-color: var(--dark-card-bg);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

.auth-btn:hover {
    background-color: var(--light-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme .auth-btn:hover {
    background-color: var(--dark-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--light-card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme .modal-content {
    background: var(--dark-card-bg);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text-secondary);
}

body.dark-theme .close-modal {
    color: var(--dark-text-secondary);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--light-bg);
    color: var(--light-text-secondary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .tab-btn {
    background: var(--dark-bg);
    color: var(--dark-text-secondary);
}

.tab-btn.active {
    background: var(--light-accent);
    color: white;
}

body.dark-theme .tab-btn.active {
    background: var(--dark-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--light-border);
    border-radius: 0.5rem;
    background: var(--light-bg);
    color: var(--light-text);
}

body.dark-theme .tab-content input {
    background: var(--dark-bg);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

.tab-content button {
    width: 100%;
    padding: 0.75rem;
    background: var(--light-accent);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .tab-content button {
    background: var(--dark-accent);
}

.tab-content button:hover {
    background: var(--light-accent-hover);
}

body.dark-theme .tab-content button:hover {
    background: var(--dark-accent-hover);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2.2rem;
    border-bottom: 2.5px solid #e0e7ef;
    gap: 1.2rem;
    justify-content: center;
    z-index: 1;
}

body.dark-theme .auth-tabs {
    border-color: #334155;
}

.tab-btn {
    padding: 1rem 2.2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #cbd5e1;
    border-radius: 1rem 1rem 0 0;
    position: relative;
    transition: all 0.2s;
    z-index: 1;
}

body.dark-theme .tab-btn {
    color: #38bdf8;
}

.tab-btn.active {
    color: #232946;
    background: #fff;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
    border-bottom: 2.5px solid #38bdf8;
}

body.dark-theme .tab-btn.active {
    color: #38bdf8;
    background: #232946;
    border-bottom: 2.5px solid #0ea5e9;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2.5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #a78bfa 100%);
    border-radius: 2px;
}

body.dark-theme .tab-btn.active::after {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(.4,2,.6,1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.tab-content input[type="email"],
.tab-content input[type="password"] {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border-radius: 0.8rem;
    border: 1.5px solid #a5b4fc;
    background: rgba(255,255,255,0.12);
    color: #232946;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    transition: border 0.2s, background 0.2s;
    outline: none;
}

body.dark-theme .tab-content input[type="email"],
body.dark-theme .tab-content input[type="password"] {
    background: rgba(30,41,59,0.7);
    color: #fff;
    border: 1.5px solid #38bdf8;
}

.tab-content input[type="email"]::placeholder,
.tab-content input[type="password"]::placeholder {
    color: #64748b;
    opacity: 0.8;
}

body.dark-theme .tab-content input[type="email"]::placeholder,
body.dark-theme .tab-content input[type="password"]::placeholder {
    color: #cbd5e1;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #232946;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

body.dark-theme .remember-me {
    color: #38bdf8;
}

.remember-me input[type="checkbox"] {
    accent-color: #38bdf8;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.3rem;
    margin-right: 0.4rem;
    border: 1.5px solid #a5b4fc;
    transition: border 0.2s;
}

body.dark-theme .remember-me input[type="checkbox"] {
    accent-color: #0ea5e9;
    border: 1.5px solid #38bdf8;
}

.purchase-btn, .tab-content button[type="submit"] {
    width: 100%;
    padding: 1.1rem 0;
    background: linear-gradient(90deg, #38bdf8 0%, #a78bfa 100%);
    color: #fff;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 2px 12px rgba(37,99,235,0.10);
    transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.5px;
}

body.dark-theme .purchase-btn, body.dark-theme .tab-content button[type="submit"] {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}

.purchase-btn:hover, .tab-content button[type="submit"]:hover {
    background: linear-gradient(90deg, #a78bfa 0%, #38bdf8 100%);
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

body.dark-theme .purchase-btn:hover, body.dark-theme .tab-content button[type="submit"]:hover {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
}

/* Quick Start Guide */
.quick-start {
    background: var(--light-card-bg);
    border-radius: 1rem;
    border: 1px solid var(--light-border);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

body.dark-theme .quick-start {
    background: var(--dark-card-bg);
    border: 1px solid var(--dark-border);
}

.quick-start-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-hover);
}

body.dark-theme .quick-start-header {
    background: var(--dark-card-hover);
    border-bottom: 1px solid var(--dark-border);
}

.quick-start-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--light-text);
}

body.dark-theme .quick-start-header h2 {
    color: var(--dark-text);
}

.toggle-guide {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--light-text-secondary);
    background: var(--light-card-bg);
    border: 1px solid var(--light-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-theme .toggle-guide {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
    color: var(--dark-text-secondary);
}

.toggle-guide:hover {
    color: var(--light-accent);
    border-color: var(--light-accent);
    background: var(--light-hover);
}

body.dark-theme .toggle-guide:hover {
    color: var(--dark-accent);
    border-color: var(--dark-accent);
    background: var(--dark-card-hover);
}

.quick-start-content {
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
}

.guide-step {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--light-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

body.dark-theme .step-number {
    background: var(--dark-accent);
    color: white;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--light-text);
}

body.dark-theme .step-content h3 {
    color: var(--dark-text);
}

.step-content p {
    margin: 0;
    color: var(--light-text-secondary);
    font-size: 0.95rem;
}

body.dark-theme .step-content p {
    color: var(--dark-text-secondary);
}

/* URL Input Section */
.url-input-wrapper {
    margin-bottom: 1rem;
}

.url-examples {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

body.dark-theme .url-examples {
    background: var(--dark-bg);
}

.url-examples p {
    margin: 0 0 0.5rem 0;
    color: var(--light-text-secondary);
}

body.dark-theme .url-examples p {
    color: var(--dark-text-secondary);
}

.url-examples ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--light-text-secondary);
}

body.dark-theme .url-examples ul {
    color: var(--dark-text-secondary);
}

.url-examples li {
    margin-bottom: 0.25rem;
}

/* Features List */
.features-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-card-bg);
    border-radius: 1rem;
    border: 1px solid var(--light-border);
}

body.dark-theme .features-list {
    background: var(--dark-card-bg);
    border-color: var(--dark-border);
}

.features-list h3 {
    margin: 0 0 1rem 0;
    color: var(--light-text);
    font-size: 1.1rem;
}

body.dark-theme .features-list h3 {
    color: var(--dark-text);
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

body.dark-theme .features-list li {
    background: var(--dark-card-hover);
}

.feature-icon {
    font-size: 1.25rem;
}

/* Button Icons */
.btn-icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--light-text-secondary);
}

body.dark-theme .empty-state {
    color: var(--dark-text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--light-text);
}

body.dark-theme .empty-state h3 {
    color: var(--dark-text);
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* Enhanced Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--light-border);
}

body.dark-theme .footer-content {
    border-top: 1px solid var(--dark-border);
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--light-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.dark-theme .footer-links a {
    color: var(--dark-text-secondary);
}

.footer-links a:hover {
    color: var(--light-accent);
}

body.dark-theme .footer-links a:hover {
    color: var(--dark-accent);
}

.separator {
    color: var(--light-text-secondary);
    opacity: 0.5;
}

body.dark-theme .separator {
    color: var(--dark-text-secondary);
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quick-start-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .guide-step {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--light-border);
    }

    .guide-step:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

body.light-theme .theme-toggle {
    color: var(--light-text);
}

body.dark-theme .theme-toggle {
    color: var(--dark-text);
}

body.light-theme .theme-toggle:hover {
    color: var(--light-accent);
}

body.dark-theme .theme-toggle:hover {
    color: var(--dark-accent);
}

/* Dark theme text colors */
body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text) !important;
}

body.dark-theme .header-center h1,
body.dark-theme .header-center p,
body.dark-theme .documents-link,
body.dark-theme .pixel-link,
body.dark-theme .quick-start h2,
body.dark-theme .step-content h3,
body.dark-theme .step-content p,
body.dark-theme .features-list h3,
body.dark-theme .features-list li,
body.dark-theme .transcript-header h2,
body.dark-theme #transcript,
body.dark-theme .empty-state h3,
body.dark-theme .empty-state p,
body.dark-theme .auth-btn,
body.dark-theme input[type="text"],
body.dark-theme .url-examples p,
body.dark-theme .url-examples li {
    color: #ffffff !important;
}

/* Links in dark mode */
body.dark-theme .documents-link,
body.dark-theme .pixel-link {
    color: #ffffff !important;
    background-color: var(--dark-card-bg) !important;
    border-color: var(--dark-border) !important;
}

body.dark-theme .documents-link:hover,
body.dark-theme .pixel-link:hover {
    background-color: var(--dark-card-hover) !important;
    border-color: var(--dark-accent) !important;
    color: var(--dark-accent) !important;
}

/* Feature icons in dark mode */
body.dark-theme .feature-icon {
    color: var(--dark-accent) !important;
}

/* Empty state icon in dark mode */
body.dark-theme .empty-state-icon {
    color: var(--dark-text) !important;
    opacity: 0.7;
}

/* Input text in dark mode */
body.dark-theme input[type="text"]::placeholder {
    color: var(--dark-text-secondary) !important;
}

/* Auth button in dark mode */
body.dark-theme .auth-btn {
    background-color: var(--dark-card-bg) !important;
    border-color: var(--dark-border) !important;
}

body.dark-theme .auth-btn:hover {
    background-color: var(--dark-card-hover) !important;
    border-color: var(--dark-accent) !important;
    color: var(--dark-accent) !important;
}

/* Pricing Page Styles */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

body.dark-theme .pricing-header h1 {
    color: var(--dark-text);
}

.pricing-header p {
    font-size: 1.2rem;
    color: var(--light-text-secondary);
}

body.dark-theme .pricing-header p {
    color: var(--dark-text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--light-card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.dark-theme .pricing-card {
    background: var(--dark-card-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--light-accent);
    transform: scale(1.05);
}

body.dark-theme .pricing-card.featured {
    border-color: var(--dark-accent);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

body.dark-theme .pricing-card-header h2 {
    color: var(--dark-text);
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--light-accent);
    margin-bottom: 0.5rem;
}

body.dark-theme .price {
    color: var(--dark-accent);
}

.credits {
    font-size: 1.2rem;
    color: var(--light-text-secondary);
    margin-bottom: 1.5rem;
}

body.dark-theme .credits {
    color: var(--dark-text-secondary);
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

body.dark-theme .features li {
    color: var(--dark-text);
}

.features li::before {
    content: "✓";
    margin-right: 0.5rem;
    color: var(--light-accent);
}

body.dark-theme .features li::before {
    color: var(--dark-accent);
}

.purchase-btn {
    width: 100%;
    padding: 1rem;
    background: var(--light-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.dark-theme .purchase-btn {
    background: var(--dark-accent);
}

.purchase-btn:hover {
    background: var(--light-accent-hover);
}

body.dark-theme .purchase-btn:hover {
    background: var(--dark-accent-hover);
}

.credit-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-card-bg);
    border-radius: 12px;
}

body.dark-theme .credit-info {
    background: var(--dark-card-bg);
}

.credit-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

body.dark-theme .credit-info h2 {
    color: var(--dark-text);
}

.credit-info p {
    color: var(--light-text-secondary);
    line-height: 1.6;
}

body.dark-theme .credit-info p {
    color: var(--dark-text-secondary);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* --- NAVIGATION BAR UPGRADE --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid var(--light-border);
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
}

body.dark-theme .nav-bar {
    background: rgba(30,41,59,0.85);
    border-color: var(--dark-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 1rem;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
}

body.dark-theme .nav-link {
    color: var(--dark-text);
}

.features {
    list-style: none;
    margin-bottom: 1.2rem;
    padding: 0;
    z-index: 1;
    position: relative;
}

.features li {
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.92;
}

body.dark-theme .features li {
    color: var(--dark-text);
}

.features li::before {
    content: "✔";
    color: var(--light-accent);
    font-size: 1.1em;
    margin-right: 0.4rem;
}

body.dark-theme .features li::before {
    color: var(--dark-accent);
}

.purchase-btn {
    width: auto;
    min-width: 120px;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(90deg, var(--light-accent) 0%, var(--light-accent-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
    margin: 0 auto;
    display: block;
    letter-spacing: 0.5px;
}

body.dark-theme .purchase-btn {
    background: linear-gradient(90deg, var(--dark-accent) 0%, var(--dark-accent-hover) 100%);
}

.purchase-btn:hover {
    background: linear-gradient(90deg, #a78bfa 0%, #38bdf8 100%);
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

body.dark-theme .purchase-btn:hover {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Loading and Error States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.error {
    color: #e74c3c;
    background-color: #fde8e8;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
}

body.dark-theme .error {
    background-color: #2d1a1a;
    color: #ff6b6b;
}

body.dark-theme .loading-spinner {
    border-color: #2d2d2d;
    border-top-color: #3498db;
}

/* Enhance transcript font size and readability with a modern font */
.transcript-content, #transcript, .transcript-line {
    font-size: 1.35rem;
    line-height: 2.1;
    font-family: 'Fira Sans', 'Inter', 'Segoe UI', 'Arial', sans-serif;
    font-weight: 500;
}

/* Optionally, make timestamps bold for clarity */
.transcript-line .timestamp {
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
}

/* Allow text selection and copy/paste in the editor */
.editor, .ProseMirror, .tiptap-editor, .ql-editor {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Transcript Limit Display Styling */
#transcriptLimitDisplay {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #fff;
    transition: all 0.3s ease;
    max-width: 300px;
}

.limit-counter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.counter-label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: -4px;
}

.counter-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #22c55e;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0;
    padding: 8px 0;
}

.counter-timer {
    color: #60a5fa;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 0;
    margin-top: -4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.5px;
}

.counter-timer::before {
    content: '🔄';
    font-size: 1.2rem;
    margin-right: 2px;
}

.daily-limit {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 12px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    margin-top: -4px;
}

/* Pro Tier Styling */
.pro-tier {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.pro-tier h3 {
    color: #f0abfc;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Hover Effects */
#transcriptLimitDisplay:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animation for value changes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.counter-value {
    animation: pulse 0.3s ease-in-out;
} 

.error-container {
    background-color: #2d2d2d;
    border: 1px solid #ff4444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #ffffff;
}

.error-container h3 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 15px;
}

.error-steps {
    background-color: #363636;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.error-steps ol {
    margin: 10px 0;
    padding-left: 25px;
}

.error-steps ul {
    margin: 5px 0;
    padding-left: 20px;
    list-style-type: none;
}

.error-steps ul li {
    margin: 5px 0;
    color: #b8b8b8;
}

.error-steps ul li::before {
    content: "•";
    color: #ff6b6b;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.error-steps em {
    color: #ff9999;
    font-style: italic;
} 