:root {
    --primary: #4169E1;
    --primary-dark: #2E4FC4;
    --primary-light: #6B8FE8;
    --secondary: #0D1B2A;
    --accent: #FFFFFF;
    --highlight: #D94441;
    --bg: #FFFFFF;
    --bg-light: #F8F9FF;
    --bg-card: #FFFFFF;
    --text: #0D1B2A;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --shadow: rgba(65, 105, 225, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link:active {
    transform: scale(0.98);
}

/* Active nav link indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 101;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.mobile-menu-toggle.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 1rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Landing Hero - Different Background */
#landingHero {
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    color: var(--text);
    text-align: left;
}

#landingHero .hero-title {
    color: var(--text);
}

#landingHero .hero-subtitle {
    color: var(--text-muted);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Landing Hero - Split Layout */
#landingHero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Logged-in Hero - Centered Layout */
#loggedInHero .hero-content,
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #4169E1 0%, #6B8FE8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Hero Section */
.hero .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.hero .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Processing View */
.processing-view {
    padding: 3rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.processing-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.processing-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder-container {
    width: 100%;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step-item.active {
    background: #eff6ff;
    border-left-color: #6366f1;
}

.step-item.completed {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 1rem;
}

.step-item.active .step-icon {
    background: #6366f1;
    color: white;
}

.step-item.completed .step-icon {
    background: #10b981;
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.step-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .processing-card {
        padding: 2rem 1.5rem;
    }
    
    .processing-view {
        padding: 2rem 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.05),
        transparent
    );
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.upload-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.url-input {
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 1rem;
}

.url-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Configuration */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.select-input,
.number-input,
.text-input {
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.select-input:focus,
.number-input:focus,
.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Range Input (Slider) */
.range-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.range-input::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-light);
}

.range-input:focus {
    outline: none;
}

.range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.step.completed {
    opacity: 1;
    border-color: var(--success);
    background: var(--bg);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--text-muted);
}

.step.active .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Editable Content */
.editable-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.editable-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edit-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-btn:hover {
    background: var(--primary-dark);
}

.segment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.segment-item {
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.segment-item.editing {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.segment-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.segment-text {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.segment-text textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.segment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

/* Result */
.result-video {
    width: 100%;
    max-width: 800px;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link,
    .nav .btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .nav.mobile-open {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border);
        gap: 0.75rem;
        z-index: 100;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav.mobile-open .nav-link,
    .nav.mobile-open .btn,
    .nav.mobile-open #authButtons,
    .nav.mobile-open #userProfile {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.875rem 1.25rem;
        margin: 0;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
    
    .nav.mobile-open .nav-link:hover {
        background: rgba(99, 102, 241, 0.15);
        transform: translateX(4px);
    }
    
    .nav.mobile-open .nav-link::after {
        display: none;
    }
    
    .nav.mobile-open #userProfile {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav.mobile-open #authButtons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav.mobile-open .btn {
        text-align: center;
        justify-content: center;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .step {
        padding: 1rem;
        gap: 1rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    /* Upload section responsive - already vertical, no changes needed */
    .upload-area {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .hero {
        padding: 1.5rem 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .upload-area {
        padding: 1.5rem 0.75rem;
        min-height: 120px;
    }
    
    .upload-icon {
        width: 40px;
        height: 40px;
    }
    
    .upload-text {
        font-size: 0.9rem;
    }
    
    .upload-subtext {
        font-size: 0.8rem;
    }
    
    #videoPreview {
        margin-top: 16px;
    }
    
    #previewVideo {
        max-height: 250px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .select-input,
    .text-input,
    .number-input {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* User Nav Buttons */
#userNavButtons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#userNavButtons .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#userNavButtons .nav-link i {
    font-size: 1.25rem;
}

/* Mobile improvements */
@media (max-width: 768px) {
    #userNavButtons {
        gap: 0.75rem;
    }
    
    #userNavButtons .nav-link span {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    #userNavButtons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    #userNavButtons .btn i {
        margin-right: 0 !important;
    }
    .speaker-selection-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .speaker-selection-item label {
        min-width: auto !important;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .speaker-selection-item select {
        width: 100% !important;
    }
    
    .segment-list {
        gap: 12px;
    }
    
    .segment-item {
        padding: 12px;
    }
    
    .editable-section {
        padding: 1rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-step {
        width: 100%;
    }
}
