/* --- LLU DENTAL SCHOOL STATS TOOL STYLES --- */

/* Import a modern font (optional, but recommended for premium feel) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Main Container */
#llu-dental-stats-container {
    --primary-bg: #1a1a2e;
    --card-bg: #1f1f3a;
    --primary-accent: #00e5ff;
    --secondary-accent: #ffd700;
    --text-color: #f0f0f0;
    --text-muted: #a0a0c0;
    --border-color: rgba(0, 229, 255, 0.2);
    
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
}

/* Header */
.llu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.llu-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: 0;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
}
.llu-header h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0;
    color: var(--primary-accent);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Live Clock */
.llu-live-clock {
    background-color: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: right;
    border: 1px solid var(--border-color);
}
.llu-live-clock #llu-time {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.llu-live-clock #llu-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Stats Grid Layout */
.llu-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* General Card Styling */
.llu-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.llu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.1);
}
.llu-card-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.llu-card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    line-height: 1.5;
}

/* Acceptance Rate Card */
.acceptance-rate-card {
    grid-column: 1 / -1; /* Full width on larger screens */
    text-align: center;
}
@media (min-width: 992px) {
    .acceptance-rate-card {
        grid-column: span 2;
        grid-row: span 2;
    }
}
.llu-circular-progress {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 20px auto;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--primary-accent) 0deg, var(--primary-bg) 0deg);
    transition: background 1.5s ease-out;
}
.llu-circular-progress::before {
    content: '';
    position: absolute;
    height: 85%;
    width: 85%;
    background: var(--card-bg);
    border-radius: 50%;
}
.llu-progress-value {
    position: relative;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-accent);
}

/* Admissions Funnel Card */
.llu-funnel-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.llu-funnel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.llu-funnel-item:last-child { border-bottom: none; }
.llu-funnel-label { color: var(--text-muted); }
.llu-funnel-value { font-weight: 600; font-size: 1.2rem; color: #fff;}

/* Academic Profile Card */
.llu-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}
.llu-chart-bar-group { font-size: 0.9rem; }
.llu-bar-label { margin-bottom: 8px; color: var(--text-muted); }
.llu-bar-container {
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
    overflow: hidden;
}
.llu-bar {
    height: 28px;
    background: linear-gradient(90deg, var(--primary-accent), #00a2ff);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary-bg);
    font-weight: 600;
    font-size: 0.9rem;
    padding-right: 10px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Geographic Composition Card */
.llu-donut-chart-container {
    position: relative;
    display: grid;
    place-items: center;
    margin: 20px auto;
}
.llu-donut-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#f0f0f0 0deg, #f0f0f0 0deg); /* JS will update this */
    transition: background 1.5s ease-out;
}
.llu-donut-center-label {
    position: absolute;
    text-align: center;
}
.llu-donut-main-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}
.llu-donut-sub-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.llu-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.llu-legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}
.llu-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Top States Card */
@media (min-width: 992px) {
    .top-states-card {
        grid-column: span 2;
    }
}
.llu-state-chart-container {
    width: 100%;
    margin-top: 10px;
}
.llu-state-bar-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}
.llu-state-label {
    width: 30px;
    font-weight: 600;
    flex-shrink: 0;
}
.llu-state-bar-container {
    flex-grow: 1;
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
}
.llu-state-bar {
    height: 25px;
    width: 0%;
    background: linear-gradient(90deg, #ffd700, #ffb300);
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.llu-state-tooltip {
    position: fixed;
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translate(-50%, -120%);
    z-index: 1000;
}


/* Financials Card */
@media (min-width: 992px) {
    .financials-card {
        grid-column: span 2;
    }
}
.llu-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.llu-tab-button {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
}
.llu-tab-button.active {
    color: var(--primary-accent);
    border-bottom-color: var(--primary-accent);
    font-weight: 600;
}
.llu-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.llu-tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.llu-tab-content h4 {
    margin-top: 0;
    font-weight: 600;
    color: #fff;
}
.llu-tab-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}
.llu-tab-content li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
}
.llu-total-cost {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    text-align: right;
    color: var(--secondary-accent);
}
.llu-financial-figure {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-accent);
    margin: 10px 0;
}
.llu-link {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--primary-accent);
    color: var(--primary-bg);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.llu-link:hover {
    background-color: #fff;
}

/* Footer */
.llu-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
.llu-footer p {
    margin: 5px 0;
}