* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  background-color: #f5f5f7;
}

.app {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  height: 100vh; /* Full viewport height */
  width: 100vw; /* Full viewport width */
}

.user-card {
  position: absolute;

  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(165, 137, 255, 0.15);
  width: 360px;
  padding: 32px;
  box-sizing: border-box;
}

.user-header {
  display: flex;
  padding: 10px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 60px;
  height: 60px;
  background-color: rgba(165, 137, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  color: rgb(165, 137, 255);
  font-size: 24px;
  font-weight: 600;
}

.user-title {
  flex: 1;
}

.username {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: rgb(165, 137, 255);
}


.info-item {
  display: flex;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(165, 137, 255, 0.1);
}

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

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(165, 137, 255, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
}

.info-icon svg {
  width: 18px;
  height: 18px;
  fill: rgb(165, 137, 255);
}

.info-content {
  flex: 1;
}

.info-label {
  font-size: 16px;
  margin: 0 0 4px 0;
}

.info-value {
  color: #b9b7b7;
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

#login-container {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 350px;
  text-align: center;
}

h2 {
  color: rgb(124, 77, 255);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #a589ff;
  border-radius: 6px;
  outline: none;
}

button {
  background: rgb(124, 77, 255);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #9376ff;
}

#error-message {
  color: red;
  margin-bottom: 10px;
}

/* Sidebar styles */
.sidebar {
  flex: 0 0 320px;
  background-color: #0e0e18;
  color: white;
  height: 100vh;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 30px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: #6b46fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #9ca3af;
  text-decoration: none;
  margin: 2px 10px;
  border-radius: 8px;
}

.menu-item.active {
  background-color: #6b46fe;
  color: white;
}

.menu-item:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.05);
}

.menu-icon {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.spacer {
  flex: 1;
}

.log-out {
  margin-top: auto;
  padding: 12px 20px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  margin: 2px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Main content styles */
.main-content {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
  height: 100vh;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
/* Notification container */
.notification-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Notification dot indicator */
.notification-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background-color: #ff3b30; /* Red for better visibility */
  border-radius: 50%;
  display: none;
  box-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
}

/* Notification dropdown */
.notification-dropdown {
  position: absolute;
  right: 0;
  top: 40px;
  width: 320px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none; /* Hidden by default */
  z-index: 100;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  transform: translateY(10px);
  opacity: 0;
}

/* Show dropdown on hover */
.notification-container:hover .notification-dropdown {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

/* Dropdown title */
.notification-dropdown h3 {
  color: #333;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 600;
}

/* Audit items container */
.audit-items {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Individual audit item */
.audit-item {
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
  transition: background-color 0.2s ease-in-out;
}

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

/* Audit item hover effect */
.audit-item:hover {
  background-color: #f9f9ff;
}

/* Audit item header */
.audit-header {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 2px;
}

.project-name {
  color: #4f46e5;
  font-weight: 600;
}

.audit-code {
  font-size: 17px;
  color: #666;
}

/* Audit details */
.audit-details p {
  margin: 6px 0;
  font-size: 14px;
  color: #444;
}

/* Member tags */
.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.member-tag {
  background-color: #eef2ff;
  color: #4f46e5;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.2s ease-in-out;
}

/* Member tag hover effect */
.member-tag:hover {
  background-color: #d6d9ff;
}

.btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid #ddd;
  background: white;
}

.btn-primary {
  background-color: #f5f5f7;
  color: #333;
}

.section-title {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-icons {
  display: flex;
  gap: 15px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.stats-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  background-color: #f5f5f7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.stat-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
}

.grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  min-height: auto;
  max-width: 1100px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 14px;
  background-color: #f5f5f7;
  cursor: pointer;
}

.filter-pill.active {
  background-color: #6b46fe;
  color: white;
}

.chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  background-color: #e9e5ff;
  border-radius: 4px;
  position: relative;
}

.chart-bar-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #6b46fe;
  border-radius: 4px;
}

.chart-bar.active .chart-bar-fill {
  background-color: #6b46fe;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.chart-label {
  font-size: 12px;
  color: #777;
  text-align: center;
  flex: 1;
}

.card {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

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

.card-title {
  font-size: 18px;
  font-weight: 600;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-label {
  font-size: 14px;
  color: #555;
}

.progress-bar {
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #6b46fe;
}

.topics-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.topic-list {
  list-style: none;
}

.topic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.topic-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topic-number {
  width: 30px;
  height: 30px;
  background-color: #f5f5f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
}

.topic-name {
  font-weight: 500;
  font-size: large;
}

.topic-score {
  background-color: #f5f5f7;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 550;
}

.topic-score.high {
  background-color: #e5f7ea;
  color: #2e8b57;
}

/* Right sidebar */
.right-sidebar {
  flex: 0 0 400px;
  padding: 20px;
  background-color: #f5f5f7;
  border-left: 1px solid #eee;
}

.course-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.course-card-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-card-title {
  font-size: 16px;
  font-weight: 600;
}

.course-content {
  padding: 20px;
}

.course-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.course-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.course-stat {
  flex: 1;
  text-align: center;
}

.course-stat-value {
  font-size: 18px;
  font-weight: 600;
}

.course-stat-label {
  font-size: 12px;
  color: #777;
}

.course-image {
  width: 100%;
  height: 150px;
  background-color: #f0f0f5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.course-schedule {
  padding: 20px;
}

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

.schedule-title {
  font-size: 16px;
  font-weight: 600;
}

.date-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.date-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background-color: #f0f0f0;
  cursor: pointer;
}

.date-item.active {
  background-color: #6b46fe;
  color: white;
}

.image-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
}

.schedule-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-text {
  font-size: 14px;
  font-weight: 500;
}

.dashboard-container {
  border-radius: 12px;
  margin-bottom: 20px;
}

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

.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.date-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 14px;
}

