/* css/historial_notif.css */
.flex-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 10px;
}

.btn-outline:hover, .btn-outline.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary-color);
    border-color: rgba(6, 182, 212, 0.3);
}

.notif-history-container {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 500px;
}

.notif-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    gap: 20px;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.history-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(6, 182, 212, 0.2);
}

.history-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.history-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hist-sys .history-icon { color: #3B82F6; background: rgba(37, 99, 235, 0.1); }
.hist-alert .history-icon { color: #F59E0B; background: rgba(245, 158, 11, 0.1); }
.hist-danger .history-icon { color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.hist-success .history-icon { color: #22C55E; background: rgba(34, 197, 94, 0.1); }

.history-content {
    flex: 1;
}

.history-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.history-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-status {
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-unread { background: rgba(6, 182, 212, 0.15); color: var(--secondary-color); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-read { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.history-actions {
    display: flex;
    align-items: flex-start;
}

.btn-mark-read {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-mark-read:hover {
    opacity: 1;
    transform: scale(1.1);
}
