/* Design Tokens */
:root {
    --background: 0 0% 100%;
    --foreground: 265 4% 12.9%;
    --card: 0 0% 100%;
    --card-foreground: 265 4% 12.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 265 4% 12.9%;
    --primary: 266 4% 20.8%;
    --primary-foreground: 248 0.3% 98.4%;
    --secondary: 248 0.7% 96.8%;
    --secondary-foreground: 266 4% 20.8%;
    --muted: 248 0.7% 96.8%;
    --muted-foreground: 257 4.6% 55.4%;
    --accent: 248 0.7% 96.8%;
    --accent-foreground: 266 4% 20.8%;
    --destructive: 27 24.5% 57.7%;
    --destructive-foreground: 0 0% 100%;
    --border: 256 1.3% 92.9%;
    --input: 256 1.3% 92.9%;
    --ring: 257 4% 70.4%;
    --radius: 0.375rem;
    --glow: 174 72% 50%;
    --success: 142 72% 45%;
    --warning: 45 93% 47%;
    --gradient-primary: linear-gradient(135deg, hsl(174 72% 50%), hsl(190 80% 60%));
    --gradient-dark: linear-gradient(180deg, hsl(222 47% 8%) 0%, hsl(222 47% 4%) 100%);
    --gradient-glow: radial-gradient(ellipse at center, hsl(174 72% 50% / 0.15) 0%, transparent 70%);
    --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, hsl(174 72% 50% / 0.25), transparent);
    --shadow-glow: 0 0 40px hsl(174 72% 50% / 0.2);
    --shadow-card: 0 4px 24px hsl(222 47% 4% / 0.5);
    --shadow-elevated: 0 8px 32px hsl(222 47% 4% / 0.7);
    --dashboard-bg: hsl(248 20% 97%);
    --dashboard-bg-alt: hsl(248 14% 95%);
    --dashboard-surface: hsl(var(--card) / 0.86);
    --dashboard-surface-strong: hsl(var(--card) / 0.95);
    --dashboard-surface-soft: hsl(var(--secondary) / 0.75);
    --dashboard-border: hsl(var(--border) / 0.85);
    --dashboard-border-strong: hsl(var(--ring) / 0.55);
    --dashboard-shadow: 0 18px 50px hsl(222 47% 8% / 0.1);
    --dashboard-shadow-lg: 0 24px 70px hsl(222 47% 8% / 0.15);
    --dashboard-primary-rgb: 30, 44, 55;
    --dashboard-accent-rgb: 33, 209, 192;
}

.dark {
    --background: 0 0% 15%;
    --foreground: 248 0.3% 98.4%;
    --card: 266 4% 20.8%;
    --card-foreground: 248 0.3% 98.4%;
    --popover: 266 4% 20.8%;
    --popover-foreground: 248 0.3% 98.4%;
    --primary: 256 1.3% 92.9%;
    --primary-foreground: 266 4% 20.8%;
    --secondary: 260 4.1% 27.9%;
    --secondary-foreground: 248 0.3% 98.4%;
    --muted: 260 4.1% 27.9%;
    --muted-foreground: 257 4% 70.4%;
    --accent: 260 4.1% 27.9%;
    --accent-foreground: 248 0.3% 98.4%;
    --destructive: 22 19.1% 70.4%;
    --destructive-foreground: 248 0.3% 98.4%;
    --border: 0 0% 100% / 10%;
    --input: 0 0% 100% / 15%;
    --ring: 264 2.7% 55.1%;
    --dashboard-bg: hsl(222 47% 8%);
    --dashboard-bg-alt: hsl(222 47% 6%);
    --dashboard-surface: hsl(var(--card) / 0.82);
    --dashboard-surface-strong: hsl(var(--card) / 0.94);
    --dashboard-surface-soft: hsl(var(--secondary) / 0.78);
    --dashboard-border: hsl(var(--border));
    --dashboard-border-strong: hsl(var(--ring) / 0.65);
    --dashboard-shadow: 0 18px 50px hsl(222 47% 4% / 0.35);
    --dashboard-shadow-lg: 0 28px 80px hsl(222 47% 4% / 0.48);
}

/* Utility classes */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: var(--gradient-primary);
}

.glow-effect {
    box-shadow: var(--shadow-glow);
}

.glass-effect {
    background: hsl(var(--card) / 0.5);
    backdrop-filter: blur(24px);
    border-color: hsl(var(--border) / 0.5);
}

.hero-glow {
    background: var(--gradient-hero);
}

/* Main Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    font-size: 0.875rem;
    line-height: 1.4;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1rem;
}

.footer {
    margin-top: 2rem;
    padding: 1rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Dashboard Styles */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #aaa;
    background-color: #f9f9f9;
}

/* Transcript View Styles */
.transcript-meta {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Dashboard mobile improvements */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .welcome-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-card h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .spaces-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .space-card {
        padding: 1rem;
    }
    
    /* Modal mobile improvements */
    .upload-modal-panel {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        max-width: none;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    /* Button spacing on mobile */
    .mobile-button-stack {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mobile-button-stack button {
        width: 100%;
        justify-content: center;
    }
    
    /* Text sizing for mobile */
    .mobile-text-sm {
        font-size: 0.875rem;
    }
    
    .mobile-text-xs {
        font-size: 0.75rem;
    }
    
    /* Improve touch targets */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Hide desktop table headers and content */
    .desktop-table {
        display: none;
    }
    
    /* Mobile card view for transcripts */
    .mobile-transcript-card {
        display: block;
        background: white;
        border-radius: 0.75rem;
        padding: 1rem;
        margin-bottom: 0.75rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
    
    .mobile-transcript-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .mobile-transcript-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
    }
    
    .mobile-transcript-meta-item {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-transcript-meta-label {
        font-size: 0.75rem;
        color: #6b7280;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }
    
    .mobile-transcript-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f3f4f6;
    }
    
    /* Mobile space cards improvements */
    .mobile-space-card {
        background: white;
        border-radius: 0.75rem;
        padding: 1rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .mobile-space-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    .mobile-space-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .mobile-space-stats {
        display: flex;
        justify-content: space-between;
        font-size: 0.875rem;
        color: #6b7280;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container-mobile {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .welcome-card {
        padding: 0.75rem;
    }
    
    .spaces-grid {
        gap: 0.5rem;
    }
    
    .upload-modal-panel {
        margin: 0.25rem;
        width: calc(100% - 0.5rem);
    }
}

/* Custom styles that extend Tailwind */

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar for webkit browsers */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animated gradient backgrounds */
.animated-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Custom focus styles */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

/* Landing Page Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: -1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -1.25rem;
    left: 1.25rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(14, 165, 233, 0.1);
    line-height: 1;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover::after {
    transform: translateX(100%);
}

/* Compact UI Styles */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.text-compact {
    line-height: 1.3;
}

.p-compact {
    padding: 0.5rem 0.75rem;
}

.m-compact {
    margin: 0.5rem 0.75rem;
}

.card-compact {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.875rem; }
h6 { font-size: 0.75rem; }

/* Tab styles for agent detail view */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: white;
}

.tab-content {
    display: none;
}

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

/* Coaching summary specific styles */
.coaching-summary-card {
    transition: all 0.3s ease;
}

.coaching-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
}

.coaching-shell {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.coaching-history-panel,
.coaching-workspace-card,
.coaching-empty-state {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
}

.coaching-history-panel {
    padding: 1rem;
    position: sticky;
    top: 1.5rem;
}

.coaching-workspace {
    min-width: 0;
}

.coaching-workspace-card {
    padding: 1rem 1.125rem;
}

.coaching-history-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.coaching-history-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.coaching-history-card-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
    background: #f8fbff;
}

.coaching-history-badge,
.coaching-history-meta {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.coaching-history-badge {
    background: #eef2ff;
    color: #4338ca;
}

.coaching-history-badge-filled {
    background: #dcfce7;
    color: #166534;
}

.coaching-history-meta {
    background: #f8fafc;
    color: #64748b;
}

.coaching-history-preview {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coaching-history-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: #64748b;
    background: #f8fafc;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.coaching-history-action:hover {
    background: #dbeafe;
    color: #2563eb;
}

.coaching-history-action-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.coaching-feedback-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.coaching-feedback-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.coaching-feedback-textarea {
    width: 100%;
    min-height: 8.5rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 0.9rem;
    font-size: 0.9rem;
    line-height: 1.45;
    resize: vertical;
}

.coaching-feedback-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Responsive tabs */
@media (max-width: 768px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-btn i {
        display: none;
    }

    .coaching-shell {
        grid-template-columns: 1fr;
    }

    .coaching-history-panel {
        position: static;
    }
}

/* Print styles for coaching summaries */
@media print {
    /* Only print the coaching summary content */
    body * {
        visibility: hidden !important;
    }
    #coaching-summary-content,
    #coaching-summary-content * {
        visibility: visible !important;
    }
    #coaching-summary-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .tab-nav,
    .coaching-summary-loading,
    .coaching-summary-error,
    #generate-summary-btn,
    #export-pdf-btn,
    #print-summary-btn,
    #save-manager-notes-btn {
        display: none !important;
    }
    
    .tab-content {
        display: block !important;
    }
    
    #coaching-summary-content {
        display: block !important;
    }
    
    .coaching-summary-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Ensure proper page breaks */
    .bg-gradient-to-r {
        background: white !important;
        border: 1px solid #ccc !important;
    }
    
    /* Hide interactive elements in print */
    button,
    .hover\\:bg-gray-50,
    .transition-colors {
        display: none !important;
    }
    
    /* Ensure text is readable */
    .text-gray-500,
    .text-gray-600,
    .text-gray-700 {
        color: #333 !important;
    }
}