.date-selector select {
  padding: 8px 15px;
  border-radius: 6px;
  border: 1px solid #e1e5eb;
  background-color: #f8f9fb;
  cursor: pointer;
  font-size: 14px;
}

.metrics-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef1f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px 0 0 2px;
}

.metric-card.purple::before {
  background: linear-gradient(to bottom, #8464f7, #7658ee);
}

.metric-card.blue::before {
  background: linear-gradient(to bottom, #4694f7, #3b7ddd);
}

.metric-card.green::before {
  background: linear-gradient(to bottom, #40ce8a, #2ebd7d);
}

.metric-label {
  font-size: 14px;
  font-weight: 500;
  color: #777;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.metric-unit {
  font-size: 16px;
  font-weight: 500;
  color: #777;
  margin-bottom: 5px;
}

.metric-trend {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  gap: 4px;
}

.trend-up {
  color: #2ebd7d;
}

.trend-down {
  color: #f44336;
}

.metric-icon {
  background: rgba(132, 100, 247, 0.1);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card.purple .metric-icon {
  background: rgba(132, 100, 247, 0.1);
  color: #8464f7;
}

.metric-card.blue .metric-icon {
  background: rgba(70, 148, 247, 0.1);
  color: #4694f7;
}

.metric-card.green .metric-icon {
  background: rgba(64, 206, 138, 0.1);
  color: #40ce8a;
}

/* For the progress visualization */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: #f1f3f9;
  border-radius: 3px;
  margin-top: 15px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.purple .progress-bar {
  background: linear-gradient(to right, #8464f7, #7658ee);
}

.blue .progress-bar {
  background: linear-gradient(to right, #4694f7, #3b7ddd);
}

.green .progress-bar {
  background: linear-gradient(to right, #40ce8a, #2ebd7d);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-container {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}


/* Responsive Media Queries */

/* Large Screens (Desktops) */
@media screen and (max-width: 1200px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .topics-columns {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    flex: 0 0 280px;
  }
  
  .right-sidebar {
    flex: 0 0 350px;
  }
}

/* Medium Screens (Tablets) */
@media screen and (max-width: 992px) {
  body {
    flex-direction: column;
  }
  
  .sidebar {
    height: auto;
    width: 100%;
    flex: initial;
    padding: 15px 0;
  }
  
  .main-content {
    height: auto;
    padding: 15px;
  }
  
  .right-sidebar {
    display: none; /* Hide right sidebar on tablet */
  }
  
  .stats-cards {
    flex-direction: column;
  }
  
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app {
    height: auto;
    min-height: 100vh;
  }
  
  .user-card {
    width: 90%;
    max-width: 360px;
  }
}

/* Small Screens (Mobile Landscape) */
@media screen and (max-width: 768px) {
  .menu-item {
    padding: 10px 15px;
  }
  
  .metrics-container {
    grid-template-columns: 1fr;
  }
  
  .logo-text {
    display: none;
  }
  
  .chart-container {
    padding: 15px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .card {
    padding: 15px;
  }
  
  .dashboard-title {
    font-size: 20px;
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Extra Small Screens (Mobile Portrait) */
@media screen and (max-width: 576px) {
  .menu-icon {
    margin-right: 0;
  }
  
  .menu-item span {
    display: none;
  }
  
  .sidebar {
    flex: 0 0 80px;
    padding: 15px 0;
  }
  
  .logo {
    justify-content: center;
    padding: 0 10px;
  }
  
  .logo-icon {
    margin-right: 0;
  }
  
  .metric-value {
    font-size: 24px;
  }
  
  .user-card {
    width: 95%;
    padding: 20px;
  }
  
  .notification-dropdown {
    width: 280px;
    right: -100px;
  }
  
  .date-selector {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .metric-card {
    padding: 15px;
  }
  
  #login-container {
    width: 95%;
    padding: 1.5rem;
  }
}

/* Handle height for small devices */
@media screen and (max-height: 700px) {
  .app {
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar, .main-content {
    height: auto;
    min-height: 100vh;
  }
}

/* Print styles */
@media print {
  .sidebar, .right-sidebar, .actions, .btn {
    display: none;
  }
  
  body {
    background-color: white;
  }
  
  .main-content {
    width: 100%;
    padding: 0;
  }
  
  .card, .stat-card, .metric-card {
    box-shadow: none;
    border: 1px solid #eee;
  }
}