/* site/css/dashboard.css */

/* Global box-sizing for responsive layout */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background-color: #f4f6f8;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}

/* Navbar */
.dash-nav {
  background: #2c3e50;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.dash-logo {
  font-size: 1.2rem;
  font-weight: bold;
}
.btn-logout {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

/* Stats Cards */
.dash-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.stat-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}
.stat-card p {
  margin: 10px 0 0;
  font-size: 2rem;
  font-weight: bold;
}
.stat-card.blue p {
  color: #3498db;
}
.stat-card.yellow p {
  color: #f1c40f;
}
.stat-card.green p {
  color: #2ecc71;
}

/* Table */
.table-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.btn-refresh {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.job-table {
  width: 100%;
  border-collapse: collapse;
}
.job-table th,
.job-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.job-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
}
.job-table tr:hover {
  background: #f9f9f9;
}

/* Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-new {
  background: #ffebee;
  color: #c62828;
}
.status-progress {
  background: #fff8e1;
  color: #f57f17;
}
.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Action Buttons */
.btn-action {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-right: 5px;
}
.btn-accept {
  background: #f39c12;
  color: white;
}
.btn-close {
  background: #27ae60;
  color: white;
}
.btn-view {
  background: #95a5a6;
  color: white;
}
/* สไตล์สำหรับ Staff Select ที่โดนล็อค */
.staff-select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}
