/* General styles for the dashboard */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.dashboard-title {
  font-size: 2rem;
  color: #333;
  margin: 0 0 5px 0;
  font-weight: 600;
}

.dashboard-description {
  font-size: 0.95rem;
  color: #0066cc;
  margin-bottom: 30px;
  font-weight: 500;
}

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

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #007bff;
}

.stat-card.green {
  border-left-color: #28a745;
}

.stat-card.orange {
  border-left-color: #ffc107;
}

.stat-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.stat-card-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

/* Tabs */
.tabs-container {
  margin-bottom: 25px;
  border-bottom: 1px solid #ddd;
}

.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.tab-item {
  padding: 15px 25px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-item:hover {
  color: #333;
}

.tab-item.active {
  color: #0066cc;
  border-bottom-color: #0066cc;
}

/* Table Styles */
.table-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  color: #333;
  font-size: 14px;
}

thead {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #dee2e6;
  color: #333;
  font-size: 14px;
  font-weight: normal;
}

tbody tr {
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: #f8f9fa;
}

tbody tr:last-child td {
  border-bottom: none;
}

td a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

td a:hover {
  text-decoration: underline;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.status-concept {
  background-color: #e2e3e5;
  color: #383d41;
}

.status-verstuurd {
  background-color: #cfe2ff;
  color: #084298;
}

.status-geaccepteerd {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-afgewezen {
  background-color: #f8d7da;
  color: #842029;
}

.status-verlopen {
  background-color: #fff3cd;
  color: #664d03;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

button, .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  color: white;
}

button.btn-primary, .btn.btn-primary {
  background-color: #0066cc;
  color: white;
}

button.btn-primary:hover, .btn.btn-primary:hover {
  background-color: #0052a3;
}

button.btn-success, .btn.btn-success {
  background-color: #28a745;
  color: white;
}

button.btn-success:hover, .btn.btn-success:hover {
  background-color: #218838;
}

button.btn-danger {
  background-color: #dc3545;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

button.btn-danger:hover {
  background-color: #c82333;
}

button.btn-edit, .btn.btn-edit {
  background-color: #17a2b8;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  margin-right: 5px;
}

button.btn-edit:hover, .btn.btn-edit:hover {
  background-color: #138496;
}

/* Action Links in Table */
td .action-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

td .action-links form {
  display: inline;
}

td .action-links button {
  padding: 6px 12px;
  font-size: 12px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 10px;
  }

  .button-group {
    flex-direction: column;
  }

  button, .btn {
    width: 100%;
  }
}