/* 🎛️ dashboard.css - Dashboard Specific Styles */

/* Job Cards */
.job-card {
  background: var(--surface);
  padding: 1em;
  margin: 1em 0;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.job-card.unassigned {
  border-left-color: var(--error);
}

.job-card.assigned {
  border-left-color: var(--primary);
}

.job-card.completed {
  border-left-color: var(--success);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.job-header h3 {
  margin: 0;
}

.status-badge {
  background: #444;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.8em;
}

.job-details {
  color: var(--text-muted);
}

.job-meta {
  display: flex;
  gap: 1em;
  margin: 0.5em 0;
  font-size: 0.9em;
}

.customer-info {
  display: flex;
  gap: 1em;
  align-items: center;
  margin-top: 0.5em;
}

.customer-info a {
  color: var(--secondary);
  text-decoration: none;
}

.job-actions {
  display: flex;
  gap: 0.5em;
  margin-top: 1em;
}

/* New Job Form */
#newJobForm {
  background: var(--surface);
  padding: 1em;
  border-radius: 8px;
  margin: 1em 0;
}

#newJobForm h3 {
  margin-top: 0;
}

/* Stats Row */
.stat-row {
  display: flex;
  justify-content: space-around;
  margin: 1em 0;
}

.stat-row div {
  text-align: center;
  color: var(--text-muted);
}

/* Alert List */
#alertsList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

#alertsList li {
  padding: 0.5em 0;
  border-bottom: 1px solid #444;
}

#alertsList li:last-child {
  border-bottom: none;
}

#alertsList small {
  color: var(--text-muted);
}

/* Chart title subtitle */
.subtitle {
  font-size: 0.7em;
  color: #888;
  font-weight: normal;
  margin-left: 0.5em;
}

/* Info icon */
.info-icon {
  margin-right: 0.5em;
  font-size: 1.1em;
}

/* Chart Container */
.chart-container {
  width: 100%;
  height: 300px;
  position: relative;
  background: #1b1b1b;
  border-radius: 12px;
  padding: 1.5em;
  margin: 1em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid #333;
  overflow: hidden;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  background: transparent;
  margin: 0 auto;
}

/* Chart title styling */
.chart-container h2 {
  color: #4ec7f3;
  font-size: 1.4em;
  margin: 0 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #333;
}

/* Chart description */
.chart-description {
  text-align: center;
  color: #888;
  font-size: 0.9em;
  margin-top: 0.5em;
  padding: 0.75em;
  background: #1b1b1b;
  border-radius: 6px;
  border: 1px solid #333;
  position: relative;
}

/* Analytics links */
.view-details-btn {
  float: right;
  color: #4ec7f3;
  text-decoration: none;
  font-size: 1.2em;
  margin-left: 0.5em;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.view-details-btn:hover {
  opacity: 1;
}

.view-details-link {
  display: block;
  color: #4ec7f3;
  text-decoration: none;
  margin-top: 0.75em;
  padding-top: 0.75em;
  border-top: 1px solid #333;
  transition: color 0.2s;
}

.view-details-link:hover {
  color: #2da8d8;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  padding: 1em;
}

.stats-grid .stat-item {
  background: #1b1b1b;
  padding: 1em;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #333;
}

.stats-grid .stat-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #4ec7f3;
  margin-bottom: 0.3em;
}

.stats-grid .stat-label {
  color: #888;
  font-size: 0.9em;
}