/* ============================================================================
   Professional Training Documentation System
   Advanced Typography & Design System
   ============================================================================ */

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

:root {
    /* Color Palette - Brand Aligned */
    --primary-600: #00A6E8;
    --primary-700: #0088C9;
    --primary-50: #E6F7FF;
    --primary-100: #BAE7FF;

    --secondary-600: #0088C9;
    --secondary-700: #006BA0;

    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-primary: 'Manrope', 'Inter', -apple-system, system-ui, sans-serif;
    --font-secondary: 'Inter', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Courier New', monospace;

    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Layout */
    --sidebar-width: 280px;
    --header-height: 64px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Base Styles
   ============================================================================ */

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* ============================================================================
   Layout Container
   ============================================================================ */

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ============================================================================
   Sidebar
   ============================================================================ */

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-toggle-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--neutral-600);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 0.5rem;
    transition: var(--transition-fast);
}

.sidebar-toggle-mobile:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

/* ============================================================================
   Search
   ============================================================================ */

.sidebar-search {
    padding: var(--space-6);
    border-bottom: 1px solid var(--neutral-200);
    position: relative;
}

.sidebar-nav-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: var(--space-6);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    color: var(--neutral-400);
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-10);
    font-size: 0.875rem;
    font-family: var(--font-secondary);
    border: 1.5px solid var(--neutral-300);
    border-radius: 0.75rem;
    background: var(--neutral-50);
    color: var(--neutral-900);
    transition: all var(--transition-base);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-600);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-50);
}

#searchInput::placeholder {
    color: var(--neutral-400);
}

.clear-search-btn {
    position: absolute;
    right: var(--space-3);
    background: var(--neutral-300);
    color: var(--neutral-600);
    border: none;
    border-radius: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-search-btn:hover {
    background: var(--neutral-400);
    color: white;
}

.search-results {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: var(--space-6);
    right: var(--space-6);
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 200;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: var(--primary-50);
}

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

.search-result-doc {
    font-size: 0.6875rem;
    color: var(--primary-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-1);
}

.search-result-text {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--neutral-700);
}

/* ============================================================================
   Document Selector
   ============================================================================ */

.document-selector {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    border-bottom: 1px solid var(--neutral-200);
}

.doc-selector-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--neutral-50);
    border: 1.5px solid var(--neutral-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-align: left;
}

.doc-selector-btn:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-300);
    transform: translateY(-1px);
}

.doc-selector-btn.active {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.doc-icon {
    flex-shrink: 0;
}

.menu-category {
    margin-top: var(--space-2);
}

.menu-category-btn {
    display: flex;
    align-items: center;
    width: 100%;
    gap: var(--space-3);
    padding: var(--space-4);
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-align: left;
}

.menu-category-btn:hover {
    background: var(--neutral-100);
}

.menu-category-btn .chevron {
    margin-left: auto;
    transition: transform var(--transition-base);
}

.menu-category-btn.open .chevron {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    padding-left: var(--space-10);
    margin-top: var(--space-2);
}

.submenu.open {
    display: block;
}

.submenu .menu-category-btn {
    padding-left: var(--space-6);
}

.submenu .submenu {
    padding-left: var(--space-6);
}

.submenu-item {
    display: block;
    padding: var(--space-2) var(--space-4);
    color: var(--neutral-600);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding-left: var(--space-6);
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--neutral-400);
    border-radius: 50%;
}

.submenu-item:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
}

.submenu-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

.submenu-item.active::before {
    background: var(--primary-600);
}

/* 4th Level Menu Items - Specific Objections */
.submenu-item.level-4 {
    padding-left: var(--space-10);
    font-size: 0.8125rem;
    color: var(--neutral-500);
    margin-left: var(--space-4);
}

.submenu-item.level-4::before {
    width: 3px;
    height: 3px;
    background: var(--neutral-300);
    left: var(--space-6);
}

