:root {
  --primary-blue: #2a6ef0;
  --secondary-blue: #4d8aff;
  --accent-blue: #6aa4ff;
  --dark-blue: #1a3d7a;
  --light-blue: #e6f0ff;
  --white: #ffffff;
  --gray: #f5f7fa;
  --text-dark: #333333;
  --success: #4caf50;
  --error: #f44336;
  --warning: #ff9800;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--gray);
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  color: var(--dark-blue);
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: white;
}

.dashboard-container {
  display: flex;
  gap: 30px;
  margin-top: 80px;
}

.dashboard-sidebar {
  flex: 0 0 300px;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: fit-content;
}

.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-card {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

.user-profile-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.user-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto 15px;
  position: relative;
}

.user-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.status-user {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

.status-admin {
  background-color: var(--gold);
  color: #8b6508;
}

.user-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.user-username {
  color: #777;
  margin-bottom: 15px;
}

.exp-section {
  margin-bottom: 25px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.exp-bar {
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
}

.exp-progress {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-blue),
    var(--accent-blue)
  );
  border-radius: 5px;
  transition: width 0.5s ease;
}

.exp-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #777;
}

.badges-section h3 {
  margin-bottom: 15px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.badge {
  text-align: center;
  padding: 15px 10px;
  border-radius: 10px;
  background-color: var(--light-blue);
  transition: transform 0.3s;
}

.badge:hover {
  transform: translateY(-5px);
}

.badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.5rem;
}

.badge.bronze .badge-icon {
  background-color: var(--bronze);
  color: white;
}

.badge.silver .badge-icon {
  background-color: var(--silver);
  color: white;
}

.badge.gold .badge-icon {
  background-color: var(--gold);
  color: white;
}

.badge.blue .badge-icon {
  background-color: var(--primary-blue);
  color: white;
}

.badge-name {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.badge-desc {
  font-size: 0.7rem;
  color: #777;
}

.badge.locked {
  opacity: 0.5;
}

.dashboard-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: var(--primary-blue);
  border-bottom: 3px solid var(--primary-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.activity-like {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--success);
}

.activity-comment {
  background-color: rgba(33, 150, 243, 0.2);
  color: var(--primary-blue);
}

.activity-follow {
  background-color: rgba(156, 39, 176, 0.2);
  color: #9c27b0;
}

.activity-badge {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.activity-exp {
  background-color: rgba(3, 169, 244, 0.2);
  color: #03a9f4;
}

.activity-content {
  flex: 1;
}

.activity-message {
  margin-bottom: 5px;
}

.activity-time {
  font-size: 0.8rem;
  color: #777;
}

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

.customization-item {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.customization-item:hover {
  border-color: var(--primary-blue);
}

.customization-item.selected {
  border-color: var(--primary-blue);
  background-color: var(--light-blue);
}

.customization-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.customization-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.customization-price {
  font-size: 0.9rem;
  color: #777;
}

.customization-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.customization-locked .customization-price {
  color: var(--error);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.stat-card {
  background-color: var(--light-blue);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
}

footer {
  background-color: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    flex: 1;
  }

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

/* Updated Navbar Styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px 0; /* Reduced from 15px */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px; /* Added gap instead of margin-left */
}

.nav-links li {
  margin: 0; /* Remove margin-left since we're using gap */
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

/* User Menu Styles */
.user-menu {
  position: relative;
  cursor: pointer;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 20px;
  background-color: var(--light-blue);
  transition: background-color 0.3s;
}

.user-profile:hover {
  background-color: var(--secondary-blue);
  color: white;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 1001;
  margin-top: 5px;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.3s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.dropdown-item:hover {
  background-color: var(--light-blue);
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.dashboard-container {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}
