/* static/css/timeline.css */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    background: #2c3e50;
    border-radius: 8px;
    padding: 15px;
    margin-left: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.timeline-item::before {
    content: attr(data-icon);
    position: absolute;
    left: -35px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.timeline-item.motion_detected::before { background: #27ae60; }
.timeline-item.layout_change::before { background: #f39c12; }
.timeline-item.config_change::before { background: #9b59b6; }

.screenshot-preview img {
    max-width: 300px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshot-preview img:hover {
    transform: scale(1.05);
}

.changes-list {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.from { color: #e74c3c; }
.to { color: #27ae60; }