/* Process Flow Carousel Styles */
.process-tab-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    background: none;
    margin: 0 0.25rem;
    transform: scale(1);
}

.process-tab-btn.active {
    color: white;
    background: #001D44; /* blue background for all buttons */
    box-shadow: 0 4px 15px rgba(0, 29, 68, 0.3);
    transform: scale(1.05);
}

.process-tab-btn:hover:not(.active) {
    color: #374151;
    background-color: #f9fafb;
}

.process-step-content {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.process-step-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

/* Add smooth scroll behavior to the section */
#how-it-works {
    scroll-margin-top: 2rem;
}

/* Make the tab navigation sticky */
.process-tab-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 90%, 
        rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.process-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #d1d5db;
}

.process-indicator.active {
    width: 2rem;
    background: #FE5B0E; /* orange for all indicators */
}

.process-indicator:hover {
    transform: scale(1.1);
}

/* Feature card styles for consistency */
.feature-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card-light {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* Updated brand colors - Rumlin rebrand */
.bg-rumlin-orange {
    background-color: #FE5B0E;
}

.bg-rumlin-blue {
    background-color: #001D44;
}

.bg-light-blue-tint {
    background-color: rgba(224, 232, 238, 1);
}

.bg-light-blue-tint-darker {
    background-color: rgba(214, 239, 255, 1);
}

.text-rumlin-orange {
    color: #FE5B0E;
}

.text-rumlin-blue {
    color: #001D44;
}

.border-rumlin-orange {
    border-color: #FE5B0E;
}

.border-rumlin-blue {
    border-color: #001D44;
}

/* Additional utility classes for dashboard */
.bg-rumlin-orange-light {
    background-color: rgba(254, 91, 14, 0.1);
}

.bg-rumlin-orange-dark {
    background-color: #e65200;
}

.bg-rumlin-blue-light {
    background-color: rgba(0, 29, 68, 0.05);
}

.hover\:bg-rumlin-orange:hover {
    background-color: #FE5B0E;
}

.hover\:bg-rumlin-orange-dark:hover {
    background-color: #e65200;
}

.focus\:ring-rumlin-orange:focus {
    --tw-ring-color: rgba(254, 91, 14, 0.5);
}

.focus\:ring-rumlin-blue:focus {
    --tw-ring-color: rgba(0, 29, 68, 0.5);
}

/* Status and accent colors */
.text-success {
    color: #16a34a;
}

.text-warning {
    color: #ca8a04;
}

.text-error {
    color: #dc2626;
}

.bg-success-light {
    background-color: rgba(22, 163, 74, 0.1);
}

.bg-warning-light {
    background-color: rgba(202, 138, 4, 0.1);
}

.bg-error-light {
    background-color: rgba(220, 38, 38, 0.1);
}

/* Responsive adjustments for process carousel */
@media (max-width: 768px) {
    .process-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin: 0 0.125rem;
    }
    
    .process-tab-btn span:first-child {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }
    
    .process-step-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .process-step-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .process-step-content .grid {
        gap: 2rem;
    }
}

