.modal-header .modal-title {
    font-weight: bold;
}

.modal-xl .modal-content {
    height: 90vh;
    overflow-y: auto;
}

.modal-body h5 {
    font-weight: bold;
    margin-bottom: 15px;
}
#sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FCFCFC;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add some padding to the body to prevent content from being hidden under the sticky header */
body {
    padding-top: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sticky-header {
        flex-direction: column;
    }
    
    #sticky-header > div {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Pre-built question pill style */
.question-pill {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px;
    background-color: #f0f8ff;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    color: #0062ff;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.question-pill:hover {
    background-color: #e0ecff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* Input field styling */
.custom-input {
    width: calc(100% - 60px);  /* Adjust input width to account for button size */
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 10px; /* Space between input and button */
    display: inline-block;
}

/* Submit button styling */
.submit-btn {
    background-color: #0062ff;
    color: white;
    border-radius: 25px;
    padding: 10px;  /* Reduce padding */
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    height: 44px;  /* Set a fixed height to match the input field */
    width: 44px;  /* Set a fixed width to make it square */
    display: flex;
    justify-content: center;
    align-items: center;  /* Center the icon */
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #0050d4;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
/* Icon inside button */
.submit-btn i {
    margin-left: 8px;
    font-size: 18px;
    vertical-align: middle;
}
input[type="text"]:hover,
input[type="text"]:focus {
    border-color: #89baf3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    outline: none;
}
/* Adjusted AI assistant pill for shorter width */
.sofia-pill {
    display: inline-flex;
    padding: 8px 16px;  /* Reduced padding */
    margin-left: 10px;  /* Add some space between the text and the pill */
    background-color: #dcdee6;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    color: #00153b;
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    align-items: center;  /* Aligns the icon and text vertically */
    white-space: nowrap;  /* Ensures the pill doesn't stretch unnecessarily */
}
.sofia-pill-compact {
    padding: 6px 14px;  /* Reduced padding */
    font-size: 13px;    /* Slightly smaller font */
}

.sofia-pill-compact i {
    font-size: 14px;    /* Slightly smaller icon */
}

/* Made the sofia pill more subtle */
.sofia-pill {
    background-color: #f0f2f8;  /* Lighter background */
    color: #1a1f36;            /* Darker text for contrast */
}
.sofia-pill:hover {
    background-color: #e5e9f5;  /* Slightly darker on hover */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);  /* Subtler shadow */
}

/* Icon inside the AI assistant pill */
.sofia-pill i {
    font-size: 16px;
    margin-right: 8px;
}
.prebuilt-questions-container {
    margin-bottom: 20px;
}

.prebuilt-question {
    display: block;
    width: 100%;
    text-align: left;
    margin: 5px 0;
    color: #0062ff;
    transition: all 0.3s ease;
}

.prebuilt-question:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.custom-question-container {
    margin-bottom: 20px;
}

.chat-history-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.chat-response {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: white;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-header .close {
    font-size: 1.5rem;
    padding: 0.5rem;
}
#ask-us-trigger:hover {
    border-color: #89baf3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* New styles for data insights modal */
#store-performance-data-modal .modal-dialog,
#channel-performance-data-modal .modal-dialog {
    max-width: 90%;
    width: 90%;
}

#store-performance-data-modal .modal-content,
#channel-performance-data-modal .modal-content {
    width: 100%;
}
@media (max-width: 768px) {
    #store-performance-data-modal .modal-dialog,
    #channel-performance-data-modal .modal-dialog {
        max-width: 95%;
        width: 95%;
    }
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

#sticky-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1001;
    padding-bottom: 10px;
}
.content-wrapper {
    display: flex;
    width: 100%;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    padding: 20px;
    transition: all 0.3s;
    margin-left: 0; /* Default to no margin */
}

/* Customer Grouping Cards */
.customer-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Manrope', sans-serif;
    width: calc(50% - 16px);
    min-height: 450px;  /* Preserved from original */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Card header styling */
.card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #181984;  /* Matches Overview tab card titles */
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    white-space: nowrap;  /* Prevents title from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-grouping-method {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    min-height: 42px;  /* Ensures consistent spacing for 1-2 lines */
}

/* Card content styling */
.card-content {
    flex: 1;
}
/* Specific styles for customer segment cards only */
.customer-card-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.customer-card-title {
    font-size: 24px;
    font-weight: 700;            /* Ensuring correct font weight */
    color: #181984;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    font-family: Manrope, sans-serif;  /* Removed extra quotes */
}

.customer-grouping-method {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    min-height: 36px;
}
.customer-card-content {
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: Manrope, sans-serif;
}

.customer-section-content {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: Manrope, sans-serif;
}

.customer-characteristics-list {
    list-style-type: none;
    padding-left: 24px;
    margin-bottom: 15px;
}

