/* Dashboard Styles */

.dashboard-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.dashboard-header {
  background: rgba(26, 26, 46, 0.95);
  border-bottom: 2px solid #4ec9b0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ec9b0;
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(78, 201, 176, 0.1);
  color: #4ec9b0;
}

.nav-link.active {
  background: rgba(78, 201, 176, 0.2);
  color: #4ec9b0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: #e0e0e0;
  font-weight: 500;
}

.logout-btn {
  background: transparent;
  border: 1px solid #4ec9b0;
  color: #4ec9b0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.logout-btn:hover {
  background: #4ec9b0;
  color: #1a1a2e;
}

/* Main Content */
.dashboard-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  font-size: 1.125rem;
  color: #a0a0a0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(78, 201, 176, 0.2);
  border-color: #4ec9b0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e0e0e0;
  margin: 0;
}

.level-icon,
.progress-icon,
.modules-icon,
.activity-icon {
  font-size: 2rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Career Level Card */
.level-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ec9b0;
  margin-bottom: 1rem;
}

.experience-bar {
  width: 100%;
  height: 12px;
  background: #2d3748;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.experience-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ec9b0 0%, #3aa890 100%);
  border-radius: 6px;
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}

.experience-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.experience-text {
  color: #a0a0a0;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
}

.next-level-text {
  color: #a0a0a0;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.next-level-text span {
  color: #4ec9b0;
  font-weight: 600;
}

/* Progress Card */
.circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 1s ease;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  stroke-linecap: round;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ec9b0;
}

.progress-stats {
  text-align: center;
  color: #a0a0a0;
  font-size: 0.875rem;
}

.progress-stats span {
  color: #e0e0e0;
  font-weight: 600;
}

/* Modules Card */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.module-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.module-item:hover {
  border-color: #4ec9b0;
}

.module-name {
  color: #e0e0e0;
  font-weight: 500;
  font-size: 0.875rem;
}

.module-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.module-badge.unlocked {
  background: rgba(78, 201, 176, 0.2);
  color: #4ec9b0;
  border: 1px solid #4ec9b0;
}

.module-badge.completed {
  background: rgba(56, 161, 105, 0.2);
  color: #68d391;
  border: 1px solid #68d391;
}

.module-badge.in-progress {
  background: rgba(237, 137, 54, 0.2);
  color: #f6ad55;
  border: 1px solid #f6ad55;
}

.module-badge.locked {
  background: rgba(113, 128, 150, 0.2);
  color: #a0aec0;
  border: 1px solid #718096;
}

/* Activity Card */
.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(74, 85, 104, 0.5);
}

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

.activity-label {
  color: #a0a0a0;
  font-size: 0.875rem;
}

.activity-value {
  color: #e0e0e0;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Achievements Section */
.achievements-section,
.skills-section,
.actions-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.achievement-card {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.achievement-card.unlocked {
  border-color: #4ec9b0;
  background: rgba(78, 201, 176, 0.1);
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(78, 201, 176, 0.2);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.achievement-icon.locked {
  opacity: 0.3;
  filter: grayscale(100%);
}

.achievement-title {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.achievement-description {
  font-size: 0.875rem;
  color: #a0a0a0;
}

.achievement-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #a0a0a0;
  background: rgba(45, 55, 72, 0.5);
  border: 1px dashed #4a5568;
  border-radius: 12px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: #4ec9b0;
  transform: translateY(-2px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
}

.skill-count {
  background: rgba(78, 201, 176, 0.2);
  color: #4ec9b0;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #2d3748;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ec9b0 0%, #3aa890 100%);
  border-radius: 4px;
  transition: width 1s ease;
}

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.action-card {
  background: rgba(45, 55, 72, 0.95);
  border: 2px solid #4a5568;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.action-card:hover {
  border-color: #4ec9b0;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(78, 201, 176, 0.2);
}

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

.action-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.action-card p {
  font-size: 0.875rem;
  color: #a0a0a0;
  margin: 0;
}

/* Footer */
.dashboard-footer {
  background: rgba(26, 26, 46, 0.95);
  border-top: 1px solid #4a5568;
  padding: 2rem;
  text-align: center;
  color: #a0a0a0;
  margin-top: auto;
}

/* Loading State */
.loading-text {
  text-align: center;
  color: #a0a0a0;
  padding: 2rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-link {
    text-align: center;
  }

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

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

  .dashboard-main {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .achievements-grid,
  .skills-grid,
  .actions-grid {
    grid-template-columns: 1fr;
  }
}
