/* RevCycle.io - Exact Copy Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(120deg, #f6f0ff 0%, #eef6ff 45%, #fbf0ff 100%);
    color: #1e293b;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
}

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

/* Top Header */
.top-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.logo-image {
    height: 48px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}
.header-center {
    flex: 1;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
    margin-left: 0;
}

/* Search bar separator removed */

.search-bar i.fa-search {
    color: #64748b;
    font-size: 14px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #1e293b;
}

.search-bar input::placeholder {
    color: #64748b;
}

.search-bar i.fa-times {
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.search-shortcut {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right i {
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.header-right i:hover {
    color: #1e293b;
}

/* Main Navigation */
.main-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
}

.nav-tabs {
    display: flex;
    gap: 32px;
}

.nav-tab {
    padding: 16px 0;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s;
}

.nav-tab:hover {
    color: #1e293b;
}

.nav-tab.active {
    color: #1e293b;
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #10b981;
}

/* Main Layout */
.main-layout {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: transparent;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    padding: 32px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-item:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #0f172a;
    transform: translateX(2px);
}

.sidebar-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.18));
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
}

.sidebar-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.sidebar-icon svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-item.active .sidebar-icon,
.sidebar-item:hover .sidebar-icon {
    color: #4338ca;
}

.sidebar-label {
    flex: 1;
    white-space: nowrap;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.sidebar-support-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.32);
}

.sidebar-support-btn svg {
    width: 22px;
    height: 22px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Main Content */
.main-content {
    flex: 1;
    padding: 28px 72px 48px 48px;
    background: radial-gradient(circle at 15% 20%, rgba(236, 233, 254, 0.75), transparent 55%),
                radial-gradient(circle at 80% 10%, rgba(219, 241, 255, 0.72), transparent 55%),
                radial-gradient(circle at 85% 85%, rgba(246, 225, 255, 0.75), transparent 60%),
                linear-gradient(120deg, #f6f0ff 0%, #eef6ff 45%, #fbf0ff 100%);
    min-height: calc(100vh - 140px);
}

.tab-content {
    max-width: 1120px;
    width: 100%;
    margin: 0;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.greeting {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 16px;
}

.description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* AI Buddy Screen */
.ai-buddy-screen {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.buddy-hero-card {
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 24px 60px rgba(59, 130, 246, 0.18);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.buddy-hero-card::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.22), transparent 70%);
    pointer-events: none;
}

.buddy-hero-header {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.buddy-hero-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.buddy-hero-header p {
    font-size: 15px;
    color: #312e81;
    line-height: 1.6;
}

.buddy-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.16);
    color: #9d174d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    width: fit-content;
}

.buddy-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.buddy-ghost,
.buddy-primary {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buddy-ghost {
    background: rgba(255, 255, 255, 0.6);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.buddy-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.2);
}

.buddy-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 60%, #22d3ee 100%);
    color: white;
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.3);
}

.buddy-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(124, 58, 237, 0.35);
}

.buddy-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.buddy-stat {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.buddy-stat .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4c1d95;
}

.buddy-stat .value {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
}

.stat-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.stat-chip.success {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.stat-chip.warning {
    background: rgba(249, 115, 22, 0.18);
    color: #c2410c;
}

.stat-note {
    font-size: 12px;
    color: #4c1d95;
}

.forecast-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0;
}

.forecast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #1f2937;
    background: rgba(240, 245, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 6px 12px;
}
.buddy-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.12);
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #4c1d95;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(99, 102, 241, 0.2));
}

.summary-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.summary-text p {
    font-size: 12px;
    color: #4b5563;
    margin: 0;
}

.buddy-live-feed {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.buddy-live-panel {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.badge.pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.18);
    color: #0f766e;
    font-size: 11px;
    font-weight: 600;
}

