/* ==========================================
   SERVME - PAGES AUTHENTICATED DESKTOP DASHBOARD
   Dashboard page desktop - DESKTOP uniquement
   Extrait de dashboard.css (hors @media mobile)
   ========================================== */

/* ==========================================
   DASHBOARD CONTAINER
   ========================================== */

.dashboard-container {
  max-width: 1400px;
  margin: 32px auto 0; /* margin-top: 32px ajouté */
  padding: 2rem;
}

/* ==========================================
   WELCOME SECTION
   ========================================== */

.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.dashboard-welcome h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.dashboard-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Upgrade Banner Inline */
.upgrade-banner-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.upgrade-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.upgrade-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.upgrade-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.upgrade-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

.btn-premium {
  background: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

/* ==========================================
   STATS GRID
   ========================================== */

.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card-modern {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-details {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.375rem;
}

.stat-trend {
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.positive {
  color: #10b981;
}

.stat-trend.negative {
  color: #ef4444;
}

.stat-trend.warning {
  color: #f59e0b;
}

.stat-trend.neutral {
  color: #6b7280;
}

/* ==========================================
   DASHBOARD GRID
   ========================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dashboard-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.card-action {
  font-size: 0.875rem;
  color: #FF385C;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.card-action:hover {
  color: #E31C5F;
}

.card-action i {
  font-size: 0.75rem;
}

/* ==========================================
   ACTIVITY LIST
   ========================================== */

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 10px;
  transition: background 0.2s;
}

.activity-item:hover {
  background: #f3f4f6;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.activity-icon.success {
  background: #d1fae5;
  color: #10b981;
}

.activity-icon.error {
  background: #fee2e2;
  color: #ef4444;
}

.activity-icon.info {
  background: #dbeafe;
  color: #3b82f6;
}

.activity-icon.warning {
  background: #fef3c7;
  color: #f59e0b;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.9375rem;
  color: #1a1a1a;
  font-weight: 500;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* ==========================================
   RECOMMENDATIONS
   ========================================== */

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-item {
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.recommendation-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.recommendation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.recommendation-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.recommendation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.recommendation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommendation-avatar i {
  color: #9ca3af;
  font-size: 1.25rem;
}

.recommendation-role {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.recommendation-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.recommendation-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.recommendation-meta i {
  font-size: 0.75rem;
}

.recommendation-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.match-badge {
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.badge-salary {
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.recommendation-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recommendation-tags .tag {
  padding: 0.25rem 0.625rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ==========================================
   QUICK ACTIONS
   ========================================== */

.quick-actions {
  margin-top: 2.5rem;
}

.quick-actions h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1.25rem 0;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.quick-action-card:hover {
  border-color: #FF385C;
  background: #fff5f7;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 56, 92, 0.15);
}

.quick-action-card i {
  font-size: 1.75rem;
  color: #FF385C;
}

.quick-action-card span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #9ca3af;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9375rem;
  margin: 0 0 1.25rem 0;
}

/* ==========================================
   RESPONSIVE TABLETTE (DESKTOP > 768px)
   ========================================== */

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

