
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}
.sidebar-item:hover {
  background-color: rgba(123, 104, 238, 0.1);
  transform: translateX(4px);
}
.sidebar-item.active {
  background-color: rgba(120, 202, 51, 0.63);
  border-left: 3px solid #458E24;
}
.sidebar-item {
  transition: all 0.3s ease;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tab-button.active {
  background-color: #7B68EE;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 104, 238, 0.2);
}
.tab-button:hover {
  transform: translateY(-2px);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.premium-banner {
  background: linear-gradient(135deg, #7B68EE 0%, #6C4BF6 100%);
}
.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.search-input {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.8);
}
.search-input:focus {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(123, 104, 238, 0.15);
}

.user-profile {
  /* display: flex; */
  align-items: center;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
}

:where([class^="ri-"])::before { content: "\f3c2"; }
.card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}








/* main.css - Common styles for header and sidebar */






/* 
Modal */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* Modal Panels */
.modal-panel {
  position: absolute;
  top: 100px;
  background: #fff;
  width: 320px;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.main-panel { left: 250px; }
.sub-panel { display: none; left: 600px; }

#account-preferences-panel {
  display: none;
  left: calc(250px + 340px); 
  margin-left: 31px; /* 250 + width + 20px gap */
}

#account-status-panel {
  display: none;
  left: calc(250px + 340px * 2);
  margin-left: 62px;
  margin-right: 30px;  /* 2nd panel next to 1st */
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Back Button */
.back-btn {
  cursor: pointer;
  margin-bottom: 10px;
  color: #555;
  font-weight: bold;
}

.modal-title {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.settings-options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-options li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.settings-options li:hover {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding-left: 8px;
}

.settings-options .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-options .left i {
  background-color: #4a69f5;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow {
  font-size: 12px;
  color: #999;
}

.confirm-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.confirm-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.confirm-box p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #333;
}

.confirm-box .buttons {
  display: flex;
  justify-content: space-around;
}

.confirm-box button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

#confirm-yes {
  background-color: #e74c3c;
  color: white;
}

#confirm-cancel {
  background-color: #ccc;
  color: black;
}




/* Profile Dropdown Modal */
.profile-modal {
  position: absolute;
  top: 80px; /* adjust as needed */
  right: 20px;
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 99999;
  display: none;
  height: 85vh;

}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:center ;
  cursor: pointer;
  gap: 12px;
  margin-bottom: 15px;
  border-bottom: 2px solid gray;

}

.profile-info .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ded9fa;
  margin-top: 2rem;

}

.profile-options i 
{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0056b3;
  color: white;
  padding: 20px;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.details
{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
  color: #333;
}


.profile-info .joined {
  font-size: 0.825rem;
  color: #999;
}

.profile-options {
  list-style: none;
  padding: 0;
  margin-top: 90px;
}

.profile-options li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  font-size: 1.1rem;
  cursor: pointer;
  color: #444;
  transition: 0.2s ease;
}

.profile-options li:hover {
  color: #6a11cb;
}


/* Keyframe for Button Animations (Bounce In Effect) */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}





/* redo button css */
.submit-btn,
.redo-btn,
.answer-btn {
    background-color: var(--primary);
    background-color: #6a4ee0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
}

.submit-btn:focus,
.redo-btn:focus,
.answer-btn:focus {
    box-shadow: 0 0 0 2px #d6d2f4;
}
.action-buttons {
    display: flex;
    gap: 12px;
}
.nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
   .submit-btn {
        background-color: #7C5CFC;
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
    }

        .submit-btn:hover {
        background-color: #6a4ee0;
    }

    .submit-btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }