/* Howdy Chat Custom Styles - Stripe Inspired Design */

/* Global Styles and Typography */
:root {
    --primary: #E0458B;
    --primary-dark: #A92F66;
    --primary-light: #C33072;
    --secondary: #000000;
    --accent: #00D4FF;
    --success: #32D583;
    --warning: #FFC53D;
    --danger: #FF4242;
    --light-gray: #f7f9fc;
    --border-color: #e9ecef;
    --text-primary: #000;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --button-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */
    --font-size-6xl: 3.75rem;    /* 60px */
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    --space-4xl: 5rem;     /* 80px */
    --space-5xl: 6rem;     /* 96px */
}

:root, [data-bs-theme=light] {
--bs-blue: #0d6efd;
--bs-indigo: #6610f2;
--bs-purple: #6f42c1;
--bs-pink: #d63384;
--bs-red: #dc3545;
--bs-orange: #fd7e14;
--bs-yellow: #ffc107;
--bs-green: #198754;
--bs-teal: #20c997;
--bs-cyan: #0dcaf0;
--bs-black: #000;
--bs-white: #fff;
--bs-gray: #6c757d;
--bs-gray-dark: #343a40;
--bs-gray-100: #f8f9fa;
--bs-gray-200: #e9ecef;
--bs-gray-300: #dee2e6;
--bs-gray-400: #ced4da;
--bs-gray-500: #adb5bd;
--bs-gray-600: #6c757d;
--bs-gray-700: #495057;
--bs-gray-800: #343a40;
--bs-gray-900: #212529;
--bs-primary: #E0458B;
--bs-secondary: #6c757d;
--bs-success: #198754;
--bs-info: #0dcaf0;
--bs-warning: #ffc107;
--bs-danger: #dc3545;
--bs-light: #f8f9fa;
--bs-dark: #212529;
--bs-primary-rgb: 224, 69, 139;
--bs-secondary-rgb: 0, 0, 0;
--bs-success-rgb: 25, 135, 84;
--bs-info-rgb: 13, 202, 240;
--bs-warning-rgb: 255, 193, 7;
--bs-danger-rgb: 220, 53, 69;
--bs-light-rgb: 248, 249, 250;
--bs-dark-rgb: 33, 37, 41;
--bs-primary-text-emphasis: #052c65;
--bs-secondary-text-emphasis: #2b2f32;
--bs-success-text-emphasis: #0a3622;
--bs-info-text-emphasis: #055160;
--bs-warning-text-emphasis: #664d03;
--bs-danger-text-emphasis: #58151c;
--bs-light-text-emphasis: #495057;
--bs-dark-text-emphasis: #495057;
--bs-primary-bg-subtle: #cfe2ff;
--bs-secondary-bg-subtle: #e2e3e5;
--bs-success-bg-subtle: #d1e7dd;
--bs-info-bg-subtle: #cff4fc;
--bs-warning-bg-subtle: #fff3cd;
--bs-danger-bg-subtle: #f8d7da;
--bs-light-bg-subtle: #fcfcfd;
--bs-dark-bg-subtle: #ced4da;
--bs-primary-border-subtle: #9ec5fe;
--bs-secondary-border-subtle: #c4c8cb;
--bs-success-border-subtle: #a3cfbb;
--bs-info-border-subtle: #9eeaf9;
--bs-warning-border-subtle: #ffe69c;
--bs-danger-border-subtle: #f1aeb5;
--bs-light-border-subtle: #e9ecef;
--bs-dark-border-subtle: #adb5bd;
--bs-white-rgb: 255, 255, 255;
--bs-black-rgb: 0, 0, 0;
--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
--bs-body-font-family: var(--bs-font-sans-serif);
--bs-body-font-size: 1rem;
--bs-body-font-weight: 400;
--bs-body-line-height: 1.5;
--bs-body-color: #212529;
--bs-body-color-rgb: 33, 37, 41;
--bs-body-bg: #fff;
--bs-body-bg-rgb: 255, 255, 255;
--bs-emphasis-color: #000;
--bs-emphasis-color-rgb: 0, 0, 0;
--bs-secondary-color: rgba(33, 37, 41, 0.75);
--bs-secondary-color-rgb: 33, 37, 41;
--bs-secondary-bg: #e9ecef;
--bs-secondary-bg-rgb: 233, 236, 239;
--bs-tertiary-color: rgba(33, 37, 41, 0.5);
--bs-tertiary-color-rgb: 33, 37, 41;
--bs-tertiary-bg: #f8f9fa;
--bs-tertiary-bg-rgb: 248, 249, 250;
--bs-heading-color: inherit;
--bs-link-color: #0d6efd;
--bs-link-color-rgb: 13, 110, 253;
--bs-link-decoration: underline;
--bs-link-hover-color: #0a58ca;
--bs-link-hover-color-rgb: 10, 88, 202;
--bs-code-color: #d63384;
--bs-highlight-color: #212529;
--bs-highlight-bg: #fff3cd;
--bs-border-width: 1px;
--bs-border-style: solid;
--bs-border-color: #dee2e6;
--bs-border-color-translucent: rgba(0, 0, 0, 0.175);
--bs-border-radius: 0.375rem;
--bs-border-radius-sm: 0.25rem;
--bs-border-radius-lg: 0.5rem;
--bs-border-radius-xl: 1rem;
--bs-border-radius-xxl: 2rem;
--bs-border-radius-2xl: var(--bs-border-radius-xxl);
--bs-border-radius-pill: 50rem;
--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
--bs-focus-ring-width: 0.25rem;
--bs-focus-ring-opacity: 0.25;
--bs-focus-ring-color: rgba(13, 110, 253, 0.25);
--bs-form-valid-color: #198754;
--bs-form-valid-border-color: #198754;
--bs-form-invalid-color: #dc3545;
--bs-form-invalid-border-color: #dc3545;
}

