/**
 * Public styles for LearnDash Study Planner
 */

/* Add FontAwesome for icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* General Styles */
.ld-studyplanner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Section */
.ld-studyplanner-header {
  margin-bottom: 30px;
}

.ld-studyplanner-header h2 {
  margin-bottom: 20px;
  color: #333;
}

/* Setup Form */
.ld-studyplanner-setup {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ld-studyplanner-form {
  max-width: 500px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Overview Section */
.ld-studyplanner-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.exam-info,
.progress-summary {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Countdown Timer */
.countdown-timer {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-size: 24px;
  font-weight: bold;
  color: #0073aa;
}

.countdown-label {
  display: block;
  font-size: 12px;
  color: #666;
}

/* Progress Bars */
.progress-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  margin: 5px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b5e20 0%, #43a047 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.progress-fill:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 25px 25px;
  border-radius: 10px;
  animation: move 1.5s linear infinite;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

/* Schedule Section */
.ld-studyplanner-schedule {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.schedule-calendar {
  margin-bottom: 20px;
}

.schedule-list {
  margin-top: 20px;
}

/* Progress Container */
.ld-studyplanner-progress-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Progress Overview */
.progress-overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 30px;
}

.progress-stats {
  display: grid;
  gap: 15px;
}

.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #666;
}

.stat-value {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #0073aa;
}

/* Progress Details */
.progress-details {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.progress-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: bold;
  color: #666;
}

.tab-button.active {
  color: #0073aa;
  border-bottom: 2px solid #0073aa;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Progress Items */
.progress-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

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

.progress-item-title {
  flex: 1;
}

.progress-item-status {
  margin-left: 20px;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-in-progress {
  background: #fff3cd;
  color: #856404;
}

.status-not-started {
  background: #f8d7da;
  color: #721c24;
}

/* Export Button */
.progress-export {
  text-align: right;
}

.progress-export .button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.progress-export .button:hover {
  background: #005177;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ld-studyplanner-overview,
  .progress-overview {
    grid-template-columns: 1fr;
  }

  .countdown-timer {
    flex-wrap: wrap;
  }

  .progress-tabs {
    flex-wrap: wrap;
  }

  .progress-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-item-status {
    margin-left: 0;
    margin-top: 10px;
  }
}

.ld-studyplanner-generate-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.ld-studyplanner-generate-form h2 {
  margin-top: 0;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.ld-studyplanner-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.ld-studyplanner-message.success {
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.ld-studyplanner-message.error {
  background: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.ld-studyplanner-plan {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
}

/* Header Styles */
.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.plan-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  position: relative;
}

.plan-header h2:before {
  content: "\f5ad";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #4caf50;
}

.exam-date-display {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.exam-date-label {
  font-weight: 600;
  margin-right: 8px;
}

.exam-date-value {
  color: #2196f3;
  font-weight: 600;
}

.change-exam-date {
  background: #f1f1f1;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 15px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.change-exam-date:hover {
  background: #e0e0e0;
}

/* Study Dashboard Styles */
.study-dashboard {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.study-dashboard:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, #4caf50, #8bc34a);
}

.study-dashboard h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.study-dashboard h3:before {
  content: "\f080";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
  color: #4caf50;
}

.study-dashboard p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #555;
}

/* Countdown Timer Styles */
.countdown-container {
  margin: 20px 0;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  position: relative;
}

.countdown-timer:before {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 24px;
  margin-right: 15px;
  color: #2196f3;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
  position: relative;
}

.countdown-item:not(:last-child):after {
  content: ":";
  position: absolute;
  right: -18px;
  top: 5px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
}

.countdown-value {
  font-size: 30px;
  font-weight: 700;
  color: #2196f3;
  line-height: 1;
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  min-width: 60px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.countdown-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  margin-top: 5px;
}

.countdown-text {
  font-size: 16px;
  font-weight: 600;
  margin-left: 10px;
  color: #555;
}

/* Progress Container Styles */
.progress-container {
  margin: 25px 0;
  background: #f1f8e9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

.progress-container label:before {
  content: "\f0ae";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  color: #4caf50;
}

.progress-bar {
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.progress-fill:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: move 2s linear infinite;
  border-radius: 10px;
}

@keyframes move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.progress-stats {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
  font-weight: 600;
  color: #4caf50;
}

/* Study Stats Styles */
.study-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.stat-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-item:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  opacity: 0.1;
  color: #2196f3;
}

.stat-item:nth-child(1):before {
  content: "\f783"; /* calendar-day */
}

.stat-item:nth-child(2):before {
  content: "\f252"; /* hourglass-start */
}

.stat-item:nth-child(3):before {
  content: "\f253"; /* hourglass-end */
}

.stat-item:nth-child(4):before {
  content: "\f254"; /* hourglass-half */
}

.stat-item label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2196f3;
}

/* Week Section Styles */
.week-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.week-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.week-section.completed {
  border-left: 5px solid #4caf50;
}

.week-section.in-progress {
  border-left: 5px solid #ffc107;
}

.week-section.not-started {
  border-left: 5px solid #9e9e9e;
}

.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.week-header h3 {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
}

.week-header h3:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 10px;
}

.week-section.completed .week-header h3:before {
  content: "\f058"; /* check-circle */
  color: #4caf50;
}

.week-section.in-progress .week-header h3:before {
  content: "\f06e"; /* eye */
  color: #ffc107;
}

.week-section.not-started .week-header h3:before {
  content: "\f111"; /* circle */
  color: #9e9e9e;
}

.week-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 7px;
  font-size: 14px;
}

.status-badge.completed,
.status-badge.status-completed {
  background: #1b5e20;
  color: white;
}

.status-badge.completed:before,
.status-badge.status-completed:before {
  content: "\f00c"; /* check */
}

.status-badge.in-progress {
  background: #e65100;
  color: white;
}

.status-badge.in-progress:before {
  content: "\f110"; /* spinner */
}

.status-badge.not-started,
.status-badge.status-not-started {
  background: #424242;
  color: white;
}

.status-badge.not-started:before,
.status-badge.status-not-started:before {
  content: "\f12a"; /* exclamation */
}

/* Table Styles */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  text-align: left;
  padding: 12px 15px;
  background: #f8f9fa;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}

.schedule-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr.completed td {
  background-color: #f1f8e9;
}

.schedule-table tr.lesson-header td {
  background: #f1f8e9;
  font-weight: 600;
}

.schedule-table tr:hover td {
  background-color: #fafafa;
}

/* Button Styles */
.mark-complete-btn {
  padding: 8px 16px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background-color: #f1f1f1 !important;
  color: #333 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  min-width: 120px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.mark-complete-btn:before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  margin-right: 8px !important;
  font-size: 14px !important;
}

.mark-complete-btn:not(.completed):before {
  content: "\f00c" !important; /* check */
}

.mark-complete-btn.completed:before {
  content: "\f12d" !important; /* eraser */
}

.mark-complete-btn:hover {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.mark-complete-btn.completed {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
  color: white !important;
}

.mark-complete-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Modal Styles */
.exam-date-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input[type="date"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.cancel-btn {
  padding: 8px 12px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.button-primary {
  padding: 8px 12px;
  background: #2196f3;
  border: 1px solid #1976d2;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.exam-date-modal {
  animation: fadeIn 0.3s ease;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2e9a47;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Notifications */
.ld-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ld-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.ld-notification-success {
  background-color: #2e9a47;
}

.ld-notification-error {
  background-color: #d63638;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* Study Schedule Section */
.study-schedule {
  margin-top: 40px;
}

.current-week {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #e2e4e7;
}

.current-week h3 {
  color: #1d2327;
  font-size: 1.5em;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f1;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.schedule-table th {
  text-align: left;
  padding: 12px 15px;
  background: #f8f9fa;
  color: #1d2327;
  font-weight: 600;
  border-bottom: 2px solid #e2e4e7;
}

.schedule-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f1;
  color: #50575e;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover {
  background: #f8f9fa;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  display: inline-block;
}

.status-completed {
  background-color: #4caf50;
  color: white;
}

.status-not-started {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #666;
}

.week-section {
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.week-section.completed {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.week-section.in-progress {
  border-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.05);
}

.week-section.not-started {
  border-color: #e0e0e0;
  background-color: #f5f5f5;
}

.week-header {
  padding: 1rem;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.week-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.week-status {
  font-weight: bold;
}

.week-status .status-badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.week-status .status-badge.completed {
  background-color: #1b5e20;
  color: white;
}

.week-status .status-badge.in-progress {
  background-color: #e65100;
  color: white;
}

.week-status .status-badge.not-started {
  background-color: #424242;
  color: white;
}

.week-content {
  padding: 1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th {
  text-align: left;
  padding: 0.75rem;
  background-color: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
}

.schedule-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.schedule-table tr.completed td {
  color: #4caf50;
}

.lesson-indent {
  margin-left: 1rem;
  font-weight: bold;
  color: #666;
}

.review-period {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.review-period h3 {
  margin-top: 0;
  color: #333;
}

.review-schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-date {
  font-weight: bold;
  color: #333;
  min-width: 120px;
}

.review-title {
  color: #666;
}

.mark-complete-btn {
  padding: 8px 16px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  background-color: #f1f1f1 !important;
  color: #333 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  min-width: 120px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.mark-complete-btn:before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  margin-right: 8px !important;
  font-size: 14px !important;
}

.mark-complete-btn:not(.completed):before {
  content: "\f00c" !important; /* check */
}

.mark-complete-btn.completed:before {
  content: "\f12d" !important; /* eraser */
}

.mark-complete-btn:hover {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.mark-complete-btn.completed {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
  color: white !important;
}

.mark-complete-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.schedule-table td.actions {
  text-align: center;
}

/* Study Dashboard Styles */
.study-dashboard {
  margin-bottom: 30px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.study-dashboard h3 {
  margin-top: 0;
  color: #333;
  font-size: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.progress-container {
  margin-bottom: 20px;
}

.progress-container label {
  font-weight: 600;
  color: #444;
}

.progress-bar {
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background-color: #4caf50;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.progress-stats {
  text-align: right;
  font-weight: bold;
  color: #4caf50;
}

.study-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-item {
  background-color: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stat-item label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* Animations for countdown timer */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 1s ease;
}

/* Accordion Styles */
.accordion-toggle {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.accordion-toggle:hover {
  background-color: #f0f8ff;
}

.accordion-toggle:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #4caf50, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accordion-toggle:hover:after {
  opacity: 1;
}

.accordion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  color: #424242;
  transition: all 0.3s ease;
  background: #f0f0f0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.accordion-icon i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.week-section.active .accordion-icon i {
  transform: rotate(180deg);
  color: #1b5e20;
}

.week-section.active .accordion-content {
  max-height: 2000px; /* Large enough to fit content */
}

#reset-study-plan {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 14px;
}

#reset-study-plan:hover {
  background-color: #c82333;
}

#reset-study-plan:disabled {
  background-color: #f5acb5;
  cursor: not-allowed;
}

/* Week header icons */
.week-header h3:before {
  font-size: 18px;
  margin-right: 10px;
  opacity: 0.9;
}

.week-section.completed .week-header h3:before {
  color: #1b5e20;
}

.week-section.in-progress .week-header h3:before {
  color: #e65100;
}

.week-section.not-started .week-header h3:before {
  color: #424242;
}