.buddy-update {
    background: rgba(247, 250, 255, 0.9);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.update-pill {
    font-size: 12px;
    font-weight: 600;
    color: #312e81;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-block;
    width: fit-content;
}

.update-pill.warm {
    background: rgba(250, 204, 21, 0.2);
    color: #a16207;
}

.update-pill.cool {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.update-pill.glow {
    background: rgba(232, 121, 249, 0.22);
    color: #86198f;
}

.buddy-update p {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .buddy-hero-card {
        padding: 24px;
    }

    .buddy-stat-grid {
        grid-template-columns: 1fr;
    }
}

.buddy-minimal {
    max-width: 720px;
    margin: 0;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

.buddy-hub {
    position: relative;
    width: 100%;
}

.buddy-hub-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    transition: opacity 0.3s ease;
}

.buddy-hub[data-connected="false"] .buddy-hub-body {
    opacity: 0.35;
    pointer-events: none;
}

.buddy-hub[data-connected="true"] .buddy-hub-body {
    opacity: 1;
    pointer-events: auto;
}

.buddy-connect-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px 14px 88px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    margin-top: 16px;
}

.buddy-connect-toggle:hover,
.buddy-connect-toggle:focus-visible {
    box-shadow: 0 20px 44px rgba(74, 58, 255, 0.18);
}

.buddy-connect-toggle .toggle-track {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    transform: translateY(-50%);
    transition: background 0.25s ease;
    pointer-events: none;
}

.buddy-connect-toggle .toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, background 0.25s ease;
    transform: translateX(0);
    pointer-events: none;
}

.buddy-connect-toggle .toggle-label {
    pointer-events: none;
}

.buddy-connect-toggle.is-connected {
    background: linear-gradient(135deg, #4c1d95 0%, #0ea5e9 65%, #10b981 100%);
    color: #f8fafc;
    border-color: transparent;
    box-shadow: 0 20px 48px rgba(14, 165, 233, 0.32);
}

.buddy-connect-toggle.is-connected .toggle-track {
    background: rgba(255, 255, 255, 0.45);
}

.buddy-connect-toggle.is-connected .toggle-thumb {
    transform: translateX(22px);
    background: #ffffff;
}

.buddy-connect-toggle.is-connected .toggle-label {
    color: #f8fafc;
}

.buddy-minimal-header {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.buddy-minimal-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

.buddy-minimal-header p {
    font-size: 15px;
    color: #4b5563;
    max-width: 520px;
    margin: 0;
}

.buddy-query {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buddy-query-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 16px 38px rgba(79, 70, 229, 0.16);
}

.buddy-query-shell > i {
    color: #6366f1;
    font-size: 18px;
}

.buddy-query-shell input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #0f172a;
}

.buddy-query-shell input::placeholder {
    color: #64748b;
}

.buddy-suggestion-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}

.buddy-suggestion-row span {
    font-weight: 600;
    color: #334155;
}

.buddy-suggestion {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    background: #eef2ff;
    color: #312e81;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.buddy-suggestion:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
    background: #e0e7ff;
}

.buddy-query-submit {
    border: none;
    border-radius: 999px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buddy-query-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.32);
}

.buddy-query-submit i {
    color: #ffffff;
}

.buddy-query-hint {
    text-align: center;
    font-size: 13px;
    color: #475569;
}

.buddy-query-hint span {
    color: #7c3aed;
    font-weight: 600;
}

.buddy-response-card {
    width: 100%;
}

.buddy-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
}

.buddy-setup-actions {
    margin-top: 8px;
}

.buddy-action-btn {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f1d47;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buddy-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.16);
}

@media (max-width: 768px) {
    .buddy-minimal {
        padding: 32px 0;
        gap: 24px;
    }

    .buddy-query-shell {
        flex-direction: column;
        align-items: stretch;
    }

    .buddy-query-submit {
        align-self: flex-end;
    }
}

/* Meetings Content */
.meetings-header {
    margin-bottom: 32px;
}

.meetings-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.meetings-header p {
    font-size: 14px;
    color: #6b7280;
}