.submenu-item.level-4:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    padding-left: calc(var(--space-10) + var(--space-1));
}

.submenu-item.level-4:hover::before {
    background: var(--primary-500);
}

.submenu-item.level-4.active {
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 600;
    border-left: 2px solid var(--primary-600);
    margin-left: var(--space-3);
}

.submenu-item.level-4.active::before {
    background: var(--primary-600);
    width: 4px;
    height: 4px;
}

/* ============================================================================
   Page Navigator
   ============================================================================ */

.page-navigator {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

.navigator-loading {
    text-align: center;
    padding: var(--space-8);
    color: var(--neutral-400);
    font-size: 0.875rem;
}

.nav-page-item {
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-page-item:hover {
    background: var(--neutral-100);
}

.nav-page-item.active {
    background: var(--primary-50);
    border-left-color: var(--primary-600);
}

.nav-page-number {
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.nav-page-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
    line-height: 1.4;
}

.nav-page-subtitle {
    font-size: 0.8125rem;
    color: var(--neutral-600);
    line-height: 1.4;
}

/* ============================================================================
   Main Container
   ============================================================================ */

.main-container {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--neutral-200);
    padding: 0 var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

/* ============================================================================
   Breadcrumb
   ============================================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--neutral-600);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--neutral-900);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--neutral-300);
    margin: 0 var(--space-2);
}

/* ============================================================================
   Header Actions
   ============================================================================ */

.header-actions {
    display: flex;
    gap: var(--space-3);
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 0.5rem;
    color: var(--neutral-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--neutral-100);
    color: var(--neutral-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ============================================================================
   Content Area
   ============================================================================ */

.content-area {
    flex: 1;
    padding: var(--space-12);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-20);
    gap: var(--space-4);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--neutral-500);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================================================
   Page Content - Advanced Typography
   ============================================================================ */

.page-content {
    background: white;
    border-radius: 1rem;
    padding: var(--space-12);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.page-content h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1.2;
    margin: 0 0 var(--space-6) 0;
    letter-spacing: -0.02em;
}

.page-content h2 {
    font-family: var(--font-primary);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.3;
    margin: var(--space-10) 0 var(--space-5) 0;
    letter-spacing: -0.01em;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--neutral-200);
}

.page-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.4;
    margin: var(--space-8) 0 var(--space-4) 0;
}

.page-content h4 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.5;
    margin: var(--space-6) 0 var(--space-3) 0;
}

.page-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--neutral-700);
    margin: var(--space-4) 0;
}

.page-content strong {
    font-weight: 700;
    color: var(--neutral-900);
}

.page-content em {
    font-style: italic;
}

/* Lists with consistent styling */
.page-content ul,
.page-content ol {
    margin: var(--space-5) 0;
    padding-left: 0;
    list-style: none;
}

.page-content ul li,
.page-content ol li {
    position: relative;
    padding-left: var(--space-8);
    margin: var(--space-3) 0;
    line-height: 1.8;
    color: var(--neutral-700);
}

/* Unordered list bullets */
.page-content ul > li::before {
    content: "";
    position: absolute;
    left: var(--space-4);
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 50%;
}

/* Nested bullets */
.page-content ul ul > li::before {
    background: var(--secondary-600);
    width: 5px;
    height: 5px;
}

.page-content ul ul ul > li::before {
    background: var(--neutral-400);
    width: 4px;
    height: 4px;
}

/* Ordered list numbers */
.page-content ol {
    counter-reset: item;
}

.page-content ol > li {
    counter-increment: item;
}

.page-content ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: var(--space-2);
    font-weight: 700;
    color: var(--primary-600);
    font-family: var(--font-primary);
}

.page-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--neutral-100);
    color: var(--secondary-700);
    padding: 0.2em 0.4em;
    border-radius: 0.375rem;
    border: 1px solid var(--neutral-200);
    font-weight: 500;
}