/* Stripe Pricing Overlay Styles */
#pricing-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#pricing-overlay .bg-white {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom styling for Stripe pricing table */
stripe-pricing-table {
    --spacing: 20px;
    --border-radius: 12px;
    --color-background: #ffffff;
    --color-text: #1f2937;
    --color-primary: #FE5B0E;
    --color-primary-text: #ffffff;
    --color-secondary: #001D44;
    --color-secondary-text: #ffffff;
    --font-family: 'Inter', sans-serif;
}

/* Ensure proper spacing in pricing overlay */
.pricing-overlay-content {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Custom scrollbar for pricing overlay */
.pricing-overlay-content::-webkit-scrollbar {
    width: 6px;
}

.pricing-overlay-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.pricing-overlay-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pricing-overlay-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive adjustments for pricing overlay */
@media (max-width: 768px) {
    #pricing-overlay .max-w-4xl {
        max-width: calc(100vw - 2rem);
        margin: 1rem;
    }
    
    #pricing-overlay .p-6 {
        padding: 1.5rem;
    }
    
    #pricing-overlay h2 {
        font-size: 1.5rem;
    }
    
    #pricing-overlay .text-3xl {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #pricing-overlay .max-w-4xl {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
    }
    
    #pricing-overlay .p-6 {
        padding: 1rem;
    }
} 

/* Form controls: remove default browser focus outline and autofill glow */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
}

/* Remove Chrome/Safari autofill yellow background and inner glow */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #111111 !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Dashboard theme */
body.dashboard-theme {
    position: relative;
    isolation: isolate;
    color: hsl(var(--foreground));
    background: var(--dashboard-bg);
}

body.dashboard-theme::before {
    content: none;
}

body.dashboard-theme .dashboard-content,
body.dashboard-theme .container,
body.dashboard-theme .container-mobile {
    position: relative;
    z-index: 1;
}