/* Integrations */
.integrations-screen {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.integrations-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.integrations-header p {
    font-size: 14px;
    color: #6b7280;
    max-width: 520px;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.integration-card {
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 65%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%),
                linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.08));
    border-radius: 26px;
    padding: 24px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 18px 48px rgba(76, 29, 149, 0.12);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 190px;
}

.integration-card.zoom {
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 65%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%),
                linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(16, 185, 129, 0.08));
    border-color: rgba(16, 185, 129, 0.25);
}

.integration-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.integration-copy {
    flex: 1;
}

.integration-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b21b6;
    font-size: 20px;
}

.integration-card.zoom .integration-icon {
    background: rgba(20, 184, 166, 0.15);
    color: #0f766e;
}

.integration-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f1d47;
    margin-bottom: 4px;
}

.integration-header p {
    font-size: 12px;
    color: #5146a3;
    line-height: 1.5;
}

.integration-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.integration-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.integration-help {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.integration-help-card {
    flex: 1;
    min-width: 280px;
    padding: 20px 24px;
    border-radius: 20px;
    border: 1px dashed rgba(124, 58, 237, 0.28);
    background: rgba(248, 250, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.integration-help-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #312e81;
    margin-bottom: 6px;
}

.integration-help-card p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 14px;
}

.integration-help-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #7c3aed, #22d3ee);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.integration-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.28);
}

.integration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: #5b21b6;
}

.integration-card.zoom .integration-badge {
    background: rgba(20, 184, 166, 0.1);
    color: #0f766e;
}

.integration-badge.neutral {
    background: rgba(148, 163, 184, 0.16);
    color: #4b5563;
}

.integration-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 60%, #22d3ee 100%);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.integration-card.zoom .integration-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 70%, #34d399 100%);
}

.integration-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.25);
}

/* Error Banner */
.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.error-banner span {
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

/* Tech Stack */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.tech-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.tech-icon {
    width: 48px;
    height: 48px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 24px;
}

.tech-content {
    flex: 1;
}

.tech-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.tech-content p {
    font-size: 14px;
    color: #64748b;
}

.tech-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tech-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.tech-status.pending {
    background: #fef3c7;
    color: #d97706;
}

/* Webhook Status */
.webhook-status {
    margin-bottom: 32px;
}

.webhook-status h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #e2e8f0;
}

.status-card.connected {
    border-left-color: #10b981;
}

.status-card.disconnected {
    border-left-color: #ef4444;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.status-card.connected .status-icon {
    background: #dcfce7;
    color: #16a34a;
}

.status-card.disconnected .status-icon {
    background: #fef2f2;
    color: #dc2626;
}

.status-info {
    flex: 1;
}

.status-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.status-info p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.inactive {
    background: #fef2f2;
    color: #dc2626;
}

/* Meeting Records */
.meeting-records {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(237, 233, 254, 0.86));
    border-radius: 32px;
    padding: 32px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 22px 60px rgba(76, 29, 149, 0.09);
}

.meeting-records h2 {
    font-size: 17px;
    font-weight: 600;
    color: #312e81;
    margin-bottom: 20px;
}

.meeting-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.meeting-record {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 239, 255, 0.9));
    border-radius: 24px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    box-shadow: 0 22px 48px rgba(88, 28, 135, 0.13);
}

.meeting-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f1d47;
    margin-bottom: 6px;
}

.meeting-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.meeting-stage {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-weight: 600;
}

.meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    color: #6b74a5;
}

.meeting-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meeting-meta i {
    color: #7c3aed;
}

