/* =====================================================
   DASHBOARD & SERVICES STYLES
   ===================================================== */

/* ---- DASHBOARD ---- */
.dashboard-welcome {
  background: linear-gradient(135deg, #0078D4 0%, #005A9E 50%, #004578 100%);
  color: white;
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.dashboard-welcome::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.dashboard-welcome::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.welcome-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.welcome-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 16px;
}
.welcome-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.welcome-stat {
  text-align: center;
}
.welcome-stat-val {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.welcome-stat-label {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 8px;
}
.service-tile:hover {
  border-color: var(--azure-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.service-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.service-tile-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.service-tile-count { font-size: 11px; color: var(--text-muted); }

/* ---- RECENTLY CREATED ---- */
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f2f1;
}
.recent-item:last-child { border-bottom: none; }
.recent-item-info { flex: 1; min-width: 0; }
.recent-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--azure-blue);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-item-name:hover { text-decoration: underline; }
.recent-item-meta { font-size: 11px; color: var(--text-muted); }
.recent-item-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ---- MINI CHART ---- */
.mini-chart {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-top: 8px;
}
.mini-bar {
  flex: 1;
  background: var(--azure-blue);
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  transition: opacity var(--transition);
  min-height: 4px;
}
.mini-bar:hover { opacity: 1; }

/* ---- QUICK ACTIONS ---- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font);
  transition: var(--transition);
  text-align: left;
}
.quick-action-btn:hover {
  border-color: var(--azure-blue);
  color: var(--azure-blue);
  background: #f9f9f8;
}
.quick-action-btn svg { color: var(--azure-blue); flex-shrink: 0; }

/* ---- ALL SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.service-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card:hover {
  border-color: var(--azure-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.service-card-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.service-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.service-card-tag {
  font-size: 10px;
  background: #deecf9;
  color: var(--azure-blue);
  padding: 2px 6px;
  border-radius: 10px;
  align-self: flex-start;
  font-weight: 600;
}

/* ---- RESOURCE DETAIL PANEL ---- */
.detail-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
.detail-sidebar { display: flex; flex-direction: column; gap: 12px; }
.detail-prop {
  padding: 8px 0;
  border-bottom: 1px solid #f3f2f1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-prop:last-child { border-bottom: none; }
.detail-prop-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.detail-prop-value { font-size: 13px; color: var(--text-primary); }

/* ---- SUBSCRIPTION CARD ---- */
.sub-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.sub-card:hover { box-shadow: var(--shadow-md); }
.sub-icon {
  width: 48px;
  height: 48px;
  background: #deecf9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure-blue);
  flex-shrink: 0;
}
.sub-info { flex: 1; }
.sub-name { font-size: 15px; font-weight: 600; }
.sub-id { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.sub-stats { display: flex; gap: 20px; margin-top: 6px; }
.sub-stat-val { font-size: 18px; font-weight: 700; color: var(--azure-blue); }
.sub-stat-label { font-size: 11px; color: var(--text-muted); }
