




/* START Common Dark Mode Styles */
/* START Common Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .card,
body.dark-mode .table,
body.dark-mode .list-group-item,
body.dark-mode .navbar,
body.dark-mode .modal-content {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
}

body.dark-mode .table thead,
body.dark-mode .table thead th,
body.dark-mode .table thead.bg-light {
  background-color: #2c2c2c !important;
  color: #eee !important;
  border-color: #444 !important;
}

body.dark-mode table tbody tr,
body.dark-mode table tbody td {
  color: #ddd !important;
  background-color: #1e1e1e;
  border-color: #333;
}

body.dark-mode table tbody tr:hover {
  background-color: #333 !important;
  color: #fff !important;
  cursor: pointer;
}

body.dark-mode .badge {
  background-color: rgba(0, 123, 255, 0.3) !important;
  color: #66b0ff !important;
  font-weight: 600;
}

body.dark-mode table,
body.dark-mode table th,
body.dark-mode table td {
  border-color: #444 !important;
}

.dark-toggle {
  cursor: pointer;
  color: white;
}

body.dark-mode .form-check-label {
  color: #ddd;
}

/* Registration & Login Page Light Mode Default Background */
.dark-mode-bg {
  background-color: #fff; /* white in light mode */
  color: #212529; /* default dark text */
}

/* Dark mode background and text color override */
body.dark-mode .dark-mode-bg {
  background-color: #121212 !important; /* dark background */
  color: #f1f1f1 !important; /* light text */
}

/* Optional: Adjust input and label colors in dark mode */
body.dark-mode .dark-mode-bg .form-label,
body.dark-mode .dark-mode-bg .form-control,
body.dark-mode .dark-mode-bg .input-group-text {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border-color: #444;
}

body.dark-mode .dark-mode-bg .form-control::placeholder {
  color: #aaa;
}
/* END Common Dark Mode Styles ************************************************************************* */


 /*registration and login page Light mode default background END */
  
/* END Common Dark Mode Styles ************************************************************************* */




  /* ===Custom CSS for countdown timer index.php=== */
  .countdown-circle {
    width: 80px !important;
    height: 80px !important;
  
  }
  /* ===EO Custom CSS for countdown timer index.php=== */
  


/* START Dashboard.php styling and animation for interactive  experience=== */



/* dashboard subject wise and full year */



:root {
  --primary: #4e73df;
  --success: #1cc88a;
  --info: #36b9cc;
  --warning: #f6c23e;
  --danger: #e74a3b;
}

body {
  background-color: #f8f9fc;
}

.profile-pic {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.nav-pills .nav-link.active {
  background-color: var(--primary);
  box-shadow: 0 4px 6px rgba(78, 115, 223, 0.3);
}

.nav-pills .nav-link {
  color: #5a5c69;
  font-weight: 500;
}

.card {
  border-radius: 0.5rem;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

  

.progress-circle {
  width: 100px;
  height: 100px;
  position: relative;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle .circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 8;
}

.progress-circle .circle-progress {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283 - (283 * var(--percentage)) / 100);
  transition: stroke-dashoffset 1s ease-in-out;
}

.progress-circle .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

.trophy-icon {
  background: linear-gradient(135deg, rgba(246,194,62,0.2) 0%, rgba(246,194,62,0.1) 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane {
  animation: fadeIn 0.5s ease-out;
}

.table-hover tbody tr {
  transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .progress-circle {
    width: 80px;
    height: 80px;
  }

  .card-body {
    padding: 1rem;
  }

  .profile-pic {
    width: 60px;
    height: 60px;
  }
}

.table-responsive {
  overflow-x: hidden !important;
}

.table-responsive table {
  table-layout: fixed;
  width: 100%;
  white-space: normal;
  word-wrap: break-word;
}


/* dashboard subject wise and full year */


.sidebar-card {
  max-height: none !important;  /* no max height */
  overflow-y: visible !important; /* no scrollbar */
  height: 90vh;                 /* fixed height relative to viewport */
}

.list-group-item {
  font-size: 0.89rem;           /* a bit bigger font */
  padding: 0.5rem 1rem;         /* more comfortable padding */
  line-height: 1.3;             /* better line height */
}

.list-group-item i {
  font-size: 1rem;              /* slightly bigger icons */
  margin-right: 0.7rem;
}

.list-group-item.fw-bold {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  margin-top: 0.3rem !important;
  margin-bottom: 0.3rem !important;
  border-bottom: 2px solid #4e73df;  /* Blue line below */
  background-color: #f8f9fc;
  color: #4e73df;
  font-weight: 600;
  font-size: 1.1rem; /* Slightly bigger font size */
}







.list-group-item-action {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.list-group-item-action::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #007bff;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.list-group-item-action:hover::before {
  transform: scaleY(1);
}

.list-group-item-action:hover {
  background-color: #eaf4ff;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
  transform: translateX(5px);
}


/*dashboard Emoji*/



#emoji {
  display: inline-block;
  font-size: 1em;
  transition: all 0.4s ease-in-out;
  color: #ff9800;
  text-shadow: 0 0 8px rgba(255, 153, 0, 0.8);
}

.emoji-animate {
  animation: flip-glow 0.6s ease-in-out;
}

@keyframes flip-glow {
  0% {
    transform: scale(0.6) rotateY(0deg);
    opacity: 0;
    text-shadow: none;
  }
  50% {
    transform: scale(1.4) rotateY(180deg);
    opacity: 0.7;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
  }
  100% {
    transform: scale(1) rotateY(360deg);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.9);
  }
}

/*profile pic along the welcome message*/
/* Profile Picture Pulse Glow Effect */
.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #007bff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
  animation: pulse-glow 1.2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.7);
    transform: scale(1.05);
  }
  50% {
    box-shadow: 0 0 16px rgba(0, 123, 255, 1);
    transform: scale(1.15);
  }
}




