/* Add this CSS to your theme's stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Teko:wght@400;600&display=swap');

.bu-dental-tool-container {
    font-family: 'Roboto', sans-serif;
    background: #1a202c; /* Dark charcoal background */
    color: #E2E8F0; /* Light gray text */
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 2rem auto;
    overflow: hidden;
    border: 1px solid #4A5568;
}

/* HEADER SECTION */
.bdt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #4A5568;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bdt-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.8rem;
    line-height: 1;
    margin: 0;
    color: #FFF;
    font-weight: 600;
}

.bdt-header h2 span {
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #A0AEC0;
    display: block;
    margin-top: 0.25rem;
}

.bdt-clock {
    background-color: #2d3748;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: right;
}

.bdt-clock #bdt-time {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: #FBBF24; /* Gold accent */
    line-height: 1;
}

.bdt-clock #bdt-date {
    font-size: 0.75rem;
    color: #A0AEC0;
}

/* MAIN STATS GRID */
.bdt-main-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bdt-card {
    background-color: #2d3748;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bdt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.bdt-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bdt-card-header .bdt-icon {
    width: 32px;
    height: 32px;
    color: #FBBF24;
}

.bdt-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #CBD5E0;
}

.bdt-card-value {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #FFF;
    line-height: 1;
}
.bdt-card-value-small{
    font-size: 1.8rem;
}

.bdt-card-unit {
    font-size: 1rem;
    color: #A0AEC0;
    margin-left: 0.25rem;
}

/* HIGHLIGHT CARD - ACCEPTANCE RATE */
.bdt-card-highlight {
    grid-column: 1 / -1; /* Span full width on smaller grids */
    background: linear-gradient(135deg, #4c51bf, #667eea); /* Indigo gradient */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.bdt-progress-circle-container {
    position: relative;
    width: 150px;
    height: 150px;
}

@property --p {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

.bdt-progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(#FBBF24 calc(var(--p) * 1%), #2d3748 0);
    transition: --p 1.5s ease-in-out;
}

.bdt-progress-circle::before {
    content: "";
    position: absolute;
    width: 85%;
    height: 85%;
    background: #2d3748;
    border-radius: 50%;
}

.bdt-progress-value {
    position: relative;
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #FFF;
}
.bdt-progress-value span {
    font-size: 1.5rem;
}

.bdt-highlight-text h3 {
    margin: 0 0 0.5rem 0;
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: #FFF;
}
.bdt-highlight-text p {
    margin: 0;
    color: #E2E8F0;
    max-width: 350px;
}

/* TABS SECTION */
.bdt-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.bdt-tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #2d3748;
    border: none;
    color: #CBD5E0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

.bdt-tab-button:hover {
    background-color: #4A5568;
}

.bdt-tab-button.active {
    color: #FFF;
    background-color: #4c51bf;
    border-bottom: 3px solid #FBBF24;
}

.bdt-tab-content {
    display: none;
    background-color: #2d3748;
    padding: 1.5rem;
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

.bdt-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bdt-section-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: #FBBF24;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4A5568;
    padding-bottom: 0.5rem;
}

.bdt-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.bdt-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bdt-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #4A5568;
}
.bdt-list li:last-child {
    border-bottom: none;
}

.bdt-list .label {
    color: #A0AEC0;
}

.bdt-list .value {
    font-weight: 700;
    color: #FFF;
}

/* BAR CHART */
.bdt-bar-chart .bar-item {
    margin-bottom: 1rem;
}
.bdt-bar-chart .bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #CBD5E0;
}
.bdt-bar-chart .bar-bg {
    background-color: #4A5568;
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
}
.bdt-bar-chart .bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #FBBF24, #f59e0b);
    width: 0; /* Animated by JS */
    transition: width 1.5s ease-in-out;
}

/* COMPARISON TABLE */
.bdt-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.bdt-comparison-table th, .bdt-comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #4A5568;
}
.bdt-comparison-table th {
    color: #A0AEC0;
    font-weight: 500;
}
.bdt-comparison-table td:nth-child(2) {
    font-weight: 700;
    color: #FFF;
    background-color: rgba(76, 81, 191, 0.2);
}
 .bdt-comparison-table td:nth-child(3) {
    color: #E2E8F0;
}
.bdt-comparison-table .bdt-table-header {
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    color: #FFF;
}


/* FOOTER */
.bdt-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #A0AEC0;
}

/* RESPONSIVENESS */
@media (min-width: 768px) {
    .bdt-card-highlight {
        grid-column: 1 / span 2;
    }
    .bdt-main-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .bu-dental-tool-container {
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
     .bdt-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .bdt-tabs {
        justify-content: center;
    }
}