/* Add these styles to your Dashboard.css file */

/* Beautiful Metrics Container */
.metrics-container {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.metric-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.metric-item.hours {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
}

.metric-item.productivity {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.metric-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.metric-item.hours .metric-icon {
  color: #6366f1;
}

.metric-item.productivity .metric-icon {
  color: #22c55e;
}

.metric-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.metric-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Updated Developer Card Styling */
.developer-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.developer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

/* Adjusted Developer Stats */
.developer-stats {
  display: flex;
  justify-content: space-around;
  margin: 16px 0;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Improved View Dashboard Button */
.view-dashboard-button {
  width: 100%;
  padding: 12px 16px;
  background: #5b6cfd;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.view-dashboard-button:hover {
  background: #4c5cdb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 108, 253, 0.3);
}

.view-dashboard-button:active {
  transform: translateY(0);
}

/* Developer Details Adjustments */
.developer-details {
  margin: 12px 0;
  font-size: 13px;
  color: #64748b;
}

.developer-last-seen {
  font-size: 12px;
  color: #94a3b8;
}

/* Remove unnecessary description */
.developer-description {
  display: none; /* Hiding to keep the UI clean */
}

/* Responsive Grid Adjustments */
.developers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 24px 0;
}

/* Status Badge Improvements */
.developer-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.developer-status-badge.online {
  background: #d1fae5;
  color: #064e3b;
}

.developer-status-badge.offline {
  background: #fee2e2;
  color: #7f1d1d;
}

.developer-status-badge.unknown {
  background: #f3f4f6;
  color: #6b7280;
}

/* Animation for metrics on hover */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 108, 253, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(91, 108, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 108, 253, 0);
  }
}

/* Loading states for metrics */
.metric-item.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.refresh-button {
  padding: 8px 16px;
  background: #5e72e4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.refresh-button:hover:not(:disabled) {
  background: #4c63d2;
}

.refresh-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}/* Add these styles to your Dashboard.css file */

/* Dashboard Wrapper */
.dashboard-wrapper {
  padding: 20px;
  background: #f9fafb;
  min-height: 100vh;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #1f2937;
}

.dashboard-badge {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

/* Developer Card Header */
.developer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.developer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.developer-status-icon {
  font-size: 10px;
}

.developer-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.developer-hostname {
  font-size: 13px;
  color: #6b7280;
  margin: 2px 0 0 0;
}

/* Developer Metrics - Compact Style */
.developer-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.hours-worked {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 14px;
}

.hours-icon {
  color: #9ca3af;
}

.productivity-percentage {
  font-size: 14px;
  font-weight: 500;
}

.productivity-percentage.high {
  color: #10b981;
}

.productivity-percentage.medium {
  color: #f59e0b;
}

.productivity-percentage.low {
  color: #ef4444;
}

/* Updated Developer Card Styling */
.developer-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.developer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Developer Stats */
.developer-stats {
  display: flex;
  justify-content: space-around;
  margin: 12px 0;
  padding: 12px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  display: block;
  margin-bottom: 4px;
}

.stat-value.source {
  color: #5e72e4;
  cursor: pointer;
  font-size: 14px;
}

.stat-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* View Dashboard Button */
.view-dashboard-button {
  width: 100%;
  padding: 10px 16px;
  background: #5e72e4;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.view-dashboard-button:hover {
  background: #4c63d2;
}

.view-dashboard-button:active {
  transform: translateY(0);
}

/* Developer Last Seen */
.developer-last-seen {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 12px;
}

/* Responsive Grid */
.developers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

/* Status Badge */
.developer-status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.developer-status-badge.online {
  background: #d1fae5;
  color: #065f46;
}

.developer-status-badge.offline {
  background: #fee2e2;
  color: #991b1b;
}

.developer-status-badge.unknown {
  background: #f3f4f6;
  color: #6b7280;
}