.page-content pre {
    background: var(--neutral-900);
    color: var(--neutral-100);
    padding: var(--space-6);
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: var(--space-6) 0;
    border: 1px solid var(--neutral-700);
    box-shadow: var(--shadow-md);
}

.page-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.875rem;
    line-height: 1.7;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-600);
    padding: var(--space-5) var(--space-6);
    margin: var(--space-6) 0;
    background: var(--primary-50);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--neutral-800);
}

.page-content a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.page-content a:hover {
    border-bottom-color: var(--primary-600);
}

.page-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--neutral-200), var(--neutral-300), var(--neutral-200));
    margin: var(--space-10) 0;
}

.page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-6) 0;
    border: 1px solid var(--neutral-200);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.page-content th,
.page-content td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.page-content th {
    background: var(--neutral-50);
    font-weight: 700;
    color: var(--neutral-900);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-content td {
    color: var(--neutral-700);
}

.page-content tr:last-child td {
    border-bottom: none;
}

.page-content tr:hover td {
    background: var(--neutral-50);
}

/* Highlight for search results */
.highlight {
    background: linear-gradient(120deg, #fef08a 0%, #fde047 100%);
    padding: 0.2em 0.3em;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* ============================================================================
   Page Navigation
   ============================================================================ */

.page-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 2px solid var(--neutral-200);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: white;
    border: 1.5px solid var(--neutral-300);
    border-radius: 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 0.875rem;
    color: var(--neutral-600);
    font-weight: 600;
}

/* ============================================================================
   Scrollbar
   ============================================================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 300px;
    }

    .content-area {
        padding: var(--space-8);
    }

    .page-content {
        padding: var(--space-8);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle-mobile {
        display: block;
    }

    .main-container {
        margin-left: 0;
    }

    .content-area {
        padding: var(--space-6);
    }

    .page-content {
        padding: var(--space-6);
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }

    .page-navigation {
        flex-direction: column;
        gap: var(--space-4);
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    .sidebar,
    .main-header,
    .page-navigation {
        display: none;
    }

    .main-container {
        margin-left: 0;
    }

    .content-area {
        padding: 0;
    }

    .page-content {
        box-shadow: none;
        border: none;
    }
}

/* ============================================================================
   Custom Visual Elements & Components
   ============================================================================ */

/* Custom Icons (Checkmarks, Crosses, Bullets) */
.custom-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-right: var(--space-3);
    flex-shrink: 0;
}

.custom-icon.icon-check {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.custom-icon.icon-cross {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.custom-icon.icon-bullet {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* Price Tags */
.price-tag {
    display: inline-block;
    padding: 0.25em 0.6em;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 700;
    font-size: 1.05em;
    border-radius: 0.5rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
    font-family: var(--font-primary);
}

/* Time Info Boxes */
.time-info-box {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    font-weight: 600;
    border-radius: 0.75rem;
    border: 2px solid #60a5fa;
    margin: var(--space-2) 0;
    font-size: 0.95em;
}

/* Callout Boxes */
.callout {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    border-radius: 1rem;
    border: 2px solid;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

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

.callout-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.callout-content {
    flex: 1;
}

.callout-title {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.callout-text {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Callout Types */
.callout-note {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #3b82f6;
    color: #1e40af;
}

.callout-note .callout-title {
    color: #1e40af;
}

.callout-tip,
.callout-pro-tip {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #10b981;
    color: #065f46;
}

.callout-tip .callout-title,
.callout-pro-tip .callout-title {
    color: #065f46;
}

.callout-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #f59e0b;
    color: #92400e;
}

.callout-warning .callout-title {
    color: #92400e;
}

.callout-important,
.callout-absolute-rule {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
    color: #991b1b;
}

.callout-important .callout-title,
.callout-absolute-rule .callout-title {
    color: #991b1b;
}

.callout-remember {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-color: #a855f7;
    color: #6b21a8;
}

.callout-remember .callout-title {
    color: #6b21a8;
}

.callout-goal,
.callout-key-point {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #f97316;
    color: #9a3412;
}

.callout-goal .callout-title,
.callout-key-point .callout-title {
    color: #9a3412;
}

.callout-rule {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-color: #eab308;
    color: #713f12;
}

.callout-rule .callout-title {
    color: #713f12;
}

/* Enhanced List Items with Icons */
.page-content p:has(.custom-icon) {
    display: flex;
    align-items: flex-start;
    margin: var(--space-4) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--neutral-50);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-600);
}

/* Item Blocks - Clean styled items without bullets */
item-block {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    margin: var(--space-3) 0;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

item-block:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

item-block[type="success"] {
    border-left: 4px solid #10b981;
    background: linear-gradient(to right, #f0fdf4, white);
}

item-block[type="error"] {
    border-left: 4px solid #ef4444;
    background: linear-gradient(to right, #fef2f2, white);
}

item-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

item-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutral-800);
    font-weight: 500;
}

/* Quick Links for objection handling */
quick-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #1e40af;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1.5px solid #3b82f6;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

quick-link:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

/* Section Dividers */
.section-divider {
    margin: var(--space-16) 0;
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--neutral-300), transparent);
}

.section-divider-text {
    display: inline-block;
    padding: var(--space-2) var(--space-6);
    background: var(--surface);
    color: var(--neutral-500);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: calc(-1rem - 2px);
}

/* Info Boxes */
.info-box {
    padding: var(--space-6);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-left: 4px solid var(--primary-600);
    border-radius: 0.75rem;
    margin: var(--space-6) 0;
}

.info-box-title {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: var(--space-3);
}

.info-box-content {
    color: var(--neutral-700);
    line-height: 1.7;
}

/* Stats/Numbers Display */
.stat-box {
    display: inline-block;
    padding: var(--space-4) var(--space-6);
    background: white;
    border: 2px solid var(--primary-200);
    border-radius: 1rem;
    text-align: center;
    margin: var(--space-2);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    color: var(--primary-600);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-top: var(--space-2);
    font-weight: 600;
}

/* Process Steps */
.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.step-item {
    counter-increment: step;
    position: relative;
    padding-left: var(--space-16);
    margin: var(--space-8) 0;
}

.step-item::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .callout {
        padding: var(--space-4);
    }

    .callout-icon {
        font-size: 1.5rem;
    }

    .price-tag {
        font-size: 0.95em;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================================================
   AI Chat Assistant
   ============================================================================ */

/* Chat Toggle Button */
.ai-chat-toggle {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transition: all var(--transition-base);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.ai-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: var(--font-primary);
}

/* Chat Container */
.ai-chat-container {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 420px;
    height: 600px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(calc(100% + var(--space-8))) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
    z-index: 1001;
    border: 2px solid var(--primary-600);
}

.ai-chat-container.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    border-radius: 0.875rem 0.875rem 0 0;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.ai-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.ai-title-text {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}

.ai-subtitle-text {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.ai-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--neutral-50);
}

.ai-message {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    animation: slideInMessage 0.3s ease;
}

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

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

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ai-user-avatar {
    background: linear-gradient(135deg, var(--neutral-500), var(--neutral-600));
}

.ai-message-content {
    flex: 1;
    max-width: 80%;
}

.ai-message-text {
    background: white;
    padding: var(--space-4);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--neutral-800);
    box-shadow: var(--shadow-sm);
}

.ai-user-message .ai-message-text {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
}

.ai-message-text strong {
    font-weight: 700;
    color: var(--neutral-900);
}

.ai-user-message .ai-message-text strong {
    color: white;
}

.ai-message-text ul {
    margin: var(--space-3) 0;
    padding-left: var(--space-5);
}

.ai-message-text li {
    margin: var(--space-2) 0;
}

.ai-reference {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-700);
    padding: 0.15em 0.4em;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ai-reference:hover {
    background: rgba(79, 70, 229, 0.2);
    text-decoration: underline;
}

/* Page Links - Clickable section references */
.ai-page-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: 0.35em 0.75em;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875em;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
    margin: 0 0.25em;
    white-space: nowrap;
}

.ai-page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--primary-700), var(--secondary-700));
}

