/* Achievement Categories Styling */
.achievements-container {
  display: flex;
  height: calc(100% - 20px);
  overflow: hidden;
}

.achievement-categories {
  width: 220px;
  padding: 15px;
  background-color: rgba(30, 30, 30, 0.8);
  border-right: 1px solid #00acff;
  overflow-y: auto;
  height: 100%;
}

.achievement-categories h3 {
  color: #00acff;
  margin-top: 0;
  text-align: center;
  border-bottom: 1px solid #00acff;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.category-btn {
  display: block;
  width: 100%;
  background-color: transparent;
  color: #00ff00;
  border: 1px solid #00ff00;
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: rgba(0, 255, 0, 0.1);
  transform: translateX(5px);
}

.category-btn.active {
  background-color: rgba(0, 172, 255, 0.3);
  border-color: #00acff;
  color: white;
  box-shadow: 0 0 10px rgba(0, 172, 255, 0.5);
  transform: translateX(5px);
}

/* Achievements Content Styling */
.achievements-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.achievements-header {
  border-bottom: 1px solid #00acff;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.achievements-header h2 {
  color: #00acff;
  margin: 0;
  text-align: center;
}

/* Carousel Styling */
.carousel-container {
  position: relative;
  margin-bottom: 20px;
  height: 300px;
}

.carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid #00ff00;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 172, 255, 0.7);
  transition: transform 0.3s ease;
}

.carousel-item img:hover {
  transform: scale(1.05);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #00acff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-size: 16px;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background-color: rgba(0, 172, 255, 0.5);
  color: white;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

/* Certificate List Styling */
.certificate-list-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #00ff00;
  border-radius: 8px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5);
}

.certificate-list-container h3 {
  color: #00acff;
  margin-top: 0;
  text-align: center;
  border-bottom: 1px solid #00acff;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.certificate-item {
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid #00ff00;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.certificate-item:hover {
  background-color: rgba(0, 255, 0, 0.1);
  transform: translateY(-3px);
}

.certificate-item.active {
  background-color: rgba(0, 172, 255, 0.3);
  border-color: #00acff;
  box-shadow: 0 0 10px rgba(0, 172, 255, 0.5);
}

.certificate-item h4 {
  margin: 0 0 5px 0;
  color: #00ff00;
}

.certificate-item p {
  margin: 0;
  font-size: 0.9em;
  color: #ccc;
}

/* Certificate Modal Styling */
.certificate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: auto;
}

.certificate-modal-content {
  background-color: #121212;
  margin: 50px auto;
  border: 2px solid #00acff;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 0 25px rgba(0, 172, 255, 0.8);
  position: relative;
  border-radius: 5px;
  animation: modalFadeIn 0.3s;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.certificate-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.certificate-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #00ff00;
  border-radius: 5px;
  padding: 10px;
}

.certificate-image-container img {
  max-width: 100%;
  max-height: 400px;
}

.certificate-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid #00ff00;
  border-radius: 5px;
  padding: 15px;
}

.detail-row {
  display: flex;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  padding-bottom: 10px;
}

.detail-row.full-width {
  flex-direction: column;
}

.detail-label {
  min-width: 120px;
  font-weight: bold;
  color: #00acff;
}

.detail-value {
  color: #00ff00;
  flex: 1;
}

.detail-row.full-width .detail-value {
  margin-top: 10px;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Custom loaders for different modals */
.achievements-loader {
  width: 100%;
  height: 5px;
  position: relative;
  overflow: hidden;
  background-color: #333;
  border-radius: 2px;
}

.achievements-loader::before {
  content: '';
  position: absolute;
  left: -50%;
  height: 100%;
  width: 40%;
  background-color: #00acff;
  animation: achievementsLoading 1.5s infinite ease-in-out;
  box-shadow: 0 0 10px #00acff;
  border-radius: 2px;
}

@keyframes achievementsLoading {
  0% {
    left: -50%;
  }
  100% {
    left: 110%;
  }
}