.customer-characteristics-list li {
    position: relative;
    margin-bottom: 6px;
    line-height: 1.4;
}

.customer-characteristics-list li::before {
    content: "•";
    position: absolute;
    left: -20px;
    color: #181984;
}
/* Add to custom.css */
.customer-metrics-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.customer-metric {
    display: flex;
    flex-direction: column;
    margin-right: 0;  /* Space between metrics */
}

.customer-metric-label {
    font-size: 14px;
    color: #181984;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: Manrope, sans-serif;
}

.customer-metric-value {
    font-size: 16px;
    color: #333;
    font-family: Manrope, sans-serif;
}
.customer-section-content:last-of-type {
    margin-bottom: 0;
}
.card-content p,
.card-content ul {
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content ul {
    list-style-type: none;
    padding-left: 24px;
    margin-bottom: 20px;
}

.card-content ul li {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.5;
}

.card-content ul li::before {
    content: "•";
    position: absolute;
    left: -20px;
    color: #181984;
}


/* Action container styling */
.action-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: none;
}

/* Create Campaign button styling */
.create-campaign-button {
    background-color: #0062ff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.create-campaign-button:hover {
    background-color: #004bbd;
}

/* Action icons styling */
.action-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.action-icons i {
    color: #666;
    font-size: 18px;
    cursor: pointer;
    margin-right: 10px;
    transition: color 0.2s;
}

.action-icons i:hover {
    color: #181984;
}

/* Container for all cards */
.customer-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .customer-card {
        width: 100%;
    }
}
/* Alert styles for larger cards */
.alert-tag-large {
    background-color: #B2C1F7;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-family: 'Manrope, sans-serif';
    cursor: pointer;
    display: flex;
    align-items: center;
}

.alert-tag-large i {
    margin-right: 5px;
}

/* Alert styles for smaller cards */
.alert-tag-small {
    background-color: #B2C1F7;
    padding: 5px;
    border-radius: 50%;
    font-size: 12px;
    font-family: 'Manrope, sans-serif';
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Common card header styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-family: 'Manrope, sans-serif';
    font-weight: bold;
    margin: 0;
    color: #181984;
}
.customers-tab-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.customers-container {
    display: flex;
    width: 100%;
}

.customers-sidebar {
    width: 200px;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.customers-main-content {
    flex-grow: 1;
    padding: 20px;
}

.sidebar-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #181984;
}

.nav-link {
    color: #333;
    border-radius: 0 !important;
    margin-bottom: 5px;
}

.nav-link.active {
    background-color: #0062ff !important;
    color: white !important;
}
.custom-cluster-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.custom-cluster-card h3 {
    color: #0062ff;
    margin-bottom: 10px;
}
/* Add these styles to your custom.css file */

/* Update existing classes */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 20px;  /* Reduced from 30px */
    align-items: start;
}
.section-header {
    font-family: 'Manrope, sans-serif';
    font-weight: bold;
    color: '#181984';
    font-size: 24px;
    margin-bottom: 30px;  /* Increased from 20px */
    text-align: center;
}

/* Update podcast-section and trailhead-section to reduce bottom space */
.podcast-section, .trailhead-section {
    background-color: #FCFCFC;
    padding: 20px 25px 12px 25px;  /* Reduced bottom padding */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 320px;  /* Reduced from 350px */
}
/* Update audio player and button styling */
.podcast-section audio {
    width: 70%;  /* Reduced width */
    margin-bottom: 20px;
}

.podcast-section button {
    width: auto;  /* Allow button to size to content */
    min-width: 150px;  /* Minimum width */
    max-width: 200px;  /* Maximum width */
    padding: 8px 16px;  /* Reduced padding */
}

/* Update trailhead styles */
.trailhead-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 0;
}

.trailhead-item {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 65px;  /* Slightly reduced */
}

.trailhead-item h4 {
    font-size: 16px;  /* Increased size */
    font-weight: bold;
    color: #333;
    margin: 0 0 4px 0;
}

.trailhead-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
}
/* Customer Clusters Styling */
.cluster-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Manrope', sans-serif;
    width: calc(50% - 16px); /* Two cards per row with gap */
    display: flex;
    flex-direction: column;
}

.cluster-title {
    font-size: 24px;
    font-weight: 700;
    color: #181984;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.grouping-method {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.characteristics-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.characteristics-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.characteristics-list li {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.characteristics-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #181984;
}
/* For grabbing and moving the map */
.mapboxgl-map {
    cursor: grab;
}

.mapboxgl-map:active {
    cursor: grabbing;
}

.data-insights-modal .modal-body {
    padding: 25px;
}

.data-insights-modal .alert-item {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #fff;
}

.data-insights-modal .dash-markdown li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Loading animation for the sync icon */
.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading text animation with dots */
.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}
#weather-loading-message {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    min-height: 20px;
}