.ai-page-link:active {
    transform: translateY(0);
}

/* Welcome Message */
.ai-welcome .ai-message-text {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #3b82f6;
    color: #1e40af;
}

/* System Message */
.ai-system-message {
    justify-content: center;
}

.ai-system-message .ai-message-text {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    max-width: 100%;
    text-align: center;
    font-size: 0.875rem;
}

/* Loading Animation */
.ai-loading {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2);
}

.ai-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-600);
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

.ai-loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Chat Input */
.ai-chat-input-wrapper {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4);
    background: white;
    border-top: 1px solid var(--neutral-200);
    border-radius: 0 0 0.875rem 0.875rem;
}

.ai-chat-input {
    flex: 1;
    padding: var(--space-3);
    border: 1.5px solid var(--neutral-300);
    border-radius: 0.75rem;
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    resize: none;
    max-height: 120px;
    transition: var(--transition-fast);
}

.ai-chat-input:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.ai-chat-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.ai-chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-chat-container {
        width: calc(100vw - var(--space-8) * 2);
        height: calc(100vh - 120px);
        bottom: var(--space-6);
        right: var(--space-4);
    }

    .ai-chat-toggle {
        bottom: var(--space-6);
        right: var(--space-6);
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
}

/* Content Inner Wrapper for Better Containment */
.content-inner {
    overflow-x: auto;
    overflow-y: visible;
}

