/* Import Poppins from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary: #5e8721;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --text: #333333;
    --text-light: #666666;
    --bg: #f8f9fa;
    --border: #dadada;
}

/* Reset base font for the entire site */
* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Adjust font weights for better Poppins rendering */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.badge {
    font-weight: 500;
}

.nav-pill {
    font-weight: 500;
}

.kpi-value {
    font-weight: 600;
}

.detail-group label {
    font-weight: 500;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-group {
    margin-bottom: 15px;
}
.form-control {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn {
    text-decoration: none;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary {
    background-color: #5e8721;
    color: white;
}
.btn-google {
    background-color: #db4437;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}
.error-message {
    color: red;
    margin-bottom: 10px;
}

/* Detail Groups */
.detail-group {
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-group div {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.detail-group code {
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Statistics in detail view */
.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #eee
}

.stat-item label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.login-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.copyright {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.cookie-consent {
    display: none;
    position: fixed;
    bottom: 80px;  /* Positioned above the copyright */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 90%;
    width: 400px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #ddd;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.cookie-consent .btn {
    white-space: nowrap;
    min-width: 100px;
}

.logo-container {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.login-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.logo-container .login-logo {
    max-width: 200px;
}

/* Add these media queries at the end of the file */
@media screen and (max-width: 768px) {
    .login-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 100px 20px 40px 20px;
        width: auto;
        max-width: none;
    }

    .logo-container {
        position: absolute;
        top: 20px;
    }

    .login-logo {
        max-width: 120px;  /* Smaller logo for mobile */
    }

    .cookie-consent {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        flex-direction: column;
        padding: 1rem;
    }

    .cookie-consent p {
        text-align: center;
    }

    .copyright {
        position: relative;
        margin-top: 20px;
        padding: 20px 0;
    }

    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .form-control {
        font-size: 16px;  /* Prevents zoom on input focus in iOS */
    }

    .btn {
        width: 100%;  /* Full width buttons on mobile */
        margin-top: 10px;
    }
}

/* Add these styles for breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb .arrow {
    margin-right: 5px;
    font-size: 1.2rem;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.875em;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    color: #fff;
}

.badge-success {
    background-color: #28a745;
}

.badge-semisuccess {
    background-color: #3498db;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;  /* Dark text for better contrast on yellow */
}

.badge-danger {
    background-color: #dc3545;
}

.badge-new {
    background-color: #6c757d;
}

.badge-muted {
    background-color: #7c7c7c;
}

/* Optional hover effects */
.badge:hover {
    opacity: 0.9;
}

/* Optional transition for smooth hover */
.badge {
    transition: opacity 0.2s ease-in-out;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin: 0;
}

.page-header button {
    width: auto;
}

/* Style for SweetAlert inputs */
.swal2-input {
    margin: 0.5rem auto !important;
    width: 90% !important;
}

/* KPI Grid styles */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid #dadada;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.kpi-subtitle {
    color: #999;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your existing KPI card styles */

.sentiment-card {
    /*grid-column: span 2;  *//* Make the sentiment card span two columns */
}

.sentiment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.sentiment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}

.sentiment-label {
    font-size: 0.9rem;
}

.sentiment-count {
    font-weight: 600;
    color: #2c3e50;
}

.sentiment-empty {
    color: #666;
    text-align: center;
    font-style: italic;
    padding: 0.5rem 0;
}

/* Adjust grid for better responsive layout */
@media screen and (max-width: 1200px) {
    .sentiment-card {
        grid-column: span 1;  /* On smaller screens, take full width */
    }
}

.text-primary {
    color: #5e8721;
}

.text-muted {
    color: #666;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

/* Card styles */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #dadada;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card .detail-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.card .detail-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card .detail-group label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card .detail-group div {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.card .text-primary {
    text-decoration: none;
}

.card .text-primary:hover {
    text-decoration: underline;
}

.card .btn {
    margin-top: 1rem;
}

/* Grid layout for cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;  /* Stack cards on mobile */
    }

    .card {
        margin: 0 -1rem 1rem -1rem;  /* Full width on mobile */
        border-radius: 0;  /* Remove border radius on mobile */
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card .detail-group {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Table inside card */
.card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.card table th,
.card table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.card table th {
    text-align: left;
    font-weight: 500;
    color: #666;
}

.card table tr:last-child td {
    border-bottom: none;
}

/* Mobile Sidebar/Header Styles */
.sidebar-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 24px;
    height: 24px;
}

.mobile-nav {
    display: none;  /* Hidden by default */
    padding: 0.5rem;
    background: white;
    border-top: 1px solid #eee;
}

.mobile-nav.show {
    display: block;  /* Shown when toggled */
}

.mobile-logo {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.nav-pill:hover,
.nav-pill:active {
    background: #e9ecef;
    color: #5e8721;
}

.nav-pill-danger {
    background: #dc3545;
    color: white;
}

.nav-pill-danger:hover {
    background: #c82333;
    color: white;
}

/* Adjust main content for mobile header */
@media screen and (max-width: 768px) {
    table tr {
        border: 1px solid #cacaca;
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }

    table tr td:last-child,
    table tr th:last-child {
        border-bottom: none !important;  /* Remove bottom border from last td */
    }

    .sidebar {
        display: none;  /* Hide regular sidebar on mobile */
    }

    .sidebar-mobile {
        display: block;  /* Show mobile header */
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .content {
        margin-left: 0 !important;  /* Remove sidebar margin */
        margin-top: 80px !important;  /* Reduced from 120px */
        padding: 0.5rem !important;  /* Reduced from 1rem */
    }

    /* Adjust page header spacing on mobile */
    .page-header {
        margin-top: 0.5rem;  /* Reduced from default */
        margin-bottom: 1rem;  /* Reduced from 2rem */
    }

    /* Adjust h1 margins on mobile */
    h1 {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    /* Hide scrollbar but keep functionality */
    .mobile-nav::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-nav {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Adjust card margins on mobile */
    .card {
        margin: 0 -0.5rem 1rem -0.5rem;  /* Reduced side margins */
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.language-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.language-flag {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.language-flag:hover {
    color: #333;
    text-decoration: none;
}

.active-lang {
    font-weight: 600;
    color: #333;
}

.sidebar nav ul li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
}

.menu-item-icon {
    flex: 0 0 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.menu-item-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.2;
}

.menu-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.sidebar nav ul li a:hover .menu-icon {
    opacity: 1;
}

.sidebar nav ul li a:hover {
    background-color: rgba(94, 135, 33, 0.05);
}

/* If you need text wrapping for very narrow screens */
@media (max-width: 320px) {
    .sidebar nav ul li a {
        white-space: normal;  /* Allow wrapping on very small screens */
    }
}

.card td,
.activity-card td {
    line-height: 1;
}

.activity-card td {
    font-size: 0.8rem;
}

td.td-datetime {
    font-size: 0.6rem;
}

.stat-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 5px;
}

.stat-subtitle-dashboard {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Period selector styles */
.period-selector-container {
    margin-bottom: 20px;
}

.period-selector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.period-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.period-btn:hover {
    background-color: #e0e0e0;
}

.period-active {
    background-color: var(--primary);
    color: white;
}

.period-selector-dropdown {
    display: none;
    margin-bottom: 20px;
}

#period-select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Responsive styles for period selector */
@media (max-width: 768px) {
    .period-selector-buttons {
        display: none;
    }
    
    .period-selector-dropdown {
        display: block;
    }
}

/* HOF (Head of Sales) specific styles */
/* Site KPI card styles */
#site-kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.site-kpi-card {
    overflow: auto;
}

.site-kpi-card.sentiment-card {
    grid-column: 1 / -1; /* Make large card span full width */
}

.site-kpi-single {
    text-align: center;
}

.site-kpi-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* More compact spacing for multiple website view */
.site-kpi-multi .site-kpi-metrics {
    justify-content: space-between;
    margin: -5px;
}

.site-kpi-multi .site-kpi-metric {
    padding: 3px;
    flex: 1 0 30%;
    margin: 2px;
}

.site-kpi-multi .metric-value {
    font-size: 16px;
}

.site-kpi-multi .metric-label {
    font-size: 11px;
}

.site-kpi-metric {
    padding: 10px;
    flex: 1 0 30%;
    text-align: center;
}

.metric-value {
    font-size: 18px;
    font-weight: bold;
}

.metric-label {
    font-size: 12px;
    color: #666;
}

.site-kpi-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.site-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

.site-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.no-sites-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px; /* Increased from 600px */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.daily-data-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.daily-data-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.daily-date {
    font-weight: bold;
}

.daily-value {
    color: #555;
}

/* Responsive styles for HOF */
@media (max-width: 768px) {
    #site-kpi-container {
        grid-template-columns: 1fr;
    }
    
    .site-kpi-metrics {
        flex-direction: column;
    }
    
    .site-kpi-metric {
        padding: 5px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 10% auto;
        padding: 0;
    }
}

/* Status explanation modal enhancements */
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.close-modal {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 20px;
    word-break: break-word; /* Ensure text wraps properly */
}

.status-explanation {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.status-explanation:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.status-explanation .badge {
    display: inline-block;
    margin-bottom: 8px;
}

.learn-more-popup {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Custom Date Range Picker */
.date-range-picker {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.date-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.date-input-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text);
    background-color: var(--background);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(94, 135, 33, 0.2);
}

#apply-date-range {
    height: 38px;
    padding: 0 15px;
    align-self: flex-end;
}

/* Mobile responsiveness for date picker */
@media (max-width: 768px) {
    .date-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-input-group {
        width: 100%;
        min-width: unset;
    }
    
    #apply-date-range {
        width: 100%;
        margin-top: 5px;
    }
} 

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #5C871C;
    border-bottom-color: #5C871C;
    animation: spin 1.5s linear infinite;
}

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

/* Tooltip styles */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #6c757d;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: text-top;
}

.tooltip {
    position: absolute;
    max-width: 250px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.site-kpi-metric {
    position: relative;
}

/* Filter buttons styles */
.status-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background-color: #e9ecef;
}

.filter-btn.filter-active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}
