* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1a1a;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Lupo cattivo come sfondo - BEN VISIBILE */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("background.jpg") center/cover no-repeat fixed;
  z-index: -2;
}

/* Overlay leggero per leggibilità del testo */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(172, 121, 121, 0.15); /* Overlay bianco trasparente */
  z-index: -1;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 2em;
  font-weight: 700;
  padding: 4px 12px;
  background: #fcfdfc;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  color: #000000;
  letter-spacing: -0.5px;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-box {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s;
}

.stat-box:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  font-size: 2.5em;
  line-height: 1;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875em;
  color: #666;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #d32f2f;
  line-height: 1;
}

.stat-value.timer {
  color: #f57c00;
  font-size: 2em;
}

/* Actions */
.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 40px;
}

button {
  padding: 16px 24px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #d32f2f;
  color: white;
  grid-column: 1;
}

.btn-primary:hover {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: #666;
  border: 1px solid #e0e0e0;
  grid-column: 2;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

/* Timeline Section */
.timeline-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
}

.section-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.timeline-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Custom Scrollbar */
.timeline-list::-webkit-scrollbar {
  width: 6px;
}

.timeline-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.timeline-list::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 3px;
}

.timeline-list::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

#timeline {
  list-style: none;
  padding: 0;
}

#timeline li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fafafa;
  border-left: 3px solid #d32f2f;
  border-radius: 4px;
  font-size: 0.95em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

#timeline li:hover {
  background: #f5f5f5;
}

#timeline li:last-child {
  margin-bottom: 0;
}

.timeline-empty {
  color: #999;
  font-style: italic;
  border-left-color: #e0e0e0 !important;
  justify-content: center !important;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  color: #000000;
  font-size: 0.875em;
  border-top: 1px solid #e0e0e0;
}

.footer p {
  margin-bottom: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  color: #2e7d32;
  font-weight: 500;
  font-size: 0.875em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #d32f2f;
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.5s;
  font-weight: 500;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header h1 {
    font-size: 1.5em;
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-box {
    padding: 20px;
  }

  .stat-value {
    font-size: 2em;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .btn-secondary {
    grid-column: 1;
  }

  button {
    padding: 14px 20px;
  }

  .timeline-section {
    padding: 20px;
  }

  .notification-toast {
    right: 16px;
    left: 16px;
  }
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* No Animations - tutto minimalista */
* {
  animation-duration: 0.2s !important;
}