/*
 * Estilos específicos del acortador de enlaces.
 * El grueso de la interfaz (grid, cards, tema) lo aporta Bootstrap 5.3.
 */

/* --- Iconos del botón de tema: se muestra el del tema activo --- */
.theme-icon-light,
.theme-icon-dark {
    display: none;
}

[data-bs-theme="dark"] .theme-icon-dark {
    display: inline-block;
}

[data-bs-theme="light"] .theme-icon-light {
    display: inline-block;
}

/* --- Truncado de URLs largas en tablas --- */
.url-truncate {
    display: inline-block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* --- Gráfico de barras (analítica) --- */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 160px;
    padding-top: 0.5rem;
}

.chart-bars .bar {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.chart-bars .bar-fill {
    width: 100%;
    max-width: 32px;
    background-color: var(--bs-primary);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: opacity 0.15s ease;
}

.chart-bars .bar:hover .bar-fill {
    opacity: 0.8;
}

.chart-bars .bar-label {
    font-size: 0.65rem;
    color: var(--bs-secondary-color);
    margin-top: 4px;
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
}

/* --- Tarjetas de resumen (KPIs) --- */
.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}