/* END Dashboard.php styling *********************************************************** */


/* START Select Page Card Hover(select.php) === */
.select-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  border: 1px solid #dee2e6;
  background-color: white;
  position: relative;
}

.select-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  border-color: #0d6efd;
  background-color: rgba(0, 0, 0, 0.3);
}

.select-card:hover .card-title {
  color: #0d6efd;
  transform: scale(1.05);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* END Select Page Card Hover(select.php) === ****************************************************** */

/* START Common style for TEST and EXAM PAGE STYLES (test.php and previous_exam.php page) */

/* Palette Button Style */
.palette-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: black;
  cursor: pointer;
}


/* Green = Answered */
.answered {
  background-color: #28a745 !important;
  color: white !important;
}

/* Orange = Skipped */
.skipped {
  background-color: #fd7e14 !important;
  color: white !important;
}



/* ================================
   RTL Support for Question Section
   ================================ */

/* Apply RTL direction to the question section */
/* Overall RTL layout */
.rtl-questions {
  direction: rtl;
  text-align: right;
  font-family: 'Tahoma', sans-serif;
}

/* Option container styled as a box */
.rtl-questions .form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 10px 14px;
  margin-bottom: 0.8rem;
  background-color: #f9f9f9;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}

/* Hover effect */
.rtl-questions .form-check:hover {
  background-color: #e6f0ff;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25);
  border-color: #80b3ff;
}

/* Label text */
.rtl-questions .form-check-label {
  font-weight: normal;
  flex: 1;
  direction: rtl;
  text-align: right;
  font-size: 1rem;
  color: #222;
  transition: color 0.3s ease;
}

/* Radio button alignment */
.rtl-questions .form-check-input {
  margin-right: 0.5rem;
  margin-left: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
/*common style for glowing selected option for test.php and previous_exam.php page*/
/* Selected state */
.rtl-questions .form-check.selected {
  background-color: #cce5ff;
  border-color: #004085;
  box-shadow: 0 0 8px rgba(0, 64, 133, 0.6);
}

/* Selected label text */
.rtl-questions .form-check.selected .form-check-label {
  color: #004085;
  font-weight: 600;
}

.answered-count {
  color: #28a745; /* same green as palette */
  font-weight: 900 !important;
}

.remaining-count {
  color: #dc3545; /* Bootstrap danger red */
  font-weight: 600;
}

.timer-highlight {
  font-weight: 700;             /* extra bold */
  background-color: #ffeeba;    /* light yellow background */
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #ffc107;    /* yellow border */
  color: #856404 !important;    /* dark yellow text, override text-danger */
}

.ms-extra {
  margin-left: 7rem; /* or adjust to 4.5rem, 5rem, etc. */
}

/* progress bar of full year*/
.progress {
  direction: rtl;
}




/* END Common style for TEST and EXAM PAGE STYLES (test.php and previous_exam.php page) ******************************* */






/* START Result Table Styling (result.php page) === */
.result-table th,
.result-table td {
  vertical-align: middle;
}

.result-table .text-success {
  font-weight: 600;
}

.result-table .text-danger {
  font-weight: 600;
}
/* END Of Result Table Styling (result.php page) === ****************************************/



/* START Leaderboard table profile pic style(leaderboard.php page) === */
/* leaderboard.css */
.profile-picture {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

/* END Leaderboard table profile pic style(leaderboard.php page) === ************************ */




/*START of (student_profile.php) */

#profile-wrapper {
  min-height: 600px;
  box-shadow: 0 0 20px rgb(0 0 0 / 0.05);
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

.profile-pic-wrapper {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #0d6efd; /* Bootstrap primary */
}

.profile-pic-wrapper img.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

aside p i {
  margin-right: 0.4rem;
  color: #6c757d;
}

.nav-tabs .nav-link {
  font-weight: 600;
  font-size: 1rem;
}

.nav-tabs .nav-link.active {
  border-color: #0d6efd #0d6efd #fff;
  color: #0d6efd;
}

form label {
  font-weight: 600;
}

form button {
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  transition: background-color 0.3s ease;
}

form button:hover {
  filter: brightness(90%);
}

@media (max-width: 991.98px) {
  aside {
    border-right: none !important;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2rem;
  }
}


/*END of (student_profile.php) */



/* RESPONSIVENESS *************** /

/* index.php */