/* Sticky Footer Setup - Start */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: #fff;
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    min-height: 100vh;
}

.container-fluid.px-0 {
    flex: 1 0 auto; /* This will push the footer down */
}

.footer {
    flex-shrink: 0; /* Prevent the footer from shrinking */
    margin-top: 0 !important; /* Override the existing margin */
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

/* Footer links styling */
.footer-links {
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.8rem;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-divider {
    color: var(--border-color);
    margin: 0 0.5rem;
    font-size: 0.8rem;
}
/* Sticky Footer Setup - End */

/* Typography System */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
}

/* Heading Scale */
h1, .h1 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-xl);
}

h2, .h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
}

h3, .h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

h4, .h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
}

h5, .h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

h6, .h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
}

/* Display classes for larger text */
.display-1 {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
}

.display-2 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
}

/* Text utilities */
.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Paragraph spacing */
p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-normal);
}

p:last-child {
    margin-bottom: 0;
}

/* Override Bootstrap primary color to use Howdy brand color */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-gray {
    background: rgb(246, 249, 252);
}

.text-primary {
    color: var(--primary) !important;
}
/* Navbar Styling */
.navbar {
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    position: relative;
    z-index: 1030; /* Higher z-index for the navbar */
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Fix for dropdown menus to appear above other elements */
.dropdown-menu {
    z-index: 1031; /* Higher than navbar to ensure proper layering */
}

/* Card Styling - Angular Containers */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* Button Styling - 3D Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    height: 45px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    transform: translateY(-4px);
    margin-bottom: 4px; /* Space for the 3D effect */
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

/* Override padding classes to maintain fixed height */
.btn.py-2, .btn.py-3 {
    height: 45px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 0 0 var(--primary-dark);
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 0 0 var(--primary-dark);
}

/* Primary button styling with brand colors */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

.btn-primary:hover, .btn-primary:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 5px 0 0 var(--primary-dark);
}

.btn-primary:active {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 0 0 var(--primary-dark);
}

/* Dark button styling - uses primary color for consistency */
.btn-dark {
    background-color: var(--primary);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

.btn-dark:hover, .btn-dark:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 5px 0 0 var(--primary-dark);
    transform: translateY(-5px);
}

.btn-dark:active {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 0 0 var(--primary-dark);
    transform: translateY(2px);
}

/* Secondary button */
.btn-secondary {
    background-color: white;
    border-color: var(--primary);
    color: black;
    box-shadow: 0 5px 0 0 var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: white;
    border-color: var(--primary);
    color: black;
    box-shadow: 0 5px 0 0 var(--primary);
    transform: translateY(-5px);
}

