* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  min-height: 100vh;
  color: var(--color-gray-800);
}

/* Dashboard Content */
.dashboard-content {
  margin-left: 240px;
  padding: 60px 40px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

labs-navigation[collapsed] ~ .dashboard-content {
  margin-left: 64px;
}

/* Header */
.dashboard-header {
  margin-bottom: 48px;
  text-align: center;
}

.dashboard-header h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* App Card */
.app-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.app-icon-sitemap {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.app-icon-plp {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Status Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
}

.status-badge.online {
  background: var(--color-success-pale);
  color: var(--color-success-dark);
}

.status-badge.offline {
  background: var(--color-error-pale);
  color: var(--color-error-dark);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-400);
}

.status-badge.online .status-dot {
  background: var(--color-success);
  animation: pulse 2s ease-in-out infinite;
}

.status-badge.offline .status-dot {
  background: var(--color-error);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* App Content */
.app-name {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.app-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Stats */
.app-stats {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

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

.stat-value {
  color: #111827;
  font-weight: 600;
}

/* App Button */
.app-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.app-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.app-button:hover .app-arrow {
  transform: translateX(4px);
}

/* Footer */
.dashboard-footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-content {
    margin-left: 64px;
    padding: 40px 20px;
  }

  .dashboard-header h1 {
    font-size: 36px;
  }

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

  .app-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    margin-left: 0;
    padding: 80px 16px 40px;
  }

  labs-navigation {
    width: 100%;
    height: 60px;
    bottom: auto;
  }

  .dashboard-header h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
  }
}
