/* Design System - Lovable Theme */
:root {
    /* Primary brand colors */
    --brand-purple: #8B5CF6;
    --brand-purple-light: #A78BFA;
    --brand-purple-dark: #7C3AED;
    --brand-purple-gradient: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    
    /* UI colors */
    --background-primary: #FFFFFF;
    --background-secondary: #F8FAFC;
    --background-card: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Status colors */
    --success-green: #22C55E;
    --success-light: #DCFCE7;
    --warning-orange: #F59E0B;
    --warning-light: #FEF3C7;
    --info-blue: #3B82F6;
    --info-light: #DBEAFE;
    --pending-yellow: #EAB308;
    --pending-light: #FEF08A;
    
    /* Card shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    
    /* Legacy support */
    --primary-color: var(--brand-purple);
}

/* Global smooth transitions */
* {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.025em;
    line-height: 1.5;
    overflow-y: auto;
    font-weight: 400;
}

/* Top Navigation Bar */
.navbar {
    background: var(--brand-purple) !important;
    padding: 12px 24px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 1.2rem;
}

.coach-nav-tabs {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
}

.coach-nav-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.coach-nav-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.coach-nav-tab.active {
    background: white;
    color: var(--brand-purple);
    font-weight: 600;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
}

.navbar .btn-outline-light:hover {
    background: white;
    color: var(--brand-purple);
    border-color: white;
}

/* ===== DASHBOARD STYLES ===== */

/* Welcome Card */
.welcome-card {
    background: var(--brand-purple-gradient);
    border-radius: 16px;
    padding: 32px;
    color: white !important;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.welcome-card * {
    color: white !important;
}

.welcome-content .welcome-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    color: white;
}

.welcome-meta {
    display: flex;
    gap: 24px;
    opacity: 0.9;
    font-size: 0.95rem;
    color: white;
}

.welcome-meta span {
    color: white;
}

.welcome-stats {
    display: flex;
    gap: 40px;
    text-align: right;
}

.welcome-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white !important;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    color: white !important;
}

/* Metric Cards */
.metric-card {
    background: var(--background-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.metric-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-secondary);
    border-radius: 10px;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--success-green);
}

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

/* Dashboard Cards */
.dashboard-card {
    background: var(--background-card);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-card .card-header {
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-primary);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-icon {
    font-size: 1.2rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-card .card-body {
    padding: 20px;
}

/* Large Metric Display */
.large-metric {
    text-align: center;
}

.large-metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.large-metric-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.large-metric-change.positive {
    color: var(--success-green);
}

/* Progress Display */
.progress-display {
    text-align: center;
}

.progress-amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.progress-amount .current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-amount .target {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.progress-bar-container {
    background: var(--border-light);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    background: var(--brand-purple);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.progress-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.schedule-dot.pending {
    background: var(--pending-yellow);
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.schedule-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.schedule-status {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.schedule-status.pending {
    background: var(--pending-light);
    color: var(--pending-yellow);
}

/* Alert List */
.alert-list, .attention-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item, .attention-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content, .attention-content {
    flex: 1;
}

.alert-title, .attention-title {
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.attention-status {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.attention-status.pending {
    background: var(--pending-light);
    color: var(--pending-yellow);
}

/* Login Page Styles */
.login-container {
    background: linear-gradient(135deg, var(--primary-color), var(--hubspot-orange));
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: none;
}

.login-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.login-hero img {
    border-radius: 12px;
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}

.btn-hubspot {
    background: var(--hubspot-orange);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-hubspot:hover {
    background: #e85a3f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 89, 0.3);
    color: white;
}

.login-features {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.feature-item i {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Three-Column Layout */
.main-container {
    height: calc(100vh - 60px); /* Account for navbar */
    overflow: hidden;
    background: var(--background-secondary);
    display: flex;
    gap: 0;
}

.sidebar {
    width: 300px;
    background: var(--background-secondary);
    padding: 24px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    background: var(--background-primary);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

.pipeline-panel {
    width: 380px;
    background: var(--background-primary);
    overflow-y: auto;
    flex-shrink: 0;
    padding: 0;
}

.pipeline-panel.hidden {
    display: none;
}

.show-deals-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-purple);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px 0 0 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: none;
}

.show-deals-btn:hover {
    background: var(--brand-purple-dark);
    transform: translateY(-50%) translateX(-2px);
}

.show-deals-btn.visible {
    display: block;
}

/* Main Content Area Styles */
.content-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-primary);
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.content-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background-primary);
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar-header {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.sidebar-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.sidebar-section {
    margin-bottom: 32px;
}

.section-header {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.quick-start-item {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-start-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-purple-light);
}

.quick-start-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-size: 0.9rem;
}

.quick-start-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Marketing Activity Items */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: rgba(139, 92, 246, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 6px;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.12);
}

.activity-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.activity-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.1rem;
}

.activity-progress {
    font-size: 0.7rem;
    color: #6b7280;
}

.activity-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
}

.activity-status.incomplete {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.activity-status.complete {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
}

/* Marketing Goal Items */
.goal-item {
    padding: 0.6rem 0.75rem;
    background: rgba(139, 92, 246, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.goal-info {
    display: flex;
    flex-direction: column;
}

.goal-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.3rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #7C3AED);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: #8B5CF6;
    min-width: 35px;
    text-align: right;
}

/* Marketing Performance Components */
.performance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.performance-metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.performance-metric:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--brand-purple-light);
}

.metric-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
}

.metric-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-change {
    font-size: 0.7rem;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--success-green);
}

.metric-change.negative {
    color: #EF4444;
}

.metric-change.neutral {
    color: var(--text-secondary);
}

/* Content and Funnel Lists */
.content-list, .funnel-list, .insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-item, .funnel-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 92, 246, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.content-item:hover, .funnel-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.12);
}

.content-title, .funnel-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    margin-right: 0.5rem;
}