.btn-secondary:active {
    background-color: white;
    border-color: var(--primary);
    color: black;
    box-shadow: 0 2px 0 0 var(--primary);
    transform: translateY(2px);
}

.btn-secondary.btn-secondary {
    background-color: white;
    border-color: var(--primary);
    color: black;
    box-shadow: 0 5px 0 0 var(--primary);
}

.btn-secondary.btn-secondary:hover {
    background-color: white;
    border-color: var(--primary);
    color: black;
    box-shadow: 0 5px 0 0 var(--primary);
    transform: translateY(-5px);
}

.btn-secondary.btn-secondary:active {
    background-color: white;
    border-color: var(--primary);
    color: black;
    box-shadow: 0 2px 0 0 var(--primary);
    transform: translateY(2px);
}

/* Outline button styling */
.btn-outline-primary {
    background-color: white;
    color: var(--primary);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 0 0 #e9ecef;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 0 #e9ecef;
}

.btn-outline-primary:active {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 0 0 #e9ecef;
}

/* White secondary button variant */
.btn-white {
    background-color: white;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    box-shadow: 0 4px 0 0 #e9ecef;
}

.btn-white:hover, .btn-white:focus {
    color: var(--primary);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 0 0 #e9ecef;
}

.btn-white:active {
    background-color: #e9ecef;
    box-shadow: 0 2px 0 0 #e9ecef;
}

/* Message Bubble Styles */
.message-bubble {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    margin-bottom: 0px;
    position: relative;
    word-wrap: break-word;
    margin-top:20px;
}

.message-bubble.visitor {
    background-color: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    margin-right: auto;
}

/* Note: .message-bubble.agent background-color is set dynamically in the template */
.message-bubble.agent {
    color: #fff;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
    margin-left: auto;
}

.message-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
    display: block;
    width: 80%;
    margin-bottom: 0px;
}

.message-time.visitor {
    text-align: left;
    margin-right: auto;
}

.message-time.agent {
    text-align: right;
    margin-left: auto;
}

/* Dashboard Styles */
.dashboard-stat {
    padding: 24px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    transition: box-shadow 0.15s ease;
}

.dashboard-stat:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.dashboard-stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Custom Form Styling */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

/* Error Page Styles */
.error-page {
    text-align: center;
    margin-top: 60px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Crisp Divider Lines */
hr {
    border-color: var(--border-color);
    margin: 2rem 0;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Media Queries for Responsiveness */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .dashboard-stat-value {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
}

/* Pricing Page Styles */
.feature-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.feature-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.feature-item i {
    margin-right: 0.5rem;
    color: var(--success);
}

/* AI Assistant Pane Styles */
.ai-response-pane {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: 16px;
    overflow: hidden;
    width: 300px;
}

.ai-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
}

.ai-header h5 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.ai-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}

