/* Dashboard Container */
.dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%);
    padding: 24px;
}

.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 48px;
}

/* Dashboard Box Styles */
.dashboard-box {
    border-radius: 16px;
    padding: 24px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.dashboard-box.one-block {max-width: 33.33%;}

.dashboard-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dashboard-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Box Header */
.box-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.box-extra-info {width: 100%;}

.box-extra-info ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-extra-info ul li {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255);
}

.box-extra-info ul li:nth-child(odd) {width: 115px;}
.box-extra-info ul li:nth-child(even) {width: calc(100% - 125px);}

.box-extra-info ul li strong {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.icon-container {
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container i {
    font-size: 24px;
    color: white;
}

.box-content {
    text-align: right;
}

.box-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.box-count {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Gradient Backgrounds */
.gradient-purple {background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #2563eb 100%);}
.gradient-pink {background: linear-gradient(135deg, #db2777 0%, #e11d48 50%, #ea580c 100%);}
.gradient-emerald {background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%);}
.gradient-indigo {background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #0891b2 100%);}
.gradient-amber {background: linear-gradient(135deg, #d97706 0%, #ea580c 50%, #dc2626 100%);}
.gradient-violet {background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #db2777 100%);}
.gradient-red {background: linear-gradient(135deg, #dc2626 0%, #db2777 50%, #e11d48 100%);}
.gradient-green {background: linear-gradient(135deg, #16a34a 0%, #059669 50%, #0d9488 100%);}
.gradient-slate {background: linear-gradient(135deg, #475569 0%, #4b5563 50%, #3f3f46 100%);}
.gradient-lime {background: linear-gradient(135deg, #65a30d 0%, #16a34a 50%, #047857 100%);}


/******************************************************************
    Donut Chart Begin
******************************************************************/
.donut-chart-box {
    padding: 0 24px;
    margin-bottom: 30px;
}

.donut-chart-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px; /* Space between chart and legend */
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.donut-chart-container h2 {
    width: 100%;
    font-size: 1.35rem;
    color: #475569;
    margin-bottom: 0;
}

.donut-chart {
    /* 1. Positioning context for the center text */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 2. Set the size of the chart */
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin-right: 50px;
    
    /* 3. Create the pie chart using conic-gradient (same as before) */
    /* background: conic-gradient(
        #4e79a7 0% 49%,
        #f28e2b 49% 69%,
        #e15759 69% 78%,
        #76b7b2 78% 86%,
        #59a14f 86% 93%,
        #edc949 93% 100%
    ); */
    
    /* 4. Create the inner hole (donut effect) using a mask (same as before) */
    mask: radial-gradient(
        transparent 45px,
        #fff 45px
    );
}

/* Styles for the Center Text */
.chart-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
}

.chart-center-text .total-percent {
    font-size: 2.2em;
    font-weight: bold;
    line-height: 1;
}

.chart-center-text .chart-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}


/* Styles for the Legend/Values (Mostly unchanged) */
.segment-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 40px;
    row-gap: 8px;
}

.value-wrapper {
    display: flex;
    align-items: center;
    font-size: 14px;
    width: calc(70% - 40px);
}
.value-wrapper:nth-child(even) {width: 30%;}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 15%;
    margin-right: 10px;
    flex-shrink: 0;
}

.chart-percent {
    font-weight: bold;
    margin-right: 8px;
    min-width: 35px;
}

/* Assign colors to the dots based on segment classes */
.value-wrapper .dots-0  { background-color: #1abc9c; }
.value-wrapper .dots-1  { background-color: #ffc0cb; }
.value-wrapper .dots-2  { background-color: #d35400; }
.value-wrapper .dots-3  { background-color: #27ae60; }
.value-wrapper .dots-4  { background-color: #2c3e50; }
.value-wrapper .dots-5  { background-color: #7f8c8d; }
.value-wrapper .dots-6  { background-color: #34495e; }
.value-wrapper .dots-7  { background-color: #1a5276; }
.value-wrapper .dots-8  { background-color: #ba4a00; }
.value-wrapper .dots-9  { background-color: #f1c40f; }
.value-wrapper .dots-10 { background-color: #3498db; }
.value-wrapper .dots-11 { background-color: #9b59b6; }
.value-wrapper .dots-12 { background-color: #e74c3c; }
.value-wrapper .dots-13 { background-color: #117a65; }
.value-wrapper .dots-14 { background-color: #f39c12; }
.value-wrapper .dots-15 { background-color: #c0392b; }
.value-wrapper .dots-16 { background-color: #e67e22; }
.value-wrapper .dots-17 { background-color: #2ecc71; }
.value-wrapper .dots-18 { background-color: #16a085; }
.value-wrapper .dots-19 { background-color: #2980b9; }
.value-wrapper .dots-20 { background-color: #8e44ad; }
.value-wrapper .dots-21 { background-color: #e84393; }
.value-wrapper .dots-22 { background-color: #fdcb6e; }
.value-wrapper .dots-23 { background-color: #00cec9; }
.value-wrapper .dots-24 { background-color: #6c5ce7; }
.value-wrapper .dots-25 { background-color: #fab1a0; }
.value-wrapper .dots-26 { background-color: #81ecec; }
.value-wrapper .dots-27 { background-color: #ffeaa7; }
.value-wrapper .dots-28 { background-color: #55efc4; }
.value-wrapper .dots-29 { background-color: #a29bfe; }
.value-wrapper .dots-30 { background-color: #636e72; }
.value-wrapper .dots-31 { background-color: #dfe6e9; }
.value-wrapper .dots-32 { background-color: #b2bec3; }
.value-wrapper .dots-33 { background-color: #ff7675; }
.value-wrapper .dots-34 { background-color: #fd79a8; }
.value-wrapper .dots-35 { background-color: #e17055; }
.value-wrapper .dots-36 { background-color: #00b894; }
.value-wrapper .dots-37 { background-color: #0984e3; }
.value-wrapper .dots-38 { background-color: #fd5555; }
.value-wrapper .dots-39 { background-color: #2d3436; }




/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-box {
        padding: 20px;
    }
    
    .box-count {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {    
    .box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .box-content {
        text-align: left;
        width: 100%;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: forwards;
}

.dashboard-box:nth-child(1) { animation-delay: 0.1s; }
.dashboard-box:nth-child(2) { animation-delay: 0.2s; }
.dashboard-box:nth-child(3) { animation-delay: 0.3s; }
.dashboard-box:nth-child(4) { animation-delay: 0.4s; }
.dashboard-box:nth-child(5) { animation-delay: 0.5s; }
.dashboard-box:nth-child(6) { animation-delay: 0.6s; }
.dashboard-box:nth-child(7) { animation-delay: 0.7s; }
.dashboard-box:nth-child(8) { animation-delay: 0.8s; }
.dashboard-box:nth-child(9) { animation-delay: 0.9s; }
.dashboard-box:nth-child(10) { animation-delay: 1.0s; }

/* Hover Effects */
.dashboard-box:hover .progress-fill {
    background: rgba(255, 255, 255, 0.7);
}

.dashboard-box:hover .icon-container {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Smooth Transitions */
.icon-container {
    transition: all 0.3s ease;
}

.progress-fill {
    transition: all 0.3s ease;
}

/*******************************************************************************
********************************************************************************
    REFERRAL PATIENT CUSTOM CHART GRAPH
********************************************************************************
*******************************************************************************/
.refer-chart-block {
    padding: 0 24px;
    margin-bottom: 30px;
}

.refer-chart-container {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.refer-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.refer-chart-title {
    font-size: 1.25rem;
    color: #2c3e50;
}

.refer-chart-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.refer-chart-controls button {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.refer-chart-controls button:hover {
    background: #2980b9;
}

.refer-chart-controls button.active {
    background: #2c3e50;
}

.refer-chart-area {
    height: 500px;
    position: relative;
    overflow: hidden;
}

.refer-bars-container {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 20px 0;
    padding-top: 40px;
    gap: 12px;
    justify-content: center;
}

.refer-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 50px;
}

.refer-bar {
    width: 35px;
    background: linear-gradient(to top, #3498db, #2ecc71);
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.speciality-overview .refer-bar {
    background: linear-gradient(to top, #01f2fe, #4fadfe);
    border-radius: 0;
}

.refer-bar:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.refer-bar-label {
    margin-top: 10px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.refer-value-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    color: #2c3e50;
}

.refer-axis-label {
    position: absolute;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.refer-y-axis-label {
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.refer-x-axis-label {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}        
.refer-stat-value {display: none;}

/*******************************************************************************
********************************************************************************
    LOLLIPOP CUSTOM CHART GRAPH
********************************************************************************
*******************************************************************************/
/* .lollipop-container {} */

.lollipop-container header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.lollipop-container h1 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.4rem;
    font-weight: 600;
}

.lollipop-subtitle {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.lollipop-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 30px);
}

.lollipop-chart-row {
    display: flex;
    align-items: center;
    height: 25px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lollipop-chart-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.lollipop-specialty-label {
    width: 180px;
    font-weight: 600;
    font-size: 0.7rem;
    text-align: right;
    padding-right: 15px;
}

.lollipop-chart-area {
    flex: 1;
    position: relative;
    height: 100%;
}

.lollipop-stem {
    height: 2px;
    background: #3498db;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1s ease-out;
}

.lollipop-stem.animate {
    transform: scaleX(1);
}

.lollipop-circle-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lollipop-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e74c3c;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    border: 1px solid white;
    overflow: hidden;
    transform: scale(0);
    transition: transform 0.5s ease-out 0.8s;
}

.lollipop-circle.animate {
    transform: scale(1);
}

.lollipop-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8c471;
    border-radius: 50%;
    transform: scale(1.2);
    transition: transform 0.8s ease-out 1.3s, opacity 0.5s ease-out 1.8s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d6608;
    font-size: 0.5rem;
    font-weight: bold;
}

.lollipop-wrapper.animate {
    transform: scale(0);
    opacity: 0;
}

.lollipop-count-text {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease 1.8s;
}

.lollipop-circle.animate .lollipop-count-text {
    opacity: 1;
}

.lollipop-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 20px 0;
}

.lollipop-controls button {
    padding: 4px 8px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.lollipop-controls button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/*******************************************************************************
********************************************************************************
    DOCTOR METRICS CUSTOM CHART GRAPH
********************************************************************************
*******************************************************************************/
/* .metrics-container {} */

.metrics-container header {
    text-align: center;
    margin-bottom: 21px; /* Reduced by 30% */
    padding-bottom: 14px; /* Reduced by 30% */
    border-bottom: 1px solid #e1e4e8;
}

.metrics-container h1 {
    color: #2c3e50;
    margin-bottom: 7px; /* Reduced by 30% */
    font-size: 1.75em; /* Reduced by 30% */
}

.metrics-dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px; /* Reduced by 30% */
    margin-bottom: 21px; /* Reduced by 30% */
}

.metrics-specialties-panel {
    background-color: white;
    border-radius: 6px; /* Reduced by 30% */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 14px; /* Reduced by 30% */
}

.metrics-specialties-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px; /* Reduced by 30% */
    margin-top: 11px; /* Reduced by 30% */
}

.metrics-specialty-item {
    padding: 8px; /* Reduced by 30% */
    background-color: #f8f9fa;
    border-radius: 4px; /* Reduced by 30% */
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
    font-size: 0.9em; /* Reduced by 30% */
}

.metrics-specialty-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.metrics-specialty-item.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.metrics-controls {
    display: flex;
    gap: 7px; /* Reduced by 30% */
    margin: 14px 0; /* Reduced by 30% */
}

.metrics-btn {
    padding: 6px 11px; /* Reduced by 30% */
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px; /* Reduced by 30% */
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em; /* Reduced by 30% */
}

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

.metrics-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.metrics-chart-container {
    background-color: white;
    border-radius: 6px; /* Reduced by 30% */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 14px; /* Reduced by 30% */
    position: relative;
    overflow: hidden;
}

.metrics-doctors-panel {
    background-color: white;
    border-radius: 6px; /* Reduced by 30% */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    padding: 14px; /* Reduced by 30% */
    margin-top: 14px; /* Reduced by 30% */
}

.metrics-doctors-panel .example_wrapper .row .col-sm-12 {padding: 0 !important;}
.metrics-doctors-panel table {border: none !important;}

.metrics-doctors-panel th, .metrics-doctors-panel td {
    padding: 20px 10px !important;
    text-align: left;
    border: none !important;
    border-bottom: 1px solid #fff !important;
}
.metrics-doctors-panel td {position: relative;}

.metrics-doctors-panel th {
    background-color: #f8f9fa;
    color: #247297;
    font-weight: 600;
}
.metrics-doctors-panel th i {font-size: 12px;}

.metrics-doctors-panel tr th:nth-child(6),
.metrics-doctors-panel tr td:nth-child(6) {
    color: #e53434;
    background-color: #fff2f2;
}

.metrics-doctors-panel tr th:first-child,
.metrics-doctors-panel tr td:first-child {
    border-left: 4px solid #3135bf !important;
    border-radius: 8px 0 0 8px;
}
.metrics-doctors-panel tr th:first-child {border-left-color: #c938d3 !important;}

.metrics-doctors-panel tr:hover {
    background-color: #f8f9fa;
}

.doc-data-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 20px;
}

.metrics-doctors-panel h2 {
    font-size: 18px;
    color: #19426b;
    margin-bottom: 0;
}
.metrics-doctors-panel #example_wrapper {padding: 0;}
.metrics-doctors-panel #example_wrapper .row:first-child,
.metrics-doctors-panel #example_wrapper .row:last-child {display: none;}

.metrics-bar {
    fill: #3498db;
    transition: all 0.3s;
}

.metrics-bar-3d {
    fill: url(#waterGradient);
    /* filter: url(#barShadow); */
}

.metrics-bar-top {
    fill: rgba(255, 255, 255, 0.3);
}

.metrics-bar-side {
    fill: rgba(0, 0, 0, 0.1);
}

.metrics-water-wave {
    fill: url(#waterGradient);
    animation: waveAnimation 2s infinite linear;
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20px);
    }
}

.metrics-axis text {
    font-size: 1.2em; /* Reduced by 30% */
}

.metrics-axis path,
.metrics-axis line {
    fill: none;
    stroke: #ccc;
    shape-rendering: crispEdges;
}

.metrics-grid line {
    stroke: #e1e4e8;
    stroke-opacity: 0.7;
    shape-rendering: crispEdges;
}

.metrics-grid path {
    stroke-width: 0;
}

.metrics-no-data {
    text-align: center;
    padding: 28px; /* Reduced by 30% */
    color: #6c757d;
}

.metrics-water-fill {
    fill: url(#waterGradient);
    animation: fillAnimation 1.5s ease-out forwards;
}

@keyframes fillAnimation {
    from {
        height: 0;
        y: 100%;
    }
    to {
        height: attr(data-height);
        y: attr(data-y);
    }
}

.tooltips {
    color: #183bd3;
    font-weight: 600;
    background: rgba(24, 59, 211, 0.11);
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
}

.tooltip_content {
    color: #0e0e0e;
    max-width: 350px;
    background-color: #fdfcfc;
    border: 1px solid #fde2e2;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 9;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.2s;
}
.tooltip_content.active {
    transform: scale(1);
    opacity: 1;
}

.tooltip_content::before {
    content: "";
    border: 6px solid #fdfcfc;
    position: absolute;
    transform: rotate(39deg);
    left: 15px;
    bottom: -5px;
}

.tooltip_content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tooltip_content ul li {
    font-size: 14px;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    column-gap: 40px;
    row-gap: 8px;
    white-space: nowrap;
}

/*******************************************************************************
********************************************************************************
    3D Patient volume by speciality PIE CHART GRAPH
********************************************************************************
*******************************************************************************/
.pieChart3d-block {
    padding: 0 24px;
    margin-bottom: 30px;
}

.pieChart-3d {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.pieChart-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.chart-wrapper-3d {
    width: 45%;
    position: relative;
}

#pieChart3d {filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));}

.pie-slice-3d {
    cursor: pointer;
    transition: all 0.3s ease;
}
.pie-slice-3d:hover {filter: brightness(1.2);}

.slice-label-3d {
    pointer-events: none;
    font-weight: 500;
    font-size: 12px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.legend-panel-3d {
    background: rgba(30, 41, 59, 0.01);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.75rem;
    /* max-width: 28rem; */
    width: calc(55% - 3rem);
    border: 1px solid rgba(51, 65, 85, 0.05);
}

.legend-title-3d {
    font-size: 1.15rem;
    font-weight: bold;
    color: #6d7785;
    margin-bottom: 1.5rem;
}

.legend-list-3d {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.legend-item-3d {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(51, 65, 85, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.legend-item-3d:hover,
.legend-item-3d.active {
    background: rgb(255 250 97 / 99%);
    /* transform: scale(1.05); */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

.legend-item-content-3d {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.legend-color-3d {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.legend-item-3d.active .legend-color-3d {transform: scale(1.3);}

.legend-name-3d {
    color: #455264;
    font-size: 0.875rem;
    font-weight: 500;
}

.legend-value-3d {
    color: #455264;
    font-weight: 600;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}
.legend-list-3d::-webkit-scrollbar {width: 6px;}

.legend-list-3d::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 3px;
}

.legend-list-3d::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 3px;
}
.legend-list-3d::-webkit-scrollbar-thumb:hover {background: rgba(148, 163, 184, 0.7);}

/*******************************************************************************
********************************************************************************
    Tracking Hospitals Patient Begin
********************************************************************************
*******************************************************************************/
.tracking-hospital {
    background: #fff;
  padding: 30px 24px;
}

.tracking-hospital-patient {
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
  padding: 20px;
}

.tracking-filters {
  background: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.tracking-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracking-filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

.tracking-filter-group select, .tracking-filter-group input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}
#hospital-filter {min-width: 145px;}

.tracking-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.tracking-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tracking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.tracking-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.kpi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.kpi-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.kpi-card div {font-weight: 500;}
.kpi-card div:first-of-type {color: #4a4db4;}
.kpi-card div:last-of-type {color: #b94622;}

.kpi-value {
    font-size: 32px;
    font-weight: 700 !important;
    color: #0005d5;
    margin: 10px 0;
}

.tracking-chart-container {
  height: 400px;
  position: relative;
}

.tracking-table {
  width: 100%;
  border-collapse: collapse;
}

.tracking-table th, .tracking-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.tracking-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

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

.tracking-status-excellent {
  color: #2ecc71;
  font-weight: 600;
}

.tracking-status-good {
  color: #f39c12;
}

.tracking-status-warning {
  color: #e74c3c;
  font-weight: 600;
}

.tracking-status-critical {
  color: #e74c3c;
  font-weight: 600;
}

.tracking-progress-bar {
  height: 8px;
  background-color: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.tracking-progress-fill {
  height: 100%;
  border-radius: 4px;
}

.tracking-progress-excellent { background-color: #2ecc71; }
.tracking-progress-good { background-color: #f39c12; }
.tracking-progress-warning { background-color: #e74c3c; }

/*******************************************************************************
********************************************************************************
    Speed Meter Begin
********************************************************************************
*******************************************************************************/
.meter-container {
    height: 120px;
    overflow: hidden;
    margin-bottom: 30px;
}

.meter {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 240px;
    background-color: #e9e9e9;
    border-radius: 50%;
    overflow: hidden;
}

.meter-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background-color: #ffffff;
    border-radius: 50%;
}

.speed-meter-bar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #0000ff 50%, transparent 50%);
    transition: all 0.8s ease;
    transform: rotate(0deg);
}

.meter-info {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transform: translateY(-22px);
}

.meter-info h4 {
    font-size: 20px;
    font-weight: bold;
    line-height: 20px;
    color: #242424;
    margin: 0;
}

.meter-info p {
    font-size: 14px;
    font-weight: 400;
    color: #616161;
    margin: 0;
}

.hospital-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.single-hospital-block h3 {
    font-size: 14px;
    text-align: center;
    color: #49bb3d;
    margin-bottom: 0;
}