/* General Styles */
.journey-header {
  background-color: var(--navbar-color);
  color: white;
  border-radius: 0 0 10px 10px;
  padding: 15px 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.journey-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: var(--form-color);
  text-decoration: none;
  color: white;
}

/* Stats Section */
.stats-container {
  margin-bottom: 25px;
}

.stats-card {
  background-color: var(--bg-primary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--card-shadow);
}

.stats-header {
  background-color: var(--navbar-color);
  color: white;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.stats-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.stats-content {
  padding: 20px;
}

.stats-chart-container {
  height: 300px;
  margin-bottom: 20px;
}

.stats-summary {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
}

.stat-item {
  padding: 15px;
  flex: 1;
  min-width: 120px;
  border-radius: 8px;
  margin: 0 5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-item.success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.stat-item.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.stat-item.pending {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--card-shadow);
}

.data-table thead {
  background-color: var(--navbar-color);
  color: white;
}

.data-table th, 
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
  background-color: var(--light-color);
}

.data-table tbody tr.highlight-row {
  background-color: rgba(40, 167, 69, 0.12);
  border-left: 3px solid #28a745;
  font-weight: 600;
}

.results-table thead {
  background-color: #28a745;
  color: white;
}

/* Notice Box */
.notice-box {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background-color: var(--light-color);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.notice-icon {
  margin-right: 15px;
  color: var(--accent-color);
}

.notice-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.notice-text strong {
  color: var(--text-primary);
}

/* Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.fade-out {
  animation: fadeOut 0.5s ease-out;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .stats-chart-container {
      display: none;
  }
  
  .stats-summary {
      display: flex;
  }
  
  .stat-item {
      padding: 10px;
      min-width: 100px;
  }
  
  .stat-value {
      font-size: 1.5rem;
  }
  
  .data-table {
      font-size: 0.9rem;
  }
  
  .data-table th, 
  .data-table td {
      padding: 8px 10px;
  }
}