/* Cache Statistics Styles */

.cache-stats-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.cache-stats .metric-box.miss {
    border-left: 3px solid #dc3545;
}

.cache-stats .metric-box.total {
    border-left: 3px solid #6c757d;
}

.cache-stats .metric-box.hit-rate {
    border-left: 3px solid #0dcaf0;
}

.cache-stats .metric-box.hit-rate.excellent {
    border-left: 3px solid #198754;
}

.cache-stats .metric-box.hit-rate.good {
    border-left: 3px solid #20c997;
}

.cache-stats .metric-box.hit-rate.fair {
    border-left: 3px solid #ffc107;
}

.cache-stats .metric-box.hit-rate.poor {
    border-left: 3px solid #dc3545;
}

/* Cache Efficiency Bar */
.cache-efficiency {
    margin-top: 1.5rem;
}

.cache-efficiency h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.efficiency-bar-container {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.efficiency-bar {
    display: flex;
    height: 40px;
    background: var(--surface-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.efficiency-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.efficiency-fill.hit {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.efficiency-fill.miss {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.efficiency-text {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.efficiency-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.label-hits,
.label-misses {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Status Dots */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.hit {
    background: #198754;
}

.status-dot.miss {
    background: #dc3545;
}

/* Cache Info Cards */
.cache-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.info-card strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.info-card span {
    color: var(--text-secondary);
}

/* Text Colors */
.text-success {
    color: #198754 !important;
    font-weight: 600;
}

.text-info {
    color: #0dcaf0 !important;
    font-weight: 600;
}

.text-warning {
    color: #ffc107 !important;
    font-weight: 600;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .efficiency-labels {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cache-info {
        grid-template-columns: 1fr;
    }
}