body.dashboard-theme aside,
body.dashboard-theme #mobile-menu > div,
body.dashboard-theme #public-mobile-menu > div {
    background: var(--dashboard-surface);
    color: hsl(var(--foreground));
    border-color: var(--dashboard-border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.dashboard-theme .bg-white {
    background-color: var(--dashboard-surface-strong);
    color: hsl(var(--foreground));
    border-color: var(--dashboard-border);
}

body.dashboard-theme .card,
body.dashboard-theme .welcome-card,
body.dashboard-theme .feature-card,
body.dashboard-theme .feature-card-light,
body.dashboard-theme .stat-card,
body.dashboard-theme .coaching-summary-card,
body.dashboard-theme .mobile-transcript-card,
body.dashboard-theme .mobile-space-card,
body.dashboard-theme .modal-content,
body.dashboard-theme .pricing-overlay-content,
body.dashboard-theme .upload-modal .relative,
body.dashboard-theme .bg-gray-50,
body.dashboard-theme .bg-gray-100,
body.dashboard-theme .bg-gray-200 {
    background-color: var(--dashboard-surface-strong);
    color: hsl(var(--foreground));
    border-color: var(--dashboard-border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.dashboard-theme .bg-gray-50 {
    background-color: var(--dashboard-surface-strong);
}

body.dashboard-theme .bg-gray-100 {
    background-color: var(--dashboard-surface-strong);
}

body.dashboard-theme .bg-gray-200 {
    background-color: var(--dashboard-surface);
}

body.dashboard-theme .dashboard-page {
    position: relative;
}

body.dashboard-theme .surface-card {
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.dashboard-theme .surface-header {
    background: hsl(var(--secondary));
    border-bottom-color: var(--dashboard-border);
}

body.dashboard-theme h1.surface-header,
body.dashboard-theme h2.surface-header,
body.dashboard-theme h3.surface-header,
body.dashboard-theme h4.surface-header,
body.dashboard-theme h5.surface-header,
body.dashboard-theme h6.surface-header {
    background: transparent;
    border-bottom-color: transparent;
}

body.dashboard-theme .surface-table {
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-border);
}

body.dashboard-theme .team-lead-snapshot {
    height: 100%;
    border: 1px solid var(--dashboard-border);
    border-radius: 1rem;
    background: var(--dashboard-surface-strong);
    padding: 1rem 1.125rem;
}

body.dashboard-theme .team-lead-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.dashboard-theme .team-lead-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

body.dashboard-theme .team-lead-card,
body.dashboard-theme .team-lead-highlight {
    border: 1px solid var(--dashboard-border);
    border-radius: 0.9rem;
    background: var(--dashboard-surface);
}

body.dashboard-theme .team-lead-card {
    padding: 0.8rem 0.9rem;
}

body.dashboard-theme .team-lead-label {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

body.dashboard-theme .team-lead-value {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 700;
    color: hsl(var(--foreground));
}

body.dashboard-theme .team-lead-value-sub {
    font-size: 0.875rem;
    color: #64748b;
}

body.dashboard-theme .team-lead-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

body.dashboard-theme .team-lead-highlight {
    padding: 0.9rem 1rem;
}

body.dashboard-theme .team-lead-copy {
    font-size: 0.925rem;
    line-height: 1.45;
    color: #334155;
}

body.dashboard-theme .team-lead-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(0, 29, 68, 0.14);
    background: rgba(0, 29, 68, 0.06);
    color: #001d44;
    font-size: 0.875rem;
    font-weight: 600;
}

body.dashboard-theme .team-lead-cta:hover {
    background: rgba(0, 29, 68, 0.1);
}

body.dashboard-theme .team-members-header {
    gap: 1rem;
}

body.dashboard-theme .team-members-quick-access {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

body.dashboard-theme .team-members-quick-access > div:first-child {
    text-align: right;
}

body.dashboard-theme .team-member-controls {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
}

body.dashboard-theme .team-member-eyebrow {
    margin-bottom: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

body.dashboard-theme .team-member-select-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.dashboard-theme .team-member-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 0.95rem;
    border-radius: 0.875rem;
    background: #001d44;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

body.dashboard-theme .team-member-open-link:hover {
    background: #03285b;
}

body.dashboard-theme .transcript-table-compact th,
body.dashboard-theme .transcript-table-compact td {
    vertical-align: middle;
}

body.dashboard-theme .compact-score-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
}

body.dashboard-theme .compact-score-ring {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
}

body.dashboard-theme .compact-score-svg {
    width: 2.25rem;
    height: 2.25rem;
}

body.dashboard-theme .compact-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: hsl(var(--foreground));
}

body.dashboard-theme .compact-score-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    font-size: 0.6rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.dashboard-theme .space-card {
    position: relative;
    border: 1px solid var(--dashboard-border);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--dashboard-surface-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.dashboard-theme .space-card:hover {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

body.dashboard-theme .space-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.875rem;
    background: rgba(191, 219, 254, 0.28);
    color: #0f3a75;
    flex-shrink: 0;
}

body.dashboard-theme .space-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.dashboard-theme .topic-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
}

body.dashboard-theme .topic-chip-muted {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

body.dashboard-theme .review-queue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

body.dashboard-theme .review-queue-card {
    border: 1px solid var(--dashboard-border);
    border-radius: 1rem;
    background: var(--dashboard-surface-strong);
    padding: 1rem;
}

body.dashboard-theme .review-queue-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

body.dashboard-theme .review-queue-count {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: hsl(var(--foreground));
}

body.dashboard-theme .review-queue-description {
    margin-top: 0.4rem;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.45;
}

body.dashboard-theme .review-queue-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.8rem;
    background: #001d44;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

body.dashboard-theme .review-queue-primary-link:hover {
    background: #03285b;
}

body.dashboard-theme .review-queue-list {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.dashboard-theme .review-queue-item,
body.dashboard-theme .review-queue-empty {
    border: 1px solid var(--dashboard-border);
    border-radius: 0.9rem;
    background: var(--dashboard-surface);
    padding: 0.8rem 0.9rem;
}

body.dashboard-theme .review-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
}

body.dashboard-theme .review-queue-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

body.dashboard-theme .review-queue-item-copy {
    margin-top: 0.2rem;
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.4;
}

body.dashboard-theme .review-queue-item-link {
    color: #001d44;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

body.dashboard-theme .review-queue-empty {
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    body.dashboard-theme .team-lead-header {
        flex-direction: column;
    }

    body.dashboard-theme .team-lead-kpis,
    body.dashboard-theme .team-lead-highlights,
    body.dashboard-theme .review-queue-grid {
        grid-template-columns: 1fr 1fr;
    }

    body.dashboard-theme .team-member-select-row {
        flex-direction: column;
        align-items: stretch;
    }

    body.dashboard-theme .team-member-open-link {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body.dashboard-theme .team-members-header,
    body.dashboard-theme .team-members-quick-access {
        flex-direction: column;
        align-items: stretch;
    }

    body.dashboard-theme .team-members-quick-access > div:first-child {
        text-align: left;
    }

    body.dashboard-theme .team-lead-kpis,
    body.dashboard-theme .team-lead-highlights,
    body.dashboard-theme .review-queue-grid {
        grid-template-columns: 1fr;
    }
}

body.dashboard-theme .btn-primary {
    border-color: transparent;
}

body.dashboard-theme .btn-primary:not([class*="bg-"]) {
    background-color: #001D44;
    background-image: none;
    color: hsl(var(--primary-foreground));
    box-shadow: none;
}

body.dashboard-theme .btn-primary:not([class*="bg-"]):hover {
    filter: brightness(0.98);
}

body.dashboard-theme .btn-secondary:not([class*="bg-"]) {
    background: hsl(var(--card) / 0.8);
    border-color: var(--dashboard-border-strong);
}

body.dashboard-theme .btn-secondary:not([class*="text-"]) {
    color: hsl(var(--foreground));
}

body.dashboard-theme .btn-secondary:not([class*="bg-"]):hover {
    background: hsl(var(--secondary) / 0.9);
}

body.dashboard-theme input.field-input:not([type="checkbox"]):not([type="radio"]),
body.dashboard-theme textarea.field-input,
body.dashboard-theme select.field-input {
    background: hsl(var(--card) / 0.9);
    border-color: var(--dashboard-border-strong);
    color: hsl(var(--foreground));
}

body.dashboard-theme .status-pill {
    border: 1px solid hsl(var(--border));
    box-shadow: inset 0 1px 0 hsl(var(--card) / 0.4);
}

body.dashboard-theme .border-gray-200,
body.dashboard-theme .border-gray-300,
body.dashboard-theme .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--dashboard-border) !important;
}

body.dashboard-theme .shadow-sm {
    box-shadow: none !important;
}

body.dashboard-theme .shadow-lg,
body.dashboard-theme .shadow-xl,
body.dashboard-theme .shadow-2xl {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

body.dashboard-theme .text-gray-900,
body.dashboard-theme .text-gray-800 {
    color: hsl(var(--foreground)) !important;
}

body.dashboard-theme .text-gray-700 {
    color: #334155 !important;
}

body.dashboard-theme .text-gray-600 {
    color: #475569 !important;
}

body.dashboard-theme .text-gray-500 {
    color: #64748b !important;
}

body.dashboard-theme .text-gray-400 {
    color: #94a3b8 !important;
}

body.dashboard-theme .bg-rumlin-blue {
    background: #001d44;
    color: #ffffff;
}

body.dashboard-theme .bg-rumlin-orange {
    background: #fe5b0e;
    color: #ffffff;
}

body.dashboard-theme .bg-rumlin-orange-dark {
    background-color: #e65200;
}

body.dashboard-theme .bg-rumlin-blue-light {
    background-color: rgba(0, 29, 68, 0.06);
}

body.dashboard-theme .bg-rumlin-orange-light {
    background-color: rgba(254, 91, 14, 0.12);
}

body.dashboard-theme .hover\:bg-rumlin-orange:hover {
    background-color: #ff6a1a;
}

body.dashboard-theme .hover\:bg-rumlin-orange-dark:hover {
    background-color: #d94700;
}

body.dashboard-theme .hover\:bg-rumlin-blue:hover {
    background-color: #0f3a75;
}

body.dashboard-theme [class*="bg-gradient-"] {
    background-image: none !important;
}

body.dashboard-theme [class*="bg-gradient-"].text-white,
body.dashboard-theme [class*="bg-gradient-"].text-slate-50 {
    color: hsl(var(--foreground)) !important;
}

body.dashboard-theme input:not([type="checkbox"]):not([type="radio"]),
body.dashboard-theme textarea,
body.dashboard-theme select {
    background-color: rgba(255, 255, 255, 0.88);
    color: hsl(var(--foreground));
    border-color: var(--dashboard-border-strong);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.dashboard-theme input::placeholder,
body.dashboard-theme textarea::placeholder {
    color: #94a3b8;
}

body.dashboard-theme input:focus-visible,
body.dashboard-theme textarea:focus-visible,
body.dashboard-theme select:focus-visible,
body.dashboard-theme button:focus-visible,
body.dashboard-theme a:focus-visible,
body.dashboard-theme [role="button"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 5px hsl(var(--ring));
}

body.dashboard-theme .focus-ring:focus,
body.dashboard-theme .focus-ring:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 5px hsl(var(--ring)) !important;
}

body.dashboard-theme input:-webkit-autofill,
body.dashboard-theme textarea:-webkit-autofill,
body.dashboard-theme select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.92) inset !important;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.92) inset !important;
    -webkit-text-fill-color: hsl(var(--foreground)) !important;
}

body.dashboard-theme button,
body.dashboard-theme [type="button"],
body.dashboard-theme [type="submit"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.dashboard-theme button:hover,
body.dashboard-theme [type="button"]:hover,
body.dashboard-theme [type="submit"]:hover {
    transform: translateY(-1px);
}

body.dashboard-theme table {
    border-collapse: separate;
    border-spacing: 0;
    background: var(--dashboard-surface);
    border: 1px solid var(--dashboard-border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--dashboard-shadow);
}

body.dashboard-theme thead {
    background: rgba(241, 245, 249, 0.82);
}

body.dashboard-theme th {
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.dashboard-theme td {
    color: hsl(var(--foreground));
}

body.dashboard-theme tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

body.dashboard-theme [role="alert"],
body.dashboard-theme .alert {
    background: var(--dashboard-surface-strong);
    border: 1px solid var(--dashboard-border);
    box-shadow: var(--dashboard-shadow);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

body.dashboard-theme .rounded-md,
body.dashboard-theme .rounded-lg,
body.dashboard-theme .rounded-xl,
body.dashboard-theme .rounded-2xl {
    border-radius: 1rem;
}

body.dashboard-theme #teams-dropdown,
body.dashboard-theme #spaces-dropdown,
body.dashboard-theme #settings-dropdown,
body.dashboard-theme #mobile-teams-dropdown,
body.dashboard-theme #mobile-spaces-dropdown,
body.dashboard-theme #mobile-settings-dropdown {
    background: var(--dashboard-surface-strong);
    border: 1px solid var(--dashboard-border);
    box-shadow: var(--dashboard-shadow-lg);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

body.dashboard-theme .fixed.inset-0.bg-gray-600.bg-opacity-50,
body.dashboard-theme .fixed.inset-0.bg-black.bg-opacity-50 {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dashboard-theme #mobile-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dashboard-theme #mobile-menu > div {
    border-radius: 1.25rem 0 0 1.25rem;
}

body.dashboard-theme .upload-area,
body.dashboard-theme .mobile-space-card,
body.dashboard-theme .mobile-transcript-card {
    border-color: var(--dashboard-border);
}

body.dashboard-theme .upload-area:hover,
body.dashboard-theme .mobile-space-card:hover {
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

body.dashboard-theme .custom-scrollbar::-webkit-scrollbar-track,
body.dashboard-theme .pricing-overlay-content::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.7);
}

body.dashboard-theme .custom-scrollbar::-webkit-scrollbar-thumb,
body.dashboard-theme .pricing-overlay-content::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
}

body.dashboard-theme .custom-scrollbar::-webkit-scrollbar-thumb:hover,
body.dashboard-theme .pricing-overlay-content::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.6);
}