.content-inner > * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix list items with icons to display vertically */
.page-content p:has(.custom-icon) {
    display: flex;
    align-items: flex-start;
    margin: var(--space-3) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--neutral-50);
    border-radius: 0.5rem;
    border-left: 3px solid transparent;
}

/* Make sure lists stack vertically not horizontally */
.page-content ul,
.page-content ol {
    display: block;
    width: 100%;
}

.page-content li {
    display: block;
    width: 100%;
    margin: var(--space-3) 0;
}

/* Better table responsive behavior */
.page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content table tbody,
.page-content table thead,
.page-content table tr,
.page-content table th,
.page-content table td {
    white-space: nowrap;
}

/* Dialogue Blocks - Styled Speech/Quotes */
dialogue {
    display: block;
    padding: var(--space-4) var(--space-6);
    margin: var(--space-4) 0;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #3b82f6;
    border-radius: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e3a8a;
    font-style: italic;
    position: relative;
}

dialogue::before {
    content: '"';
    position: absolute;
    left: var(--space-3);
    top: -0.25rem;
    font-size: 3rem;
    color: #3b82f6;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Instruction Blocks - Bracketed Text */
instruction {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    margin: var(--space-2) 0;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 1.5px solid #fbbf24;
    font-style: italic;
}

/* Add spacing after paragraph groups */
.page-content p + p:has(dialogue) {
    margin-top: var(--space-6);
}

/* Question headers get extra spacing */
.page-content p:has(strong:contains("Question")) {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

/* Better paragraph spacing overall */
.page-content p {
    margin: var(--space-5) 0;
}

.page-content p:empty {
    margin: var(--space-3) 0;
}

/* ============================================================================
   Sticky Footer - Mandatory Call Flow Flowchart (Modern Glassmorphism)
   ============================================================================ */

.call-flow-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 166, 232, 0.2);
    box-shadow: 
        0 -8px 32px rgba(0, 166, 232, 0.12),
        0 -2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 900;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.call-flow-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 166, 232, 0.4) 20%,
        rgba(0, 166, 232, 0.6) 50%,
        rgba(0, 166, 232, 0.4) 80%,
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.call-flow-container {
    max-width: 100%;
    padding: var(--space-3) var(--space-6);
}