.ai-empty-state {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.ai-suggestion {
    background-color: var(--light-gray);
    border-left: 3px solid var(--success);
    border-radius: 8px;
    margin: 12px 0;
    padding: 16px;
}

.ai-suggestion p {
    margin-bottom: 0;
}

.ai-loading {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.ai-actions {
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
}

/* Dashboard Layout Update */
.dashboard-container {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 16px;
    overflow: hidden;
}

.conversation-list-pane {
    border-right: 1px solid var(--border-color);
    flex: 0 0 300px;
    overflow-y: auto;
}

.conversation-detail-pane {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.conversation-toolbar {
    align-items: center;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.conversation-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}

.message-input-container {
    border-top: 1px solid var(--border-color);
    padding: 16px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
        height: auto;
    }
    
    .conversation-list-pane {
        border-right: none;
        flex: none;
        height: 300px;
        width: 100%;
    }
    
    .conversation-detail-pane {
        height: calc(100vh - 370px);
    }
    
    .ai-response-pane {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }
}

/* Sidebar Navigation Styles - EventKit Inspired Dark Theme */

/* Main sidebar container styling */
.sidebar.offcanvas-lg.offcanvas-start {
    background-color: #1a1a1a; /* Dark background */
    border-right: 1px solid #2d2d2d; /* Darker border */
}

.sidebar-nav {
    list-style: none;
    padding: 0.75rem 1.25rem;
    margin: 0;
}

.sidebar-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #aaaaaa; /* Muted white for headers */
    padding: 1.5rem 0.75rem 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

.sidebar-header:first-child {
    margin-top: 0;
}

.sidebar-item {
    margin-bottom: 0.125rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #e0e0e0; /* Light gray text */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: #2a2a2a; /* Slightly lighter on hover */
    text-decoration: none;
}

.sidebar-link.active,
.sidebar-item.active > .sidebar-link {
    color: #ffffff;
    background-color: #E0458B; /* Your brand primary color */
    font-weight: 600;
}

.sidebar-link .icon,
.sidebar-link svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Logo section styling */
.sidebar-logo {
    padding: 1.5rem 0;
    border-bottom: 1px solid #2d2d2d;
    margin-bottom: 0.5rem;
}

.sidebar-brand-img {
    max-height: 2.5rem;
    filter: brightness(0) invert(1); /* Make logo white if it's dark */
}

/* Sidebar footer styling */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #2d2d2d;
    margin-top: auto;
}

.sidebar-user {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.75rem;
    display: block;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar-user:hover {
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-circle svg {
    color: #e0e0e0;
}

/* Sidebar Submenu Styles */
.sidebar-submenu {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.sidebar-subitem {
    margin-bottom: 0.125rem;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    color: #b0b0b0; /* Slightly dimmer for sub-items */
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.sidebar-sublink:hover {
    color: #ffffff;
    background-color: #2a2a2a;
    text-decoration: none;
}

.sidebar-sublink.active {
    color: #ffffff;
    background-color: rgba(224, 69, 139, 0.8); /* Slightly transparent brand color */
    font-weight: 500;
}

.sidebar-sublink .icon,
.sidebar-sublink svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Locked feature styling for dark theme */
.sidebar-link.locked-feature {
    color: #666; /* Darker gray for locked features */
    cursor: not-allowed;
    opacity: 0.6;
}

.sidebar-link.locked-feature:hover {
    color: #666;
    background-color: transparent;
}

.locked-tag {
    background-color: #444;
    color: #aaa;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: auto;
}

/* Dropdown menu styling for dark sidebar */
.sidebar-footer .dropdown-menu {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-footer .dropdown-item {
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.sidebar-footer .dropdown-item:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.sidebar-footer .dropdown-item svg {
    color: inherit;
}

/* Mobile navbar for dark theme consistency */
.navbar.d-lg-none.fixed-top {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #2d2d2d;
}

.navbar.d-lg-none .navbar-toggler {
    border-color: #444;
}

.navbar.d-lg-none .navbar-toggler-icon {
    filter: invert(1); /* Make hamburger icon white */
}

.navbar.d-lg-none .navbar-brand img {
    filter: brightness(0) invert(1); /* Make logo white on mobile */
}

/* Offcanvas specific styling for mobile */
.offcanvas.sidebar {
    background-color: #1a1a1a;
}

.offcanvas-header {
    border-bottom: 1px solid #2d2d2d;
    color: #ffffff;
}

.offcanvas-title {
    color: #ffffff;
}

.btn-close {
    filter: invert(1); /* Make close button white */
}

/* Dashboard and Conversation Styles - Enhanced */
.conversations-container {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #f8f9fa;
}

.conversation-list-pane {
    width: 350px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.conversation-detail-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    position: relative;
}

.conversation-toolbar {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    min-height: 80px;
}

.conversation-filter-bar {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    min-height: 60px;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
}

.conversation-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    position: relative;
}

.conversation-item:hover {
    background-color: #f8f9fa;
    border-left: 3px solid #E0458B;
    padding-left: 17px; /* Adjust for border */
}

.conversation-item.active {
    background-color: #E0458B;
    color: #fff;
    border-left: none;
    padding-left: 20px;
}

.conversation-item.active:hover {
    background-color: #C33072; /* Slightly darker on hover when active */
    border-left: none;
    padding-left: 20px;
}

.conversation-item.active strong {
    color: #fff;
}

.conversation-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.conversation-item.unread {
    background-color: #fff5f8;
    border-left: 3px solid #E0458B;
    padding-left: 17px;
}

.conversation-item.unread::before {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #E0458B;
    border-radius: 50%;
}

.conversation-item.unread.active::before {
    background-color: #fff;
}

/* Style for resolved conversations */
.conversation-item.resolved {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.conversation-item.resolved strong {
    font-weight: normal;
    color: #6c757d;
}

.conversation-item.resolved .badge {
    opacity: 0.8;
}

/* Conversation item content styling */
.conversation-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.conversation-item .text-muted {
    font-size: 0.85rem;
    color: #64748b !important;
    font-weight: 400;
}

/* Badge styling within conversations */
.conversation-item .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    font-weight: 500;
}

.conversation-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: #fafbfc;
    padding-bottom: 90px;
    border-top: 1px solid #e9ecef;
}

.message-input-container {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #6c757d;
    padding: 40px 20px;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Filter dropdown improvements */
.filter-dropdown {
    width: auto;
}

/* Sort dropdown styling */
.conversation-filter-bar .dropdown-toggle {
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.conversation-filter-bar .dropdown-toggle:hover {
    border-color: #E0458B;
    color: #E0458B;
}

.conversation-filter-bar .dropdown-toggle:focus {
    box-shadow: 0 0 0 2px rgba(224, 69, 139, 0.2);
    border-color: #E0458B;
}

/* Scrollbar styling for conversation list */
.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.conversation-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.conversation-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message area scrollbar */
.conversation-messages::-webkit-scrollbar {
    width: 6px;
}

.conversation-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.conversation-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.conversation-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Pricing Page Styles */
.toggle-button-group {
    display: inline-flex;
    background-color: #f1f1f1;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 2rem;
}

.toggle-button {
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.toggle-button.active {
    background-color: #000;
    color: white;
}

.hidden {
    display: none;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: #4A5568;
    margin-top: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-period {
    font-size: 0.9rem;
    color: #6c757d;
}

.pricing-card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s;
    height: 100%;
}

.pricing-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-table td {
    text-align: center;
}

.feature-table tr td:first-child {
    text-align: left;
    font-weight: 500;
}

.mobile-features {
    display: none;
}

/* Responsive adjustments for dashboard and conversations */
@media (max-width: 992px) {
    .conversations-container {
        flex-direction: column;
        height: auto;
    }
    
    .conversation-list-pane {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .conversation-messages {
        padding-bottom: 120px;
    }

    /* Pricing responsive adjustments */
    .feature-table {
        display: none;
    }
    
    .mobile-features {
        display: block;
        margin-top: 1.5rem;
    }
    
    .pricing-title {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .pricing-subtitle {
        text-align: center;
    }
}

/* Logo styling */
.sidebar-brand-img {
    max-height: 2.5rem;
}

.navbar-logo {
    max-height: 2rem;
}

/* Added to ensure Bootstrap's btn-primary uses our brand color */
.btn-primary.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

.btn-primary.btn-primary:hover, 
.btn-primary.btn-primary:focus {
    background-color: var(--primary) !important;
    border-color: var(--primary-dark);
    box-shadow: 0 5px 0 0 var(--primary-dark);
}

.btn-primary.btn-primary:active {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 0 0 var(--primary-dark);
}

/* Small button variant for navbar and compact spaces */
.btn-sm {
    height: 34px;
    font-size: 14px;
    padding: 0 16px;
    transform: translateY(-3px);
    margin-bottom: 3px;
    box-shadow: 0 3px 0 0 var(--primary-dark);
}

.btn-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

.btn-sm:active {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 0 var(--primary-dark);
}

/* Primary small button */
.btn-primary.btn-sm {
    box-shadow: 0 3px 0 0 var(--primary-dark);
}

.btn-primary.btn-sm:hover {
    box-shadow: 0 4px 0 0 var(--primary-dark);
}

.btn-primary.btn-sm:active {
    box-shadow: 0 1px 0 0 var(--primary-dark);
}

/* Small secondary button styling */
.btn-secondary.btn-sm {
    color: black;
    box-shadow: 0 3px 0 0 var(--primary);
}

.btn-secondary.btn-sm:hover {
    color: black;
    box-shadow: 0 4px 0 0 var(--primary);
    transform: translateY(-4px);
}

/* Channel Cards for integration selection */
.channel-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    margin-bottom: 8px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.channel-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.channel-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.channel-card-mini {
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.channel-card-mini:hover {
    border-color: #adb5bd;
}
.channel-card-mini.selected {
    border-color: #E0458B; /* Use primary color */
    border-width: 2px; /* Make border slightly thicker when selected */
    box-shadow: 0 0 0 0.2rem rgba(224, 69, 139, 1); /* Use primary color focus ring */
}
.channel-icon-mini img {
    width: 24px;
    height: 24px;
}
.disabled-feature {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #f8f9fa;
}
.locked-tag {
    background-color: #6c757d; /* Default grey */
    color: white;
    font-size: 0.75em;
    padding: 0.25em 0.5em;
}

.channel-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.channel-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.channel-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-content {
    display: flex;
    align-items: center;
}

/* Switch styling for checkboxes */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
    margin-right: .5rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Radio button styling */
.form-check-input[type="radio"] {
    width: 1.25em;
    height: 1.25em;
    cursor: pointer;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Tertiary button style */
.btn-tertiary {
    background-color: transparent;
    border-color: transparent; /* No border initially */
    color: var(--text-secondary); /* Use secondary text color */
    box-shadow: none !important; /* Remove 3D shadow */
    transform: translateY(0) !important; /* Reset default lift */
    margin-bottom: 0 !important; /* Remove default bottom margin */
    height: 34px; /* Match btn-sm */
    font-size: 14px; /* Match btn-sm */
    padding: 0 16px; /* Match btn-sm */
}

.btn-tertiary:hover,
.btn-tertiary:focus {
    background-color: var(--bs-gray-100) !important; /* Light gray background on hover */
    border-color: transparent !important;
    color: var(--text-primary) !important; /* Darker text on hover */
    box-shadow: none !important; /* Ensure no shadow on hover */
    transform: translateY(0) !important; /* Ensure no lift on hover */
}

.btn-tertiary:active {
    background-color: var(--bs-gray-200) !important; /* Slightly darker gray on active */
    border-color: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important; /* Ensure no shadow on active */
    transform: translateY(0) !important; /* Ensure no movement on active */
}

/* Ensure dropdown toggle arrow is visible */
.btn-tertiary.dropdown-toggle::after {
    color: var(--text-secondary);
}
.btn-tertiary:hover.dropdown-toggle::after,
.btn-tertiary:focus.dropdown-toggle::after {
    color: var(--text-primary);
}

/* Add styles for locked features */
.locked-feature {
    color: #adb5bd; /* Light grey text */
    cursor: not-allowed; /* Show disabled cursor */
    opacity: 0.7; /* Slightly faded */
}

.locked-feature:hover {
    color: #adb5bd; /* Keep color on hover */
    text-decoration: none; /* No underline on hover */
}

.lock-icon {
    font-size: 0.8em; /* Slightly smaller icon */
    vertical-align: middle;
}

/* Styles for disabled feature cards */
.disabled-feature {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa; /* Light grey background */
    border-color: #dee2e6;
}

/* Keep pointer events for the card itself to allow click for redirect */
.disabled-feature .channel-content,
.disabled-feature .form-check {
    pointer-events: none; /* Disable interactions for children */
}

.disabled-feature .channel-icon img {
    filter: grayscale(100%);
}

/* Locked Tag Badge */
.locked-tag {
    background-color: #6c757d; /* Bootstrap secondary gray */
    color: white;
    font-size: 0.75em;
    padding: 0.3em 0.6em;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.locked-tag svg {
    vertical-align: text-bottom; /* Align icon better with text */
}

/* Ensure main content has padding when mobile navbar is fixed on top and sidebar is active */
.main-content-with-sidebar {
    padding-top: 56px; /* Default height of the mobile navbar */
}

@media (min-width: 992px) { /* lg breakpoint */
    .main-content-with-sidebar {
        padding-top: 0; /* Remove top padding on larger screens */
        margin-left: 280px; /* Sidebar width */
        width: calc(100% - 280px);
    }
    .main-content-full-width {
        padding-top: 0;
        width: 100%;
    }
    /* Make the offcanvas behave like a fixed sidebar on desktop */
    .sidebar.offcanvas-lg.offcanvas-start {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1030; 
        transform: translateX(0) !important; /* Override offcanvas transform */
        visibility: visible !important; /* Override offcanvas visibility */
        width: 280px; /* Sidebar width */
        border-right: 1px solid var(--border-color); /* Keep border */
        background-color: #fff; /* Ensure it has a background */
    }
    /* Hide the offcanvas backdrop on desktop */
    .offcanvas-backdrop.show {
        display: none;
    }
}

/* Styling for the offcanvas sidebar itself */
.offcanvas-lg .offcanvas-body {
    /* The offcanvas-body now contains the direct sidebar content */
    /* Add any specific styling for its children if needed */
}

/* Styles for the mobile top navbar */
.navbar.d-lg-none.fixed-top {
    /* Ensure it has a background and potentially a shadow */
    background-color: #f8f9fa; /* Or your preferred navbar background */
    border-bottom: 1px solid #dee2e6; /* Optional: add a border */
    z-index: 1031; /* Above fixed sidebar but below modals if any */
}

/* Adjustments for main content area */
.body-container {
    /* This container wraps both sidebar and main content */
    /* It will allow main content to correctly flow */
}

.main-content {
    flex-grow: 1;
    overflow-y: auto; /* Allow scrolling for content longer than viewport */
    height: 100vh; /* Attempt to make it full height */
    /* padding-top will be handled by .main-content-with-sidebar */
}

.row.g-0.flex-nowrap {
    /* This helps keep the sidebar and content side-by-side without wrapping */
}

/* Override existing styles for dark theme consistency */
.sidebar .locked-tag {
    background-color: #444 !important;
    color: #aaa !important;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: auto;
}

/* Fix main content positioning */
@media (min-width: 992px) {
    .main-content-with-sidebar {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
    
    .sidebar.offcanvas-lg.offcanvas-start {
        background-color: #1a1a1a !important; /* Ensure dark background */
        border-right: 1px solid #2d2d2d !important;
        width: 280px;
    }
}

/* Additional mobile responsiveness */
@media (max-width: 991.98px) {
    .sidebar.offcanvas {
        background-color: #1a1a1a;
    }
}

/* Professional Table Styling - Similar to screenshot */
.professional-table {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none;
    margin-bottom: 2rem;
}

.professional-table thead {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.professional-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    text-transform: none;
    letter-spacing: 0.025em;
    padding: 1rem 1.5rem;
    border: none;
    vertical-align: middle;
}

.professional-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.15s ease;
}

.professional-table tbody tr:hover {
    background-color: #f8f9fa;
}

.professional-table tbody tr:last-child {
    border-bottom: none;
}

.professional-table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border: none;
    font-size: 0.875rem;
    color: #212529;
}

.professional-table .agent-name {
    font-weight: 600;
    color: #1a1a1a;
}

.professional-table .agent-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.professional-table .agent-type-badge.triage {
    background-color: #e3f2fd;
    color: #1565c0;
}

.professional-table .agent-type-badge.specialist {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.professional-table .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
}

.professional-table .status-badge.active {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.professional-table .status-badge.inactive {
    background-color: #ffebee;
    color: #c62828;
}

.professional-table .agent-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.professional-table .btn-group {
    gap: 0.5rem;
}

.professional-table .btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transform: none;
    margin-bottom: 0;
    box-shadow: none;
    height: auto;
}

.professional-table .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.professional-table .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: none;
    box-shadow: none;
}

.professional-table .specialty-text {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 300px;
}

/* Empty state styling for tables */
.table-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.table-empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* AI Configuration Form Styling */
.ai-config-form {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ai-config-form .form-section {
    margin-bottom: 2.5rem;
}

.ai-config-form .form-section:last-child {
    margin-bottom: 1.5rem;
}

.ai-config-form .section-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.ai-config-form .section-description {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Enhanced Switch Styling */
.ai-config-form .form-switch {
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.ai-config-form .form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    background-color: #dee2e6;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0;
}

.ai-config-form .form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.ai-config-form .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(224, 69, 139, 0.2);
    border-color: transparent;
}

.ai-config-form .form-switch .form-check-label {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 1rem;
    cursor: pointer;
}

.ai-config-form .switch-description {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-left: 4rem;
    margin-top: 0.25rem;
}

/* Form Controls */
.ai-config-form .form-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.ai-config-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background-color: #fff;
}

.ai-config-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 69, 139, 0.1);
    outline: none;
}

.ai-config-form .form-text {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Submit Button */
.ai-config-form .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Settings Header */
.settings-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f4;
}

/* AI Agents Section */
.ai-agents-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.ai-agents-section h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

/* Custom card styles for landing page */
.custom-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

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

.custom-card h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.custom-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* Section spacing */
.section-spacing {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

.section-spacing-sm {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

/* Utility classes for consistent spacing */
.mb-2xl {
    margin-bottom: var(--space-2xl) !important;
}

.mb-3xl {
    margin-bottom: var(--space-3xl) !important;
}

.mb-4xl {
    margin-bottom: var(--space-4xl) !important;
}

.mb-5xl {
    margin-bottom: var(--space-5xl) !important;
}

.mt-2xl {
    margin-top: var(--space-2xl) !important;
}

.mt-3xl {
    margin-top: var(--space-3xl) !important;
}

.mt-4xl {
    margin-top: var(--space-4xl) !important;
}

.mt-5xl {
    margin-top: var(--space-5xl) !important;
}

.py-2xl {
    padding-top: var(--space-2xl) !important;
    padding-bottom: var(--space-2xl) !important;
}

.py-3xl {
    padding-top: var(--space-3xl) !important;
    padding-bottom: var(--space-3xl) !important;
}

.py-4xl {
    padding-top: var(--space-4xl) !important;
    padding-bottom: var(--space-4xl) !important;
}

.py-5xl {
    padding-top: var(--space-5xl) !important;
    padding-bottom: var(--space-5xl) !important;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .display-1 {
        font-size: var(--font-size-4xl);
    }
    
    .display-2 {
        font-size: var(--font-size-3xl);
    }
    
    h1, .h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2, .h2 {
        font-size: var(--font-size-2xl);
    }
    
    .lead {
        font-size: var(--font-size-base);
    }
    
    .custom-card {
        margin-bottom: var(--space-lg);
    }
}

/* Landing Page - Modern Minimalist Styles */

/* Hero Section */
.hero-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-cta {
    margin-top: 3rem;
}

/* Hero Illustration */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.mascot-character {
    /* Removed floating animation */
}

.mascot-character img {
    max-width: 100%;
    height: auto;
}

/* Removed the float animation keyframes */

/* Value Proposition Section */
.value-prop-section {
    padding: 6rem 0;
    background-color: #fff;
}

.value-prop-box {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 3rem 2rem;
    background-color: #fafafa;
}

.value-prop-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a202c;
    margin: 0;
}

/* Features Section - Improved Layout */
.features-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    height: 100%;
}

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

.feature-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
    order: 1;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    order: 2;
    flex-grow: 1;
}

/* How It Works Section - Improved Layout */
.how-it-works-section {
    padding: 6rem 0;
    background-color: #fff;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4rem;
    text-align: center;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
}

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

.step-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #E0458B;
    border-radius: 2px;
}

.step-number {
    background-color: #E0458B;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(224, 69, 139, 0.3);
    z-index: 1;
    position: relative;
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    margin-top: 0;
    line-height: 1.3;
}

.step-item p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    max-width: 600px;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .value-prop-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }
    
    .feature-item {
        text-align: center;
    }
    
    /* Improved mobile How It Works section */
    .steps-container {
        padding: 0 1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        background-color: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border: none;
        position: relative;
    }
    
    .step-item::before {
        display: none;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .step-content {
        padding-top: 0;
    }
    
    .step-item h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .step-item p {
        font-size: 1rem;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .value-prop-box {
        padding: 2rem 1.5rem;
    }
    
    .value-prop-title {
        font-size: 1.25rem;
    }
    
    .features-section,
    .how-it-works-section,
    .cta-section,
    .value-prop-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }
    
    /* Further improved mobile styles for very small screens */
    .steps-container {
        padding: 0 0.5rem;
    }
    
    .step-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .step-item h4 {
        font-size: 1.125rem;
    }
    
    .step-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* --- End of File --- */ 