/* ── Activity Log View ──────────────────────────────────── */

.logs-view {
  padding: 32px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.logs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.logs-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin-bottom: 4px;
}

.logs-subtitle {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
}

.logs-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logs-search {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  background: #fff;
  outline: none;
  min-width: 220px;
  transition: border-color .15s;
}
.logs-search:focus { border-color: #2a6d90; }

.logs-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.logs-refresh-btn:hover { background: #f3f4f6; color: #111827; }

/* ── Tabella ── */

.logs-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.logs-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.logs-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  white-space: nowrap;
}

.log-row {
  border-bottom: 1px solid #f3f4f6;
  transition: background .1s;
}
.log-row:last-child { border-bottom: none; }
.log-row:hover { background: #f9fafb; }

.logs-table td {
  padding: 11px 16px;
  vertical-align: middle;
}

/* Date */
.log-cell-date {
  white-space: nowrap;
  width: 130px;
}
.log-date {
  display: block;
  font-weight: 500;
  color: #374151;
}
.log-time {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}

/* User */
.log-cell-user {
  white-space: nowrap;
  width: 150px;
}
.log-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.log-username {
  font-weight: 500;
  color: #111827;
  vertical-align: middle;
}

/* Action */
.log-cell-action {
  color: #374151;
  line-height: 1.4;
}

/* Launch */
.log-cell-launch {
  white-space: nowrap;
}
.log-launch-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: #eff6ff;
  color: #2a6d90;
}
.log-no-launch {
  color: #d1d5db;
}

/* Empty / loading / error states */
.logs-loading,
.logs-empty,
.logs-error {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 13px;
}
.logs-error { color: #dc2626; }

/* Footer */
.logs-footer {
  margin-top: 16px;
  text-align: center;
}
.logs-load-more {
  padding: 8px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background .15s;
}
.logs-load-more:hover { background: #f3f4f6; }

/* Responsive */
@media (max-width: 768px) {
  .logs-view { padding: 16px; }
  .logs-header { flex-direction: column; }
  .logs-search { min-width: 0; width: 100%; }
  .log-cell-launch { display: none; }
  .logs-table th:nth-child(4),
  .logs-table td:nth-child(4) { display: none; }
}