.call-flow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.call-flow-title {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.call-flow-toggle {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    border-radius: 0.375rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neutral-600);
    transition: var(--transition-fast);
}

.call-flow-toggle:hover {
    background: var(--neutral-200);
    transform: scale(1.05);
}

.call-flow-steps {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    padding: var(--space-1) 0;
    gap: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-300) transparent;
}

.call-flow-steps::-webkit-scrollbar {
    height: 4px;
}

.call-flow-steps::-webkit-scrollbar-track {
    background: transparent;
}

.call-flow-steps::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: 2px;
}

.call-flow-steps::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* Chevron Step Design - Modern 3D with Glow Effects */
.flow-step {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-3);
    padding-right: var(--space-5);
    min-width: 90px;
    max-width: 150px;
    height: 48px;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    margin-left: -13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInFlow 0.5s ease-out backwards;
}

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

.flow-step:nth-child(1) { animation-delay: 0.05s; }
.flow-step:nth-child(2) { animation-delay: 0.1s; }
.flow-step:nth-child(3) { animation-delay: 0.15s; }
.flow-step:nth-child(4) { animation-delay: 0.2s; }
.flow-step:nth-child(5) { animation-delay: 0.25s; }
.flow-step:nth-child(6) { animation-delay: 0.3s; }
.flow-step:nth-child(7) { animation-delay: 0.35s; }
.flow-step:nth-child(8) { animation-delay: 0.4s; }
.flow-step:nth-child(9) { animation-delay: 0.45s; }
.flow-step:nth-child(10) { animation-delay: 0.5s; }

.flow-step:first-child {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    margin-left: 0;
    padding-left: var(--space-3);
}

.flow-step:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
    padding-right: var(--space-3);
}

