/* Activity Log Controls Bar Styles */
.activity-log-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg, 1.5rem);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.activity-log-controls-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.view-mode-toggle {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-color, #ffcc80);
  border-radius: var(--radius-sm, 0.5rem);
  overflow: hidden;
  background: var(--bg-gray, #e5e5e5);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary, #4d4d4f);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.view-mode-btn:hover {
  background: rgba(242, 27, 35, 0.08);
  color: var(--text-primary, #1a1a1a);
}

.view-mode-btn.active {
  background: var(--primary-color, #f21b23);
  color: white;
}

.view-mode-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
}

.view-mode-icon-list {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.view-mode-icon-card {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.show-entries {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs, 0.5rem);
  color: var(--text-secondary, #4d4d4f);
}

.entries-select {
  padding: 0.5rem;
  border: 2px solid var(--border-color, #ffcc80);
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--bg-gray, #e5e5e5);
  color: var(--text-primary, #4d4d4f);
  font-family: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs, 0.5rem);
  color: var(--text-secondary, #4d4d4f);
}

.search-field {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color, #ffcc80);
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--bg-gray, #e5e5e5);
  color: var(--text-primary, #4d4d4f);
  font-family: inherit;
  outline: none;
  transition: all var(--transition-normal, 0.3s ease);
  font-size: 0.9rem;
}

.search-field:focus {
  background: white;
  border-color: var(--primary-color, #f21b23);
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* Night mode: dark theme */
.night-mode .show-entries {
  color: rgba(255, 255, 255, 0.8);
}

.night-mode .entries-select {
  background: #3a3838;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
}

.night-mode .search-box {
  color: rgba(255, 255, 255, 0.8);
}

.night-mode .search-field {
  background: #3a3838;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.95);
}

.night-mode .search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.night-mode .search-field:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f21b23;
  box-shadow: 0 0 0 3px rgba(242, 27, 35, 0.2);
}

.night-mode .filter-box label {
  color: rgba(255, 255, 255, 0.8);
}

.filter-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-box label {
  color: var(--text-secondary, #4d4d4f);
}

@media (max-width: 768px) {
  .activity-log-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md, 1rem);
  }

  .show-entries,
  .search-box,
  .filter-box {
    flex-wrap: wrap;
    width: 100%;
  }

  .search-field {
    flex: 1;
    min-width: 0;
  }

  .entries-select {
    min-width: 80px;
  }
}