.meeting-extra {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.extra-block {
    background: rgba(124, 58, 237, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
}

.extra-block .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.extra-block .value {
    font-size: 12px;
    color: #1f1d47;
    font-weight: 500;
}

.meeting-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.meeting-insights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.insight-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-weight: 500;
}

.insight-chip.positive {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.insight-chip.tasks {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.insight-chip.summary {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.meeting-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ghost-btn,
.primary-btn {
    border: none;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.6);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.primary-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 60%, #22d3ee 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(99, 102, 241, 0.3);
}

.btn-download,
.btn-view {
    border: none;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download {
    background: linear-gradient(135deg, #22c55e 0%, #0ea5e9 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

.btn-view {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

@media (max-width: 960px) {
    .meeting-record {
        grid-template-columns: 1fr;
    }

    .meeting-actions {
        align-items: flex-start;
    }

    .meeting-buttons {
        justify-content: flex-start;
    }
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #64748b;
}

/* Made in Bolt Badge */
.bolt-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 20px;
    padding: 8px 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bolt-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #10b981 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.bolt-badge span {
    font-size: 12px;
    color: #1e293b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .content-card {
        padding: 24px;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .google-meet-card {
        flex-direction: column;
        text-align: center;
    }
    
    .header-center {
        display: none;
    }
    
    .nav-tabs {
        gap: 16px;
        overflow-x: auto;
    }
}

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

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

.tab-content {
    animation: fadeIn 0.3s ease-out;
}

/* Focus States */
button:focus,
input:focus,
.dropdown-field:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Hover Effects */
.sidebar-item:hover .switch {
    background: #f1f5f9;
}

.toggle-switch:hover {
    background: #cbd5e1;
}

/* Active States */
.nav-tab.active {
    position: relative;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #10b981;
    border-radius: 1px;
}

/* User Profile */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: #c7d2fe;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
    border: 1px solid #e2e8f0;
}

.user-menu.show {
    display: block;
}

.user-info {
    padding: 8px 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.user-email {
    font-size: 12px;
    color: #64748b;
}

.user-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.user-menu-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.user-menu-item i {
    width: 16px;
    text-align: center;
}

/* Quick Learn Styles */
.quick-learn-screen {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.quick-hero-card {
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(14, 165, 233, 0.15));
    border: 1px solid rgba(129, 140, 248, 0.4);
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.18);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quick-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
}

.quick-hero-copy h1 {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
}

.quick-hero-copy p {
    font-size: 14px;
    color: #312e81;
    line-height: 1.6;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.18);
    color: #9d174d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    width: fit-content;
}

.quick-search-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 14px 36px rgba(79, 70, 229, 0.18);
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 18px 40px rgba(99, 102, 241, 0.25);
}

.search-icon {
    color: #6b7280;
    font-size: 18px;
    margin-right: 12px;
}

.quick-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #111827;
    background: transparent;
    font-family: inherit;
}

.quick-search-input::placeholder {
    color: #6366f1;
    font-weight: 500;
}

.search-submit-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    color: white;
    border: none;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-left: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(90, 103, 216, 0.35);
}

.quick-helper-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.helper-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

.helper-pill.highlight {
    background: rgba(124, 58, 237, 0.2);
    color: #4338ca;
}

.quick-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.28);
    font-size: 12px;
    font-weight: 600;
    color: #312e81;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.22);
}

.suggestion-chip i {
    font-size: 14px;
}

.quick-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.quick-panel {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 44px rgba(59, 130, 246, 0.14);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f1d47;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-link {
    border: none;
    background: rgba(124, 58, 237, 0.14);
    color: #5b21b6;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #334155;
}

.quick-log {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quick-log li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(236, 233, 254, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.16);
}

.quick-log .title {
    font-size: 13px;
    font-weight: 600;
    color: #312e81;
}

.quick-log .meta {
    font-size: 11px;
    color: #475569;
}

.boost-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.boost-card {
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(221, 214, 254, 0.35), rgba(191, 219, 254, 0.25));
    border: 1px solid rgba(129, 140, 248, 0.25);
    color: #312e81;
    font-size: 12px;
    line-height: 1.5;
}

.boost-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5b21b6;
    margin-bottom: 6px;
}

.quick-response-card {
    padding: 0;
}

