/* Sidebar-specific styles - event list and sidebar content */

/* Action Buttons */
#action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #61dafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(97, 218, 251, 0.2);
}

.action-btn.crimecast-btn {
  background: rgba(97, 218, 251, 0.1);
  border-color: rgba(97, 218, 251, 0.3);
}

.action-btn.crimecast-btn:hover {
  background: #61dafb;
  color: #1a1a1d;
  border-color: #61dafb;
}

.action-btn.compact {
  padding: 10px 12px;
  font-size: 13px;
}

.action-btn.compact .btn-text {
  font-weight: 500;
}

.btn-icon {
  font-size: 16px;
}

.btn-text {
  font-weight: 600;
}

/* Filters Panel */
.filters-panel {
  background: #1c1c1c;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.filters-panel.hidden {
  display: none;
}

.filters-section {
  margin-bottom: 15px;
}

.filters-section:last-child {
  margin-bottom: 0;
}

.filters-section label {
  display: block;
  color: #f4f4f9;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #c5c6c7;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  accent-color: #61dafb;
}

.filter-option label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

#event-type-filters {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

#event-type-filters::-webkit-scrollbar {
  width: 4px;
}

#event-type-filters::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 2px;
}

#event-type-filters::-webkit-scrollbar-thumb {
  background: #61dafb;
  border-radius: 2px;
}

#event-type-filters::-webkit-scrollbar-thumb:hover {
  background: #4fc3f7;
}


/* Sort Controls */
.sort-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #888;
  border: 1px solid #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #c5c6c7;
}

.sort-btn.active {
  background: #61dafb;
  color: #1a1a1d;
  border-color: #61dafb;
  font-weight: 600;
}

/* Event list styles */
.event { 
  background-color: #1c1c1c; 
  margin-bottom: 8px; 
  border-radius: 6px; 
  border-left: 4px solid #444; 
  transition: all 0.2s; 
  cursor: pointer; 
  overflow: hidden; 
}

.event:hover { 
  background-color: #252525; 
  border-left-color: #61dafb; 
}

.event.police_calls:hover { 
  border-left-color: #ff4f4f; 
}

.event.traffic_calls:hover { 
  border-left-color: #ffc107; 
}

.event.fire_ems_calls:hover { 
  border-left-color: #f0932b; 
}

.event.priority { 
  border-left: 4px solid #dc3545 !important; 
  background-color: #2a1a1a; 
}

.event.priority:hover { 
  background-color: #332222; 
}

.event.priority .event-type { 
  color: #ff6b6b; 
}

/* Event header */
.event-header { 
  padding: 12px; 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}

.event-type { 
  font-weight: 600; 
  font-size: 1rem; 
  color: #f4f4f9; 
  margin: 0; 
}

.event-location { 
  font-size: 0.85rem; 
  color: #c5c6c7; 
  margin: 0; 
}

.event-time { 
  font-size: 0.8rem; 
  color: #888; 
  margin: 0; 
}

.priority-indicator { 
  color: #ff6b6b; 
  font-size: 0.9rem; 
}

/* Event details (expandable section) */
.event-details { 
  padding: 0 12px 12px 12px; 
  border-top: 1px solid #333; 
  background-color: rgba(0,0,0,0.2); 
  display: none; 
}

.event.expanded .event-details { 
  display: block; 
  animation: slideDown 0.2s ease-out; 
}

.detail-row { 
  display: flex; 
  justify-content: space-between; 
  padding: 4px 0; 
  font-size: 0.85rem; 
}

.detail-label { 
  color: #aaa; 
  font-weight: 500; 
}

.detail-value { 
  color: #f4f4f9; 
  text-align: right; 
  max-width: 60%; 
  word-break: break-word; 
}

/* Special styling for raw call type */
.detail-row.raw-call-type .detail-value { 
  color: #61dafb; 
  font-weight: 600; 
  font-family: 'Courier New', monospace;
}

/* Full timestamp styling */
.detail-row.full-time .detail-value { 
  color: #90EE90; 
  font-size: 0.8rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}