/* Dashboard Styles */

/* Header */
.dashboard-header {
  background: var(--neutral-100);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--neutral-300);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.header-logo {
  height: 40px;
  width: auto;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-email {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.logout-button {
  padding: 0.625rem 1.25rem;
  background: var(--neutral-200);
  color: var(--neutral-800);
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background: var(--neutral-300);
  border-color: var(--neutral-400);
}

/* Main Content */
.dashboard-main {
  min-height: calc(100vh - 200px);
  background: var(--neutral-200);
  padding: 3rem 2rem;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 3rem;
  animation: fade-in 0.6s ease-out;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.welcome-text {
  font-size: 1.125rem;
  color: var(--neutral-600);
  margin: 0;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  animation: fade-in 0.6s ease-out 0.1s both;
}

.dashboard-card {
  background: var(--neutral-100);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 1rem;
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-link {
  color: var(--primary-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.card-link:hover {
  color: var(--neutral-800);
  transform: translateX(4px);
}

/* Quick Info Section */
.quick-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  animation: fade-in 0.6s ease-out 0.2s both;
}

.info-card {
  background: var(--neutral-100);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 1.5rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--neutral-300);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.info-value {
  font-size: 0.875rem;
  color: var(--neutral-800);
  font-weight: 600;
}

.status-active {
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-active::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}

.info-text {
  font-size: 1rem;
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.support-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-1);
  color: var(--neutral-100);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.support-link:hover {
  background: #5a9fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--mini-card-shadow);
}

/* Footer */
.dashboard-footer {
  background: var(--neutral-100);
  border-top: 1px solid var(--neutral-300);
  padding: 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-container p {
  color: var(--neutral-600);
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--neutral-600);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-1);
}

/* Responsive */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-main {
    padding: 2rem 1rem;
  }

  .header-container {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .welcome-title {
    font-size: 2rem;
  }

  .welcome-text {
    font-size: 1rem;
  }

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

  .quick-info-section {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1rem;
  }

  .header-logo {
    height: 32px;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .dashboard-card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