.analytics-screen {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.analytics-hero-card {
    padding: 32px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(236, 72, 153, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 26px 64px rgba(79, 70, 229, 0.2);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.analytics-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
}

.analytics-hero-copy h1 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.analytics-hero-copy p {
    font-size: 14px;
    color: #1f1d47;
    line-height: 1.6;
}

.analytics-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.18);
    color: #a21caf;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    width: fit-content;
}

.analytics-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.analytics-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.analytics-primary {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytics-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.36);
}

.analytics-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.metric-card {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 44px rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4c1d95;
    font-weight: 600;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.metric-sub {
    font-size: 12px;
    color: #475569;
}

.analytics-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.analytics-panel {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 52px rgba(79, 70, 229, 0.16);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.analytics-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1f1d47;
}

.trend-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trend-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #334155;
    background: rgba(226, 232, 240, 0.24);
    border-radius: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.5);
}

.trend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.trend-chip.up {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.trend-chip.neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.trend-chip.down {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.spotlight-card {
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(221, 214, 254, 0.35), rgba(191, 219, 254, 0.25));
    border: 1px solid rgba(129, 140, 248, 0.28);
    color: #312e81;
    font-size: 12px;
    line-height: 1.5;
}

.spotlight-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5b21b6;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .analytics-hero-card {
        padding: 24px;
    }

    .analytics-metric-grid,
    .analytics-panels {
        grid-template-columns: 1fr;
    }
}

/* AI Response Container */
.ai-response-container {
    background: linear-gradient(135deg, rgba(221, 214, 254, 0.55), rgba(191, 219, 254, 0.55));
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 28px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(99, 102, 241, 0.2);
    animation: slideDown 0.3s ease-out;
}

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

.ai-response-header {
    background: linear-gradient(135deg, #7c3aed 0%, #22d3ee 100%);
    color: white;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ai-response-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.close-response-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-response-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-response-content {
    padding: 24px;
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #1f1d47;
}

.ai-response-actions {
    padding: 16px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.65);
}

.response-action-btn {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #4338ca;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.response-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18);
}

/* Quick Suggestions */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Company Status Styles */
.company-status {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.company-info h5 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.status-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.status-item strong {
    color: #374151;
    font-weight: 600;
}

.stage-info {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stage-info p {
    margin: 8px 0;
    color: #4b5563;
}

/* Responsive Design for Quick Learn */
@media (max-width: 768px) {
    .quick-hero-card {
        padding: 24px;
    }

    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .status-details {
        grid-template-columns: 1fr;
    }

    .search-submit-btn {
        margin-left: 0;
        align-self: flex-end;
    }

    .quick-panels {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner Styles */
.loading-response {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    margin-bottom: 16px;
}

.loading-spinner i {
    font-size: 24px;
    color: #f97316;
}

.loading-response p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Response Content Styles */
.deal-list, .contact-list {
    margin-top: 16px;
}

.deal-item, .contact-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.contact-item.urgent {
    border-color: #f97316;
    background: #fef3e2;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.insight-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.insight-card h5 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-weight: 600;
}

.forecast-summary {
    margin-top: 16px;
}

.forecast-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.updated-insights {
    margin-top: 16px;
}

.updated-insights ul {
    margin-top: 12px;
    padding-left: 20px;
}

.updated-insights li {
    margin-bottom: 6px;
}

/* Deal Summary Styles */
.deal-summary {
    margin-top: 16px;
}

.summary-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.summary-item strong {
    color: #1e293b;
    font-weight: 600;
}

/* AI Buddy intent response formatting */
.buddy-intent-response {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buddy-intent-response .intent-summary {
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
}

.intent-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.intent-metrics li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.intent-metrics li span {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.intent-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intent-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.intent-item-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.intent-item-detail {
    font-size: 12px;
    color: #475569;
}

.intent-meta {
    font-size: 11px;
    color: #94a3b8;
}