.content-metrics, .funnel-value {
    font-size: 0.75rem;
    color: var(--brand-purple);
    font-weight: 600;
    white-space: nowrap;
}

.funnel-item {
    align-items: center;
}

.funnel-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.funnel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Analytics Insights */
.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(139, 92, 246, 0.02);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.insight-item i {
    margin-top: 0.1rem;
    font-size: 0.9rem;
}

.insight-item.positive i {
    color: var(--success-green);
}

.insight-item.warning i {
    color: var(--warning-orange);
}

.insight-item.neutral i {
    color: var(--text-secondary);
}

.insight-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.session-item {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-item:hover {
    background: var(--brand-purple-light);
    color: white;
    border-color: var(--brand-purple);
}

.session-item.active {
    background: var(--brand-purple);
    color: white;
    border-color: var(--brand-purple);
}

.session-item.completed {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

.session-status {
    font-size: 1rem;
}

.chat-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.chat-controls {
    margin-left: auto;
}

.chat-header-title {
    display: flex;
    align-items: center;
}

.workflow-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.workflow-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.workflow-btn.active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.workflow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.workflow-mode-indicator {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.workflow-mode-indicator.morning { background: rgba(255, 193, 7, 0.1); color: #f57c00; }
.workflow-mode-indicator.progress { background: rgba(255, 193, 7, 0.1); color: #f57c00; }
.workflow-mode-indicator.evening { background: rgba(23, 162, 184, 0.1); color: #0c5460; }

/* History Tab Styles */
.history-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-calendar {
    padding: 1rem 0;
}

.history-dates {
    display: grid;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.history-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.history-date-item:hover {
    background: var(--chat-bg);
    border-color: var(--primary-color);
}

.history-date-item.has-sessions {
    border-left: 4px solid var(--primary-color);
}

.history-date-info {
    display: flex;
    flex-direction: column;
}

.history-date-date {
    font-weight: 600;
    color: #333;
}

.history-date-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.history-session-indicators {
    display: flex;
    gap: 0.25rem;
}

.session-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.3;
}

.session-indicator.active {
    opacity: 1;
}

.session-indicator.morning { background: #ffc107; }
.session-indicator.progress { background: #fd7e14; }
.session-indicator.evening { background: #20c997; }
.session-indicator.chat { background: var(--primary-color); }

.daily-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.daily-sessions {
    max-height: 500px;
    overflow-y: auto;
}

.session-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

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

.session-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin: 0;
}

.session-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.session-messages {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--chat-bg);
    border-radius: 4px;
}

.history-message {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.history-message:last-child {
    border-bottom: none;
}

.history-message.user {
    color: #333;
    font-weight: 500;
}

.history-message.system {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    float: right;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--chat-bg);
    scroll-behavior: smooth;
}

/* Chat Message Styles */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--background-primary);
    scroll-behavior: smooth;
}

.message {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--text-secondary);
    color: white;
}

.message.system .message-avatar {
    background: var(--brand-purple);
    color: white;
}

.message-content {
    flex: 1;
    max-width: calc(100% - 60px);
}

/* Enhanced Chat Messages with Better Visual Distinction */
.message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    margin-bottom: 4px;
}

/* User messages - Blue gradient bubble on right */
.message.user .message-bubble {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%) !important;
    color: white !important;
    border-bottom-right-radius: 6px;
    margin-left: 3rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* AI/System messages - Light gray bubble on left with AI indicator */
.message.system .message-bubble {
    background: #F3F4F6;
    color: var(--text-primary);
    border: 1px solid #E5E7EB;
    border-bottom-left-radius: 6px;
    margin-right: 3rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Add AI indicator icon */
.message.system .message-bubble::before {
    content: '🤖';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 14px;
    background: #F3F4F6;
    padding: 2px 4px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
    padding: 0 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

/* Chat Input Styles */
.chat-input {
    padding: 24px;
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.chat-input .form-control {
    border: none;
    padding: 14px 16px;
    font-size: 0.95rem;
    background: var(--background-primary);
    color: var(--text-primary);
}

.chat-input .form-control:focus {
    box-shadow: none;
    background: var(--background-primary);
    outline: none;
}

.chat-input .form-control::placeholder {
    color: var(--text-secondary);
}

.chat-input .btn {
    border: none;
    padding: 14px 20px;
    background: var(--brand-purple);
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chat-input .btn:hover {
    background: var(--brand-purple-dark);
    color: white;
}

.input-icon {
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 1rem;
}

/* File preview styling - Multiple files support */
.file-preview {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 8px;
}

.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.file-preview-clear {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.file-preview-clear:hover {
    background: #f8d7da;
}

.file-preview-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.file-name {
    color: #495057;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 8px;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-size: 1.1rem;
}

.remove-file-btn:hover {
    background: #f8d7da;
}

/* Drag and drop styling */
.chat-container.drag-over {
    background: rgba(139, 92, 246, 0.1);
    border: 2px dashed var(--brand-purple);
    border-radius: 12px;
}

.drag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 92, 246, 0.1);
    border: 2px dashed var(--brand-purple);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
}

.drag-overlay.active {
    display: flex;
}

.drag-message {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    color: var(--brand-purple);
    font-weight: 600;
}

/* File attachment in messages */
.message-attachment {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-attachment-icon {
    color: #6c757d;
    font-size: 1.2rem;
}

.message-attachment-info {
    flex: 1;
}

.message-attachment-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 2px;
}

.message-attachment-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.message-attachment-download {
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 500;
}

.message-attachment-download:hover {
    color: var(--brand-purple-dark);
}

/* Pipeline Panel Styles */
.pipeline-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-primary);
}

.pipeline-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.pipeline-stat-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.pipeline-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-trend {
    color: var(--success-green);
    font-size: 1rem;
}

.pipeline-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px 24px;
}

.pipeline-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.pipeline-nav-item {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.pipeline-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.pipeline-nav-item.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.deals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    padding: 0 1.5rem;
    background: var(--chat-bg);
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: white;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.tab-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-pane {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tab-pane.active {
    display: flex !important;
}

.tab-header {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.tab-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.tab-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Pipeline Stats */
.pipeline-stats {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--chat-bg);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

/* Deal Cards */
.deal-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.deal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-purple-light);
}

.deal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.deal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.deal-stage {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0;
    white-space: nowrap;
}

.stage-scheduled {
    background: var(--stage-scheduled-bg);
    color: var(--stage-scheduled-text);
}

.stage-qualified {
    background: var(--stage-qualified-bg);
    color: var(--stage-qualified-text);
}

.stage-proposal {
    background: var(--stage-proposal-bg);
    color: var(--stage-proposal-text);
}

.deal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.deal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deal-meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.deal-meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.deal-pipeline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Loading and Empty States */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

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

.empty-state h6 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Enhanced empty state with coach-specific content */
.enhanced-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-primary);
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-state-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.empty-state-suggestions {
    background: linear-gradient(135deg, white 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.empty-state-suggestions h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.empty-state-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.empty-state-suggestions li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state-suggestions li:last-child {
    border-bottom: none;
}

.empty-state-suggestions li:before {
    content: "💡";
    margin-right: 0.5rem;
}

.empty-state-cta {
    text-align: center;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state-cta strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Professional Coach Selection Tabs */
.coach-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 6px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.coach-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.coach-tab:hover {
    color: var(--text-color);
    background: rgba(255,255,255,0.5);
}

.coach-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.coach-tab.active:hover {
    color: white;
    background: var(--primary);
}

/* Modern Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Visual Hierarchy */
.heading-primary {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* Modern Focus States */
.workflow-button:focus,
.coach-tab:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Improved Message Bubbles */
/* Duplicate message bubble styles removed - see enhanced styles above */

/* Responsive Design */
@media (max-width: 991.98px) {
    .main-container {
        height: auto;
        min-height: calc(100vh - 76px);
    }
    
    .main-container .row {
        height: auto;
    }
    
    .chat-panel, .hubspot-panel {
        height: 50vh;
        min-height: 400px;
    }
    
    .hubspot-panel {
        border-right: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 576px) {
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-input {
        padding: 0.75rem 1rem;
    }
    
    .tab-header {
        padding: 1rem;
    }
    
    .data-card-header, .data-card-body {
        padding: 0.75rem 1rem;
    }
    
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
}

/* Utility Classes */
.text-hubspot {
    color: var(--hubspot-orange) !important;
}

.bg-hubspot {
    background-color: var(--hubspot-orange) !important;
}

.scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar,
.tab-body::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.tab-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.tab-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.tab-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* AI Features Styling */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Update Suggestions Styling */
.update-suggestions-container {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    animation: slideIn 0.3s ease-out;
}

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

.suggestions-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff8e1;
    border-radius: 8px 8px 0 0;
}

.suggestions-header strong {
    color: #856404;
    font-size: 0.95rem;
}

.suggestions-header .fas {
    color: #f39c12;
}

.dismiss-all {
    color: #6c757d;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
}

.dismiss-all:hover {
    color: #495057;
    text-decoration: underline;
}

.suggestions-list {
    padding: 0;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ffeaa7;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.suggestion-item:hover {
    background: rgba(255, 193, 7, 0.1);
}

.suggestion-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
}

.suggestion-icon {
    color: #f39c12;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.suggestion-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.suggestion-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    min-width: 70px;
}

/* Entity Highlighting */
.entity-mention {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.entity-mention:hover {
    background: rgba(13, 110, 253, 0.2);
}

.entity-mention.deal {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.entity-mention.contact {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.entity-mention.company {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-muted);
}

/* AI Message Styling */
/* Conflicting gradient style removed - using clean gray design above */

.ai-response-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ai-response-indicator .fas {
    font-size: 0.7rem;
}

/* Enhanced message bubbles for AI context */
.message-bubble.has-entities {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.message-bubble.ai-generated {
    position: relative;
}

.message-bubble.ai-generated::after {
    content: '🤖';
    position: absolute;
    bottom: -8px;
    right: 8px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Responsive adjustments for suggestions */
@media (max-width: 768px) {
    .update-suggestions-container {
        margin: 1rem;
    }
    
    .suggestion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .suggestion-actions {
        align-self: stretch;
        justify-content: flex-end;
    }
    
    .suggestion-actions .btn {
        min-width: 80px;
    }
}

/* Enhanced toast notifications */
.alert.position-fixed {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: none;
    border-radius: 8px;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f1aeb5);
    color: #721c24;
}

/* Enhanced update suggestions styling */
.update-suggestions-container {
    background: rgba(255, 248, 220, 0.95);
    border: 1px dashed #ffa500;
    border-radius: 8px;
    margin: 1rem 0;
    padding: 0;
    backdrop-filter: blur(5px);
}

.suggestions-header {
    background: rgba(255, 165, 0, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suggestions-header strong {
    color: #d68910;
}

.suggestions-header small {
    font-style: italic;
    color: #856404;
}

/* Chat confirmation styling - make it more prominent */
.message.system .message-bubble:contains("Confirm") {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-left: 4px solid #17a2b8;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    animation: pulse-confirm 2s infinite;
}

@keyframes pulse-confirm {
    0% { box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(40, 167, 69, 0.6); }
    100% { box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3); }
}

/* Design System Variables */
:root {
    --primary-blue: #2563eb;
    --secondary-gray: #64748b;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --background-light: #f8fafc;
    --border-light: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

/* Coach Tab Selection Styling */
.coach-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
    background: white;
}

.coach-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.coach-tab:hover {
    color: var(--text-primary);
    background: var(--background-light);
}

.coach-tab.active {
    color: var(--primary-blue);
    font-weight: 600;
    border-bottom-color: var(--primary-blue);
    background: white;
}

.coach-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
}

/* Modern Professional Workflow Buttons */
.workflow-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 0;
}

.workflow-button {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.workflow-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.workflow-button.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.workflow-button-label {
    font-weight: 600;
    line-height: 1.2;
}

.workflow-button-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1;
    margin-top: 2px;
}

/* Enhanced Deal Cards */
.deal-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    position: relative;
    border-left: 4px solid transparent;
}

/* Priority indicators with color coding */
.deal-item.high-priority {
    border-left-color: var(--accent);
}

.deal-item.medium-priority {
    border-left-color: var(--warning);
}

.deal-item.low-priority {
    border-left-color: var(--success);
}

.deal-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.deal-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.deal-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.deal-priority {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8a8a 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-stage {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.deal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.deal-meta-item {
    display: flex;
    flex-direction: column;
}

.deal-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.deal-meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

.deal-pipeline {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* Responsive design */
@media (max-width: 768px) {
    .coach-tabs {
        border-radius: 0;
    }
    
    .coach-tab {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
    
    .workflow-button {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .deal-meta {
        grid-template-columns: 1fr;
    }
}


/* Workflow Button States */
.workflow-button.completed {
    background: #38a169;
    color: white;
    border-color: #38a169;
    cursor: pointer;
    opacity: 0.9;
    position: relative;
}

.workflow-button.completed:hover {
    background: #2f855a;
    color: white;
    transform: translateY(-1px);
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}

.workflow-button.completed::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.workflow-session-header.completed {
    background: #38a169;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.workflow-session-header.completed .session-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.workflow-session-header.completed .session-meta {
    opacity: 0.9;
    font-size: 0.9rem;
    margin: 0;
}

/* Simplified Workflow Session Header */
.workflow-session-header {
    background: #3182ce;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.session-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.session-duration {
    font-weight: 600;
    color: #ffd700;
}

/* Complete Session Button Container */
.complete-session-container {
    margin: 0.75rem 0;
}

.complete-session-container .btn {
    background: #3182ce;
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.complete-session-container .btn:hover {
    background: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Back to Chat Button */
.back-to-chat-btn {
    background: transparent !important;
    color: #718096 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.back-to-chat-btn:hover {
    background: #f7fafc !important;
    color: #4a5568 !important;
    border-color: #cbd5e0 !important;
    transform: none !important;
}

/* Navbar Coach Tabs */
.navbar-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 2rem;
}

.navbar-tab {
    padding: 8px 20px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 4px;
    cursor: pointer;
}

.navbar-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Outbound Progress Tracking */
.outbound-progress-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.outbound-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.outbound-progress-header h6 {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

.streak-indicator {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.outbound-progress-bars {
    margin-bottom: 1rem;
}

.progress-item {
    margin-bottom: 0.75rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.progress-count {
    font-size: 0.8rem;
    color: #6b7280;
}

.progress-bar-container {
    background: #e5e7eb;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #3182ce;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-bar-fill.completed {
    background: #10b981;
}

.outbound-tasks {
    max-height: 200px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.task-item:last-child {
    margin-bottom: 0;
}

.task-item.completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    opacity: 0.8;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
}

.task-description {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
}

.task-item.completed .task-description {
    text-decoration: line-through;
    color: #6b7280;
}

.task-priority {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.task-priority.high {
    background: #fef2f2;
    color: #dc2626;
}

.task-priority.medium {
    background: #fef3c7;
    color: #d97706;
}

.task-priority.low {
    background: #f0f9ff;
    color: #0284c7;
}

.workflow-complete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 236, 196, 0.4);
    background: linear-gradient(135deg, #38b2ac 0%, var(--success) 100%);
}

/* Completion Message Styling */
.message[data-mode='completion'] .message-bubble {
    background: linear-gradient(135deg, var(--success) 0%, #38b2ac 100%);
    color: white;
    text-align: center;
    font-weight: 600;
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(76, 236, 196, 0.3);
}


}

#togglePanelBtn {
    background: white !important;
    color: var(--brand-purple) !important;
    border: 2px solid var(--brand-purple) !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
    min-width: 120px;
}

#togglePanelBtn:hover {
    background: var(--brand-purple) !important;
    color: white !important;
    border-color: var(--brand-purple) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

#togglePanelBtn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Sidebar Goals Section */
.goals-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.goal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.goal-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.goal-item.completed {
    opacity: 0.7;
    text-decoration: line-through;
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.goal-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.goal-icon {
    font-size: 0.7rem;
    color: var(--brand-purple);
    width: 12px;
    text-align: center;
}

.goal-item.completed .goal-icon {
    color: var(--success);
}

.goal-text {
    flex: 1;
    line-height: 1.2;
    color: var(--text-secondary);
}

.goal-item.completed .goal-text {
    color: var(--success);
}

.goal-progress {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-purple);
    background: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    min-width: 35px;
    text-align: center;
}

.goal-item.completed .goal-progress {
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.3);
}

.priority-high {
    position: relative;
}

.priority-high::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--warning);
    border-radius: 3px 0 0 3px;
}

.priority-medium {
    position: relative;
}

.priority-medium::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--info);
    border-radius: 3px 0 0 3px;
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 16px 16px;
}

.welcome-section {
    text-align: center;
}

.welcome-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.date-info, .quarter-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.date-info span, .quarter-info span {
    font-size: 0.95rem;
    font-weight: 500;
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-card {
    background: var(--background-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-card .card-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
}

.dashboard-card .card-header h4,
.dashboard-card .card-header h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-card .card-body {
    padding: 1.25rem;
}

/* Workflow Card Styles */
.workflow-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.workflow-item:hover {
    background: var(--background-secondary);
}

.workflow-item.general-chat {
    border-top: 2px solid var(--brand-purple);
}

.workflow-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

.workflow-content {
    flex: 1;
}

.workflow-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.workflow-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.workflow-action {
    min-width: 80px;
}

/* Pipeline Card Styles */
.pipeline-summary {
    margin-bottom: 1.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.metric-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.deals-preview {
    margin-bottom: 1rem;
}

.deal-preview-item {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    background: var(--background-secondary);
}

.deal-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.deal-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.deal-amount {
    font-weight: 600;
    color: var(--success-green);
}

.pipeline-actions, .marketing-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Marketing Card Styles */
.marketing-metrics {
    margin-bottom: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.metric-item:last-child {
    border-bottom: none;
}

.metric-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

.metric-content {
    flex: 1;
}

.metric-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-number {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--success-green);
}

.metric-change.negative {
    color: #dc3545;
}

.metric-change.neutral {
    color: var(--text-secondary);
}

/* Activity and Schedule Cards */
.notifications-list, .schedule-list {
    margin: 0;
}

.notification-item, .schedule-item {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: var(--background-secondary);
    font-size: 0.9rem;
    border-left: 3px solid var(--brand-purple);
}

.notification-item:last-child, .schedule-item:last-child {
    margin-bottom: 0;
}

/* Sales Sidebar Specific Styles */
.sidebar .goals-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar .goal-item {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.2s ease;
    display: block;
}

.sidebar .goal-item:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.sidebar .goal-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sidebar .goal-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sidebar .goal-progress {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.action-btn:hover {
    background: var(--brand-purple);
    color: white;
    border-color: var(--brand-purple);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.action-btn i {
    color: var(--brand-purple);
    transition: color 0.2s ease;
}

.action-btn:hover i {
    color: white;
}



/* Coach Selection Buttons */
.coach-selection-container {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.coach-selection-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.coach-selection-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    text-align: left;
}

.coach-selection-btn:hover {
    border-color: var(--brand-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.coach-selection-btn.sales-coach:hover {
    border-color: var(--info-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.coach-selection-btn.marketing-coach:hover {
    border-color: var(--success-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.coach-btn-icon {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.coach-selection-btn.sales-coach .coach-btn-icon {
    color: var(--info-blue);
}

.coach-selection-btn.marketing-coach .coach-btn-icon {
    color: var(--success-green);
}

.coach-btn-content {
    flex: 1;
}

.coach-btn-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.coach-btn-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
