/* ==========================================================================
   NUEVA LÍNEA DE TIEMPO UNIFICADA Y EFECTOS INTERACTIVOS (PREMIUM)
   ========================================================================== */

.toner-timeline-container-new {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
    margin-left: 12px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

[data-theme="dark"] .toner-timeline-container-new {
    border-left-color: #242c3d;
}

.toner-timeline-item-new {
    position: relative;
    background: linear-gradient(135deg, var(--bg-card), rgba(79, 70, 229, 0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition);
    display: flex;
    box-shadow: var(--shadow-premium);
}

.toner-timeline-item-new:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

/* Bordes laterales de color en las tarjetas de la línea de tiempo */
.toner-timeline-item-new.border-color-negro { border-left: 4px solid #374151; }
.toner-timeline-item-new.border-color-cian { border-left: 4px solid #0ea5e9; }
.toner-timeline-item-new.border-color-magenta { border-left: 4px solid #ec4899; }
.toner-timeline-item-new.border-color-amarillo { border-left: 4px solid #eab308; }

/* Marcadores en la línea de tiempo (Badges flotantes a la izquierda) */
.toner-timeline-badge {
    position: absolute;
    left: -35px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 2px solid var(--bg-primary);
    z-index: 2;
}

.font-badge-negro { background-color: #374151; }
.font-badge-cian { background-color: #0ea5e9; }
.font-badge-magenta { background-color: #ec4899; }
.font-badge-amarillo { background-color: #eab308; color: #1e293b; }

.toner-timeline-content-new {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.toner-timeline-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.toner-timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toner-timeline-pages {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--success);
}

.toner-timeline-desc-new {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.toner-timeline-desc-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.toner-timeline-desc-row span {
    flex: 1 1 200px;
}

.toner-timeline-obs-row {
    background-color: var(--bg-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-style: italic;
    border-left: 2px solid var(--primary-light);
    margin-top: 4px;
}

[data-theme="dark"] .toner-timeline-obs-row {
    background-color: rgba(255,255,255,0.02);
}

.toner-timeline-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.toner-timeline-actions-new {
    display: flex;
    gap: 6px;
}

.btn-action-small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-small:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background-color: var(--primary-glow);
}

.btn-action-small-danger:hover {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.4);
    background-color: var(--danger-glow);
}

.btn-action-small i {
    width: 14px;
    height: 14px;
}

/* Efecto active-glow para los botones de pestañas y tarjetas */
.toner-color-card.active-glow {
    border-color: var(--primary) !important;
    box-shadow: 0 0 16px var(--primary-glow) !important;
}

.toner-color-card.toner-negro.active-glow { border-color: #374151 !important; box-shadow: 0 0 16px rgba(55, 65, 81, 0.15) !important; }
.toner-color-card.toner-cian.active-glow { border-color: #0ea5e9 !important; box-shadow: 0 0 16px rgba(14, 165, 233, 0.15) !important; }
.toner-color-card.toner-magenta.active-glow { border-color: #ec4899 !important; box-shadow: 0 0 16px rgba(236, 72, 153, 0.15) !important; }
.toner-color-card.toner-amarillo.active-glow { border-color: #eab308 !important; box-shadow: 0 0 16px rgba(234, 179, 8, 0.15) !important; }

.toner-tab-filters {
    display: flex;
    gap: 8px;
}

.toner-tab-filters button.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}


