/* Phase 3: Event Activity Panel styles */

/* Event occurrence list items */
.event-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.15s;
}

.event-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.event-item.unread {
    background: rgba(240, 173, 78, 0.08);
    border-left: 3px solid #f0ad4e;
}

.event-item.acknowledged {
    opacity: 0.6;
}

.event-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.event-item-header.severity-1 { border-left: 3px solid #5cb85c; }
.event-item-header.severity-2 { border-left: 3px solid #f0ad4e; }
.event-item-header.severity-3 { border-left: 3px solid #e67e22; }
.event-item-header.severity-4 { border-left: 3px solid #d9534f; }

.event-type {
    font-weight: 600;
    font-size: 13px;
    text-transform: capitalize;
}

.event-vehicle {
    font-size: 12px;
    color: #666;
}

.event-item-body {
    font-size: 12px;
    color: #555;
}

.event-time {
    color: #888;
    margin-bottom: 2px;
}

.event-triggered {
    font-family: monospace;
    font-size: 11px;
    color: #444;
}

.event-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.event-ack-btn,
.event-show-btn {
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f8f8f8;
    cursor: pointer;
}

.event-ack-btn:hover { background: #e8f5e9; border-color: #4caf50; }
.event-show-btn:hover { background: #e3f2fd; border-color: #2196f3; }

/* Load more button */
.load-more-btn {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: center;
    background: #f5f5f5;
    border: none;
    border-top: 1px solid #ddd;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.load-more-btn:hover { background: #e8e8e8; }

/* Empty/error states */
.events-empty,
.events-error {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.events-error { color: #d9534f; }

/* Event detail drawer */
.event-detail-drawer {
    position: fixed;
    top: 60px;
    right: 0;
    width: 400px;
    max-width: 90vw;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
}

.detail-header h3 {
    margin: 0;
    font-size: 16px;
}

.detail-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.detail-close:hover { color: #333; }

.detail-body {
    padding: 12px 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.detail-row label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
}

.detail-row span {
    text-align: right;
    word-break: break-word;
}

.detail-actions {
    padding: 12px 0;
    text-align: center;
}

.detail-actions button {
    padding: 6px 16px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.detail-actions button:hover { background: #1976d2; }

/* Event map marker */
.event-map-marker {
    background: transparent !important;
    border: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .event-detail-drawer {
        width: 100vw;
        max-width: 100vw;
    }
}