.flow-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    clip-path: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.flow-step:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.15) saturate(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.flow-step:hover::after {
    opacity: 1;
}

.flow-step:active {
    transform: translateY(-2px) scale(1.02);
}

/* Stunning Color Progression with Glow Effects */
.flow-step:nth-of-type(1) {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.flow-step:nth-of-type(1):hover {
    box-shadow: 
        0 6px 20px rgba(37, 99, 235, 0.5),
        0 0 30px rgba(37, 99, 235, 0.3);
}

.flow-step:nth-of-type(2) {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.flow-step:nth-of-type(2):hover {
    box-shadow: 
        0 6px 20px rgba(6, 182, 212, 0.5),
        0 0 30px rgba(6, 182, 212, 0.3);
}

.flow-step:nth-of-type(3) {
    background: linear-gradient(135deg, #047857 0%, #10b981 50%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.flow-step:nth-of-type(3):hover {
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.5),
        0 0 30px rgba(16, 185, 129, 0.3);
}

.flow-step:nth-of-type(4) {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.flow-step:nth-of-type(4):hover {
    box-shadow: 
        0 6px 20px rgba(34, 197, 94, 0.5),
        0 0 30px rgba(34, 197, 94, 0.3);
}

.flow-step:nth-of-type(5) {
    background: linear-gradient(135deg, #4d7c0f 0%, #84cc16 50%, #65a30d 100%);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.flow-step:nth-of-type(5):hover {
    box-shadow: 
        0 6px 20px rgba(132, 204, 22, 0.5),
        0 0 30px rgba(132, 204, 22, 0.3);
}

.flow-step:nth-of-type(6) {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.flow-step:nth-of-type(6):hover {
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.5),
        0 0 30px rgba(245, 158, 11, 0.3);
}

.flow-step:nth-of-type(7) {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 50%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.flow-step:nth-of-type(7):hover {
    box-shadow: 
        0 6px 20px rgba(249, 115, 22, 0.5),
        0 0 30px rgba(249, 115, 22, 0.3);
}

.flow-step:nth-of-type(8) {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.flow-step:nth-of-type(8):hover {
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.5),
        0 0 30px rgba(239, 68, 68, 0.3);
}

.flow-step:nth-of-type(9) {
    background: linear-gradient(135deg, #a21caf 0%, #d946ef 50%, #c026d3 100%);
    box-shadow: 0 4px 12px rgba(217, 70, 239, 0.3);
}

.flow-step:nth-of-type(9):hover {
    box-shadow: 
        0 6px 20px rgba(217, 70, 239, 0.5),
        0 0 30px rgba(217, 70, 239, 0.3);
}

.flow-step:nth-of-type(10) {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 50%, #e11d48 100%);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.flow-step:nth-of-type(10):hover {
    box-shadow: 
        0 6px 20px rgba(244, 63, 94, 0.5),
        0 0 30px rgba(244, 63, 94, 0.3);
}

.flow-step:nth-child(11) {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.flow-step:nth-child(11):hover {
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.5),
        0 0 30px rgba(59, 130, 246, 0.3);
}

.flow-step:nth-child(12) {
    background: linear-gradient(135deg, #0891b2 0%, #14b8a6 50%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.flow-step:nth-child(12):hover {
    box-shadow: 
        0 6px 20px rgba(20, 184, 166, 0.5),
        0 0 30px rgba(20, 184, 166, 0.3);
}

.flow-step:nth-child(13) {
    background: linear-gradient(135deg, #059669 0%, #34d399 50%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.flow-step:nth-child(13):hover {
    box-shadow: 
        0 6px 20px rgba(52, 211, 153, 0.5),
        0 0 30px rgba(52, 211, 153, 0.3);
}

.flow-step:nth-child(14) {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 50%, #facc15 100%);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.flow-step:nth-child(14):hover {
    box-shadow: 
        0 6px 20px rgba(234, 179, 8, 0.5),
        0 0 30px rgba(234, 179, 8, 0.3);
}

.flow-step:nth-child(15) {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 50%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
}

.flow-step:nth-child(15):hover {
    box-shadow: 
        0 6px 20px rgba(248, 113, 113, 0.5),
        0 0 30px rgba(248, 113, 113, 0.3);
}

.flow-step:nth-child(16) {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.flow-step:nth-child(16):hover {
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3);
}

.flow-step:nth-child(17) {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 50%, #e11d48 100%);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.flow-step:nth-child(17):hover {
    box-shadow: 
        0 6px 20px rgba(244, 63, 94, 0.5),
        0 0 30px rgba(244, 63, 94, 0.3);
}

.step-number {
    display: none !important; /* Numbers completely hidden from call flow */
}

.flow-step:first-child .step-number {
    left: var(--space-2);
}

.step-label {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.flow-arrow {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .call-flow-footer {
        left: 0;
    }
    
    .call-flow-container {
        padding: var(--space-2) var(--space-3);
    }
    
    .call-flow-title {
        font-size: 0.6875rem;
    }
    
    .flow-step {
        min-width: 100px;
        height: 42px;
        padding: var(--space-2) var(--space-4);
        padding-right: var(--space-6);
        font-size: 0.6875rem;
    }
    
    .flow-step:first-child {
        padding-left: var(--space-3);
    }
    
    .flow-step:last-child {
        padding-right: var(--space-3);
    }
    
    .step-number {
        width: 16px;
        height: 16px;
        font-size: 0.625rem;
        left: 6px;
    }
    
    .step-label {
        font-size: 0.6875rem;
    }
}

/* Add bottom padding to main content to prevent footer overlap */
.content-area {
    padding-bottom: 100px;
}

@media (max-width: 768px) {
    .content-area {
        padding-bottom: 90px;
    }
}

/* Improved sidebar menu spacing */
.sidebar-nav-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: var(--space-6);
}

.menu-category {
    margin-top: var(--space-1);
}

.menu-category-btn {
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-1);
}

.submenu {
    padding-left: var(--space-8);
    margin-top: var(--space-1);
    margin-bottom: var(--space-2);
}

.submenu-item {
    padding: var(--space-2) var(--space-3);
    margin: var(--space-1) 0;
}
