/* Admin Dashboard Widgets */

.dashboard {
  padding: 3rem;
}

.dashboard-header {
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.dashboard-subtitle {
  font-size: 1.6rem;
  color: #6b7280;
  margin: 0;
}

/* Widgets Grid */
.dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 2.4rem;
}

/* Widget Base Styles */
.widget {
  background: white;
  border-radius: 1.2rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.widget-header {
  padding: 2rem;
  border-bottom: 0.1rem solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.widget-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.widget-collapse-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: #6b7280;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.widget-collapse-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

.widget-collapse-btn svg {
  transition: transform 0.3s ease;
}

.widget-badge {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.4rem 1.2rem;
  border-radius: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.widget-progress-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.progress-count {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.progress-bar-mini {
  width: 60px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-mini-fill {
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #2563eb);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.widget-body {
  padding: 2rem;
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.widget-body.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.widget-intro {
  font-size: 1.4rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Next Steps Widget - Checklist */
.widget-next-steps {
  grid-column: 1 / -1;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 0.8rem;
  margin-bottom: 1.2rem;
  background: #f9fafb;
  transition: all 0.2s;
}

.checklist li:hover {
  background: #f3f4f6;
}

.checklist li.completed {
  background: #d1fae5;
  border-left: 0.4rem solid #10b981;
}

.check-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 0.2rem solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
}

.checklist li.completed .check-icon {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.check-content {
  flex: 1;
}

.check-content strong {
  display: block;
  font-size: 1.6rem;
  color: #111827;
  margin-bottom: 0.4rem;
}

.check-content p {
  font-size: 1.4rem;
  color: #6b7280;
  margin: 0 0 0.8rem 0;
}

.check-action {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  transition: background 0.2s;
}

.check-action:hover {
  background: #2563eb;
}

.check-action.coming-soon {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.check-completed {
  color: #059669;
  font-size: 1.3rem;
  font-weight: 600;
}

.check-action-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.check-action-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Quick Stats Widget */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.6rem;
}

.stat-card {
  background: #f9fafb;
  border-radius: 0.8rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stat-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1rem;
  background: #dbeafe;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  filter: invert(45%) sepia(89%) saturate(1679%) hue-rotate(202deg) brightness(99%) contrast(93%);
}

.stat-icon-success {
  background: #d1fae5;
  color: #10b981;
}

.stat-icon-success img {
  filter: invert(60%) sepia(51%) saturate(693%) hue-rotate(104deg) brightness(97%) contrast(86%);
}

.stat-icon-warning {
  background: #fef3c7;
  color: #f59e0b;
}

.stat-icon-warning img {
  filter: invert(65%) sepia(78%) saturate(1349%) hue-rotate(1deg) brightness(99%) contrast(98%);
}

.stat-icon-info {
  background: #e0e7ff;
  color: #6366f1;
}

.stat-icon-info img {
  filter: invert(45%) sepia(55%) saturate(2361%) hue-rotate(222deg) brightness(99%) contrast(91%);
}

.stat-value {
  font-size: 3.2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.stat-label {
  font-size: 1.4rem;
  color: #6b7280;
  font-weight: 500;
}

/* Quick Actions Widget */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-radius: 0.8rem;
  text-decoration: none;
  color: #374151;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.action-button:hover {
  background: #3b82f6;
  color: white;
}

.action-button svg,
.action-button img {
  flex-shrink: 0;
}

.action-button img {
  filter: invert(27%) sepia(7%) saturate(1027%) hue-rotate(178deg) brightness(96%) contrast(88%);
  transition: filter 0.2s;
}

.action-button:hover img {
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard {
    padding: 2rem;
  }

  .dashboard-header h1 {
    font-size: 2.4rem;
  }

  .dashboard-widgets {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist li {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .dashboard {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .check-content strong {
    font-size: 1.4rem;
  }

  .check-content p {
    font-size: 1.3rem;
  }
}
