* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #f7fbff;
  color: #17233c;
}

.page {
  min-height: 100vh;
  direction: rtl;
}

/* Sidebar */
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 210px;
  height: 100vh;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0 0 0 28px;
  padding: 24px 18px;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.08);
  overflow-y: auto;
}

.logo-box {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf2f7;
}

.logo-box img {
  width: 78px;
  height: 78px;
}

.logo-box h2 {
  margin: 8px 0 0;
  font-size: 23px;
  color: #0f2d5c;
}

.menu {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.menu a {
  height: 52px;
  padding: 0 15px;
  border-radius: 16px;
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 700;
  transition: 0.25s;
}

.menu a i {
  font-size: 23px;
}

.menu a:hover,
.menu a.active {
  background: #eaf3ff;
  color: #2563eb;
}

.menu .logout {
  margin-top: 18px;
  color: #ef4444;
}

/* Main */
.main {
  padding: 34px;
  margin-right: 210px;
}

.page-title h1 {
  margin: 0;
  color: #0f2d5c;
  font-size: 36px;
}

.page-title p {
  color: #64748b;
}

/* Summary */
.achievement-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 25px;
}

.summary-card {
  background: white;
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.summary-card i {
  font-size: 40px;
  color: #2563eb;
}

.summary-card h3 {
  margin: 10px 0;
  font-size: 26px;
}

.summary-card p {
  color: #64748b;
}

/* Progress */
.progress-box {
  margin-top: 30px;
  background: white;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.progress-box h2 {
  margin-bottom: 18px;
}

.progress-item {
  margin-bottom: 18px;
}

.progress-item h4 {
  margin: 0 0 6px;
}

.progress-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

@media (max-width: 800px) {
  .page {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: auto;
    border-radius: 0;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .main {
    margin-right: 0;
    padding: 20px;
  }

  .achievement-summary {
    grid-template-columns: 1fr;
  }
}