body {
	/*background-color:#f5f7fa !important;*/
	background: linear-gradient(
		135deg,
		#00b0f0cc,
		#92d050cc
	) !important;
	font-family: 'roboto',sans-serif !important;
}
body.student-dashboard {
	background: linear-gradient(
		135deg,
		#00b0f0cc,
		#92d050cc
	) !important;
}
body.student-dashboard .site,
body.student-dashboard .site-content,
body.student-dashboard .content-area,
body.student-dashboard .entry-content,
body.student-dashboard main {
	background: linear-gradient(
		135deg,
		#00b0f0cc,
		#92d050cc
	) !important;
}
.student-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}
.dashboard-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 3rem;
}
.dashboard-tabs li {
  list-style: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.dashboard-tabs li.active,
.dashboard-tabs li:hover {
  background: #f5f7fa;
  border-bottom: 4px solid #0073aa;
}
.dashboard-content > .dashboard-panel {
  display: none;
}
.dashboard-section {
  margin-bottom: 4rem;
}
.dashboard-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #00467f;
}

.windows-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-window {
  display: flex;
  align-items: center;
  flex: 1 1 calc(30% - 1rem);
  min-width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.2s;
	overflow:hidden;
}
.dashboard-window:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	text-decoration:none;
}
.dashboard-window img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 0.75rem;
  border-radius: 4px;
}
.dashboard-window .window-title {
  display: block;
  margin: -22px -22px 18px -22px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #00b0f0 0%, #92d050 100%);
  border-radius: 24px 24px 0 0;
}
.section1 .dashboard-window .window-title,
.section2 .dashboard-window .window-title,
.section3 .dashboard-window .window-title {
	  color: #ffffff !important;
}
.dashboard-window-content {
    cursor: default;
    text-decoration: none;
    color: inherit;
    flex-direction: column;
    align-items: stretch;
}

.dashboard-window-content .window-title {
    display: block;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 10px;
    color: #0f172a;
}

.dashboard-window-content .window-content {
    width: 100%;
}

.dashboard-window-content .window-content p:last-child {
    margin-bottom: 0;
}

.dashboard-window-code pre {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13px;
}
@media (max-width: 768px) {
  .windows-container { flex-direction: column; }
  .dashboard-window { flex: 1 1 100%; }
}

/**quiz average**/
.db-quiz-average-widget {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.db-quiz-average-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.db-quiz-average-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.db-quiz-average-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 14px;
}

.db-quiz-average-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.db-quiz-average-course {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 14px;
    padding: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.db-quiz-average-course:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    border-color: rgba(59, 130, 246, 0.45);
	text-decoration:none;
	color:#00b0f0 !important;
}

.db-quiz-average-course-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
}

.db-quiz-average-attempts {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.db-quiz-average-score {
    font-size: 18px;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
    min-width: 86px;
    text-align: center;
}

.db-quiz-average-score.high-score {
    background: #dcfce7;
    color: #166534;
}

.db-quiz-average-score.mid-score {
    background: #fef9c3;
    color: #854d0e;
}

.db-quiz-average-score.low-score {
    background: #fee2e2;
    color: #991b1b;
}

.db-quiz-average-score.no-score {
    background: #e2e8f0;
    color: #475569;
    font-size: 13px;
}

.db-quiz-average-bar {
    grid-column: 1 / -1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.db-quiz-average-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    border-radius: inherit;
}

.db-quiz-average-message {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .db-quiz-average-course {
        grid-template-columns: 1fr;
    }

    .db-quiz-average-score {
        width: fit-content;
    }
}
/**end quiz aver**/

/**lowest score quiz**/
.db-lowest-widget {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.db-lowest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.db-lowest-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.db-lowest-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.db-lowest-course {
    margin-top: 26px;
}

.db-lowest-course:first-of-type {
    margin-top: 0;
}
/*
.db-lowest-course h4 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 850;
    color: #1e293b;
}
*/
.db-lowest-course h4 {
	display:flex;
	align-items:center;
	gap:12px;
  /*  position: relative;*/
    margin: 0 0 14px;
    /*padding-left: 18px;*/
    font-size: 17px;
    font-weight: 850;
    color: #1e293b;
}

.db-lowest-course h4::before {
    content: "";
	display:block;
	flex:0 0 5px;
	height:28px;
  /*  position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;*/
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00b0f0 0%, #92d050 100%);
}

.db-lowest-course h4 a {
    color: inherit;
    text-decoration: none;
	display:inline-block;
}

.db-lowest-course h4 a:hover {
    color: #00b0f0;
	text-decoration:underline;
}

.db-lowest-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
	margin-right:7px;
}

.db-lowest-bar-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr 70px;
    gap: 14px;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.db-lowest-bar-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
    border-color: rgba(37, 99, 235, 0.42);
	text-decoration:none;
	color:#00b0f0;
}

.db-lowest-label {
    min-width: 0;
}

.db-lowest-label strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 850;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-lowest-label span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-lowest-bar-track {
    position: relative;
    height: 14px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.db-lowest-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #facc15 100%);
    border-radius: inherit;
}

.db-lowest-score {
    font-size: 15px;
    font-weight: 900;
    color: #991b1b;
    text-align: right;
}

.db-lowest-failed-cats {
    display: none;
    margin: -4px 0 8px 274px;
    padding: 14px 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
}

.db-lowest-failed-cats.active {
    display: block;
}

.db-lowest-failed-title {
    font-size: 13px;
    font-weight: 850;
    color: #9a3412;
    margin-bottom: 10px;
}

.db-lowest-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.db-lowest-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.db-lowest-chip small {
    font-size: 11px;
    opacity: 0.82;
}

.db-lowest-message {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 800px) {
    .db-lowest-bar-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .db-lowest-score {
        text-align: left;
    }

    .db-lowest-failed-cats {
        margin-left: 0;
    }

    .db-lowest-label strong,
    .db-lowest-label span {
        white-space: normal;
    }
}
/**end lsq**/

/**last act**/
.db-last-activity-widget {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
    border: 1px solid rgba(147, 197, 253, 0.55);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
}

.db-last-activity-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.db-last-activity-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.db-last-activity-content {
    min-width: 0;
}

.db-last-activity-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 5px;
}

.db-last-activity-title {
    display: block;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 900;
    text-decoration: none;
}

.db-last-activity-title:hover {
    color: #2563eb;
	text-decoration:none;
}

.db-last-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.db-last-activity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.db-last-activity-button:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
	text-decoration:none;
	color:#00b0f0;
}

.db-last-activity-message {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .db-last-activity-widget {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .db-last-activity-button {
        width: fit-content;
    }
}
/**end lastact**/

/**studyp**/
.db-study-path-widget {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.db-study-path-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.db-study-path-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.035em;
}

.db-study-path-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.db-study-path-exam-form {
    display: flex;
    /*align-items: end;
    gap: 8px;*/
	align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.db-study-path-exam-form label {
    font-size: 12px;
    color: #475569;
    font-weight: 800;
	display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.db-study-path-exam-form input {
    display: block;
    margin-top: 4px;
    border: 3px solid #000000;
	background: inherit;
    color: #000000;
    border-radius: 25px;
    padding: 8px 10px;
	line-height: 1 !important;
}

.db-study-path-exam-form button {
    border: 0;
    background: inherit;
    color: #000000;
    border-radius: 25px;
	border: 3px solid #000000;
    padding: 9px 14px;
    font-weight: 600;
    cursor: pointer;
	display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
	vertical-align: middle !important;
	line-height: 1 !important;
}

.db-study-path-exam-form input[type="date"],
.db-study-path-exam-form button {
    min-height: 38px;
}

.db-study-path-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.db-study-path-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
}

.db-study-path-legend span::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
}

.db-study-path-legend .completed::before {
    background: #22c55e;
}

.db-study-path-legend .overdue::before {
    background: #ef4444;
}

.db-study-path-legend .not-due::before {
    background: #94a3b8;
}

.db-study-path-calendar {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
}

.db-study-path-week {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 12px;
    min-height: 180px;
}

.db-study-path-week-title {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.db-study-path-week-title small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.db-study-path-dropzone {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.db-study-path-dropzone a:hover {
	text-decoration:none;
	color:#00b0f0;
}

.db-study-path-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    padding: 10px 11px;
    border: 1px solid transparent;
    cursor: grab;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.db-study-path-item span {
    display: block;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.db-study-path-item small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.85;
}

.db-study-path-item.status-completed {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.db-study-path-item.status-overdue {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.db-study-path-item.status-not_due {
    background: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

.db-study-path-placeholder {
    height: 58px;
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    background: #eff6ff;
}

.db-study-path-message,
.db-overdue-widget {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.db-study-path-message.success {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.db-overdue-widget h3 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
}

.db-overdue-item {
    display: block;
    text-decoration: none;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
	margin-right: 7px;
}

.db-overdue-item strong {
    display: block;
    font-weight: 900;
}

.db-overdue-item span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .db-study-path-calendar {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {
    .db-study-path-header {
        flex-direction: column;
    }

    .db-study-path-calendar {
        grid-template-columns: 1fr;
    }

    .db-study-path-exam-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}
/**end studyp**/

/*new css for scode in board**/
/* =========================================================
   STUDENT DASHBOARD UI OVERRIDES
   Add this block at the very bottom of frontend.css
   ========================================================= */

/* Page shell */
body {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
}

.student-dashboard {
    max-width: 1480px;
    margin: 0 auto;
    padding: 24px;
    font-family: "Roboto", Arial, sans-serif;
    color: #0f172a;
}

/* Modern horizontal tabs */

.dashboard-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    border: 0;
    margin: 0 0 28px;
    padding: 8px;
   	background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 50px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.dashboard-tabs::-webkit-scrollbar {
    height: 8px;
}

.dashboard-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.dashboard-tabs li {
    flex: 0 0 auto;
    list-style: none;
    padding: 12px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    color: #000000;
	background: transparent;
	border: 3px solid #000000;
    transition: all 0.18s ease;
}

.dashboard-tabs li:hover {
    background: #92d050;
    color: #000000;
    /*border-bottom: 0;*/
}

.dashboard-tabs li.active {
    color: #ffffff;
    background: linear-gradient(135deg, #00b0f0 0%, #92d050 100%);
   /* border-bottom: 0;*/
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

/* Panels and sections */
.dashboard-content > .dashboard-panel {
    display: none;
}

.dashboard-section {
    margin-bottom: 34px;
    padding: 0;
}

.dashboard-section h2 {
    position: relative;
    margin: 0 0 16px;
    padding-left: 16px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.035em;
}

.dashboard-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #22c55e);
}

/* Use a true dashboard grid instead of uneven flex cards */
.windows-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Modern dashboard card */
.dashboard-window {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 112px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 24px;
    padding: 18px;
    box-sizing: border-box;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

a.dashboard-window {
    cursor: pointer;
}

.dashboard-window:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.13);
    border-color: rgba(37, 99, 235, 0.38);
}

.dashboard-window::after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 90px;
    height: 90px;
    border-radius: 999px;
    background: rgba(146, 208, 80, 1);
    pointer-events: none;
}

.dashboard-window img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    object-fit: cover;
    margin-right: 14px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.dashboard-window .window-title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* Content windows */
.dashboard-window-content {
    cursor: default;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}

.dashboard-window-content:hover {
    transform: none;
}

.dashboard-window-content > img {
    margin-bottom: 4px;
}

.dashboard-window-content > .window-title {
    display: block;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.dashboard-window-content .window-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
   /* max-height: 430px;
    overflow: auto;*/
    padding-right: 4px;
    box-sizing: border-box;
}

/* Smooth internal scrollbars */
.dashboard-window-content .window-content::-webkit-scrollbar,
.db-study-path-widget::-webkit-scrollbar,
.db-lowest-widget::-webkit-scrollbar,
.db-overdue-widget::-webkit-scrollbar,
.db-study-path-calendar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dashboard-window-content .window-content::-webkit-scrollbar-track,
.db-study-path-widget::-webkit-scrollbar-track,
.db-lowest-widget::-webkit-scrollbar-track,
.db-overdue-widget::-webkit-scrollbar-track,
.db-study-path-calendar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.dashboard-window-content .window-content::-webkit-scrollbar-thumb,
.db-study-path-widget::-webkit-scrollbar-thumb,
.db-lowest-widget::-webkit-scrollbar-thumb,
.db-overdue-widget::-webkit-scrollbar-thumb,
.db-study-path-calendar::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

/* Main window treatment */
.dashboard-window.main-window {
    grid-row: span 2;
    min-height: 244px;
    background:
        linear-gradient(145deg, rgba(239, 246, 255, 1), rgba(255, 255, 255, 1));
    border-color: rgba(147, 197, 253, 0.95);
}

.dashboard-window.main-window::after {
    width: 90px;
    height: 90px;
    right: -35px;
    top: -35px;
    background: rgba(146, 208, 80, 1);
}

/* Make certain large shortcode windows span more space when supported */
.dashboard-window-shortcode:has(.db-study-path-widget) {
    grid-column: 1 / -1;
}

.dashboard-window-shortcode:has(.db-lowest-widget) {
    grid-column: span 2;
}

.dashboard-window-shortcode:has(.db-overdue-widget) {
    grid-column: span 1;
}

/* Fallback: if :has is unsupported, mark the Study Path window as Main Window in the builder */
.dashboard-window-shortcode.main-window {
    grid-column: 1 / -1;
}

/* Remove nested "card inside card" effect for shortcode widgets */
.dashboard-window-shortcode .db-quiz-average-widget,
.dashboard-window-shortcode .db-lowest-widget,
.dashboard-window-shortcode .db-last-activity-widget,
.dashboard-window-shortcode .db-study-path-widget,
.dashboard-window-shortcode .db-overdue-widget,
.dashboard-window-shortcode .db-study-path-message {
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Prevent repeated visual headers inside shortcode cards */
.dashboard-window-shortcode .db-quiz-average-header h3,
.dashboard-window-shortcode .db-lowest-header h3 {
    display: none;
}

.dashboard-window-shortcode .db-quiz-average-header,
.dashboard-window-shortcode .db-lowest-header {
    margin-bottom: 12px;
}

.dashboard-window-shortcode .db-quiz-average-header p,
.dashboard-window-shortcode .db-lowest-header p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

/* Last activity compact mode */
.dashboard-window-shortcode .db-last-activity-widget {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
}

.dashboard-window-shortcode .db-last-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.dashboard-window-shortcode .db-last-activity-title {
    font-size: 14px;
}

.dashboard-window-shortcode .db-last-activity-meta {
    font-size: 12px;
}

.dashboard-window-shortcode .db-last-activity-button {
    padding: 8px 12px;
    font-size: 12px;
}

/* Quiz average compact mode */
.dashboard-window-shortcode .db-quiz-average-course {
    padding: 12px;
    border-radius: 16px;
}

.dashboard-window-shortcode .db-quiz-average-score {
    min-width: 74px;
    font-size: 15px;
    padding: 7px 10px;
}

/* Lowest lesson scores: make it fit inside dashboard cards */
.dashboard-window-shortcode .db-lowest-widget {
    max-height: 520px;
    overflow: auto;
}

.dashboard-window-shortcode .db-lowest-course {
    margin-top: 18px;
}

.dashboard-window-shortcode .db-lowest-course:first-of-type {
    margin-top: 0;
}

.dashboard-window-shortcode .db-lowest-course h4 {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 10px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    font-size: 14px;
}

.dashboard-window-shortcode .db-lowest-bar-row {
    grid-template-columns: minmax(140px, 220px) minmax(120px, 1fr) 64px;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
}

.dashboard-window-shortcode .db-lowest-label strong {
    font-size: 13px;
}

.dashboard-window-shortcode .db-lowest-label span {
    font-size: 11px;
}

.dashboard-window-shortcode .db-lowest-score {
    font-size: 13px;
}

.dashboard-window-shortcode .db-lowest-failed-cats {
    margin-left: 0;
}

/* Study Path should stay inside the dashboard */
.dashboard-window-shortcode .db-study-path-widget {
    max-height: inherit !important;
    /*overflow: auto;*/
}
.dashboard-section-tabs .section3 .dashboard-window-content .window-content {
	max-height:1000px !important;
	overflow:none !important;
}

.dashboard-window-shortcode .db-study-path-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.dashboard-window-shortcode .db-study-path-header h3 {
    display: none;
}

.dashboard-window-shortcode .db-study-path-header p {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #334155;
}

.dashboard-window-shortcode .db-study-path-exam-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
}

.dashboard-window-shortcode .db-study-path-exam-form input {
    max-width: 160px;
}

.dashboard-window-shortcode .db-study-path-legend {
    margin-bottom: 12px;
}

/* Horizontal calendar scroll instead of overflowing outside margins */
.dashboard-window-shortcode .db-study-path-calendar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 240px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
   	/*overflow-y: hidden;*/
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
}

.dashboard-window-shortcode .db-study-path-week {
    min-height: 250px;
    padding: 12px;
    border-radius: 18px;
    scroll-snap-align: start;
}

.dashboard-window-shortcode .db-study-path-week-title {
    font-size: 13px;
}

.dashboard-window-shortcode .db-study-path-item {
    padding: 10px;
    border-radius: 14px;
}

.dashboard-window-shortcode .db-study-path-item span {
    font-size: 12px;
}

.dashboard-window-shortcode .db-study-path-item small {
    font-size: 10px;
}

/* Overdue/offtrack lessons */
.dashboard-window-shortcode .db-overdue-widget {
    max-height: 420px;
    overflow: auto;
}

.dashboard-window-shortcode .db-overdue-widget h3 {
    display: none;
}

.dashboard-window-shortcode .db-overdue-item {
    margin-bottom: 10px;
    border-radius: 14px;
    padding: 12px;
}

/* Empty/success states */
.dashboard-window-shortcode .db-study-path-message {
    margin: 0;
    padding: 14px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 16px;
}

.dashboard-window-shortcode .db-study-path-message.success {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 1px solid #86efac;
}

/* Code windows */
.dashboard-window-code pre {
    max-height: 320px;
    overflow: auto;
    margin: 0;
    border-radius: 16px;
}

/* Better single-window sections */
.windows-container > .dashboard-window:only-child {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1180px) {
    .student-dashboard {
        max-width: 100%;
        padding: 18px;
    }

    .windows-container {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .dashboard-window-shortcode:has(.db-lowest-widget) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .student-dashboard {
        padding: 14px;
    }

    .dashboard-tabs {
        margin-bottom: 22px;
    }

    .dashboard-section {
        margin-bottom: 28px;
    }

    .dashboard-section h2 {
        font-size: 19px;
    }

    .windows-container {
        grid-template-columns: 1fr;
    }

    .dashboard-window,
    .dashboard-window.main-window,
    .dashboard-window-shortcode.main-window,
    .dashboard-window-shortcode:has(.db-study-path-widget),
    .dashboard-window-shortcode:has(.db-lowest-widget) {
        grid-column: auto;
        grid-row: auto;
        min-height: auto;
    }

    .dashboard-window-content .window-content {
        max-height: 520px;
    }

    .dashboard-window-shortcode .db-study-path-header {
        position: static;
    }

    .dashboard-window-shortcode .db-study-path-calendar {
        grid-auto-columns: minmax(240px, 82vw);
    }

    .dashboard-window-shortcode .db-lowest-bar-row {
        grid-template-columns: 1fr;
    }

    .dashboard-window-shortcode .db-lowest-score {
        text-align: left;
    }

    .dashboard-window-shortcode .db-last-activity-widget {
        grid-template-columns: 1fr;
    }
}

/* Dashboard welcome popup */
.dashboard-welcome-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(420px, calc(100vw - 32px));
    padding: 16px 18px;
    background: linear-gradient(135deg, #00b0f0 0%, #92d050 100%);
    color: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dashboard-welcome-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dashboard-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    font-size: 22px;
}

.dashboard-welcome-text {
    min-width: 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.dashboard-welcome-close {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.dashboard-welcome-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .dashboard-welcome-toast {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}
/* Study Path task counter */
/*
.db-study-counter-widget {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    width: 100%;
}*/

.db-study-counter-widget {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    justify-items: center;
    width: 100%;
    text-align: center;
}

.db-study-counter-chart {
    --db-study-progress: 0;
    width: 232px;
    height: 232px;
    border-radius: 50%;
    background:
        conic-gradient(
            #92d050 calc(var(--db-study-progress) * 1%),
            #e2e8f0 0
        );
    display: flex;
    align-items: center;
    justify-content: center;
   /* box-shadow: 0 18px 36px rgba(37, 99, 235, 0.20);*/
}

.db-study-counter-inner {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.db-study-counter-inner strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.db-study-counter-inner span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.db-study-counter-content {
    min-width: 0;
}

.db-study-counter-kicker {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.db-study-counter-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.035em;
}

.db-study-counter-meta {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.db-study-counter-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.db-study-counter-meta .completed {
    background: #dcfce7;
    color: #166534;
}

.db-study-counter-meta .remaining {
    background: #f1f5f9;
    color: #475569;
}

.db-study-counter-progress {
    height: 9px;
    margin-top: 14px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.db-study-counter-content,
.db-study-counter-body,
.db-study-counter-info {
    width: 100%;
    text-align: center;
}

.db-study-counter-chart {
    margin: 0 auto;
}

.db-study-counter-progress {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.db-study-counter-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    border-radius: inherit;
}

@media (max-width: 640px) {
    .db-study-counter-widget {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .db-study-counter-chart {
        width: 118px;
        height: 118px;
    }

    .db-study-counter-inner {
        width: 82px;
        height: 82px;
    }

    .db-study-counter-inner strong {
        font-size: 23px;
    }
}

/* Section display modes */
.dashboard-sections-rows .dashboard-section {
    display: block;
}

.dashboard-section-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    margin: 0 0 12px;
    padding: 8px;
    list-style: none;
   /* background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);*/
}

.dashboard-section-tabs li {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 10px 15px;
   /* border-radius: 14px;*/
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.18s ease;
	background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 12px 20px rgba(0, 176, 240, 0.06);
}

.dashboard-section-tabs li:hover {
    background: #92d050;
    color: #ffffff;
}

.dashboard-section-tabs li.active {
    color: #ffffff;
    background: linear-gradient(135deg, #00f0b0 0%, #92d050 100%);
    box-shadow: 0 10px 22px rgba(146, 208, 80, 0.24);
	font-weight:900;
}

.dashboard-sections-tabs .dashboard-section {
    display: none;
    margin-bottom: 0;
}

.dashboard-sections-tabs .dashboard-section h2 {
    display: none;
}

/* Auto-added section classes for custom styling */
.dashboard-section.section1 {
    /* custom section 1 styles can go here */
}

.dashboard-section.section2 {
    /* custom section 2 styles can go here */
}

.dashboard-section.section3 {
    /* custom section 3 styles can go here */
}

.dashboard-section.section4 {
    /* custom section 4 styles can go here */
}

.dashboard-section.section5 {
    /* custom section 5 styles can go here */
}

/*icons front*/
.dashboard-tabs li,
.dashboard-section h2,
.dashboard-window .window-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-tab-icon,
.dashboard-section-icon,
.dashboard-window-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

img.dashboard-tab-icon,
img.dashboard-section-icon,
img.dashboard-window-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.dashboard-tab-icon {
    font-size: 16px;
}

.dashboard-section-icon {
    font-size: 20px;
}

.dashboard-window-icon {
    font-size: 18px;
}

/*gauge*/
.db-quiz-average-course.db-quiz-average-course-with-gauge {
	border:none !important;
}
/*
.db-quiz-average-widget {
  width: 100%;
}

.db-quiz-average-layout {
  display: flex;
  align-items: center;
  gap: 18px;
}

.db-quiz-average-gauge {
  --db-quiz-average: 0;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(
      rgba(0, 176, 240, 0.95) calc(var(--db-quiz-average) * 1%),
      rgba(226, 232, 240, 0.95) 0
    );
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.db-quiz-average-gauge-inner {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.db-quiz-average-gauge-inner strong {
  font-size: 1.25rem;
  line-height: 1;
  color: #0f172a;
  font-weight: 900;
}

.db-quiz-average-gauge-inner span {
  margin-top: 4px;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.db-quiz-average-content {
  flex: 1 1 auto;
  min-width: 0;
}

.db-quiz-average-content h3 {
  margin: 0 0 8px;
}

.db-quiz-average-score {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 10px;
}

.db-quiz-average-bar {
  height: 10px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.95);
}

.db-quiz-average-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 176, 240, 0.95) 0%,
    rgba(146, 208, 80, 0.95) 100%
  );
}

@media (max-width: 520px) {
  .db-quiz-average-layout {
    align-items: flex-start;
  }

  .db-quiz-average-gauge {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .db-quiz-average-gauge-inner {
    width: 62px;
    height: 62px;
  }

  .db-quiz-average-gauge-inner strong {
    font-size: 1rem;
  }
}

.db-quiz-average-course-with-gauge {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.db-quiz-average-course-with-gauge .db-quiz-average-gauge-column {
  width: 145px;
  min-width: 145px;
}

.db-quiz-average-course-with-gauge .db-quiz-average-highchart {
  width: 145px;
  height: 125px;
}

.db-quiz-average-course-with-gauge .db-quiz-average-course-main {
  min-width: 0;
}

.db-quiz-average-course-with-gauge .db-quiz-average-score {
  white-space: nowrap;
}

.db-highcharts-gauge-label {
  text-align: center;
  line-height: 1.1;
}

.db-highcharts-gauge-label strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: #0f172a;
}

.db-highcharts-gauge-label span {
  display: block;
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

@media (max-width: 700px) {
  .db-quiz-average-course-with-gauge {
    grid-template-columns: 1fr;
  }

  .db-quiz-average-course-with-gauge .db-quiz-average-gauge-column {
    width: 100%;
    min-width: 0;
  }

  .db-quiz-average-course-with-gauge .db-quiz-average-highchart {
    width: 100%;
    height: 145px;
  }
}*/

/*ld updat*/
.dashboard-window.has-window-background {
	background-image:
        linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)),
        var(--db-window-bg-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.dashboard-window-link-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.82;
}

.db-window-ld-stats {
    margin: 12px 0 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.db-window-ld-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.db-window-ld-stats.is-enrolled .db-window-ld-status {
    color: #166534;
    background: rgba(220, 252, 231, 0.95);
}

.db-window-ld-stats.not-enrolled .db-window-ld-status {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.95);
}

.db-window-ld-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.db-window-ld-stat {
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.db-window-ld-stat span {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 4px;
}

.db-window-ld-stat strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 900;
    color: #0f172a;
}

.db-window-ld-progress {
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.95);
}

.db-window-ld-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(0, 176, 240, 0.95) 0%,
        rgba(146, 208, 80, 0.95) 100%
    );
}

@media (max-width: 700px) {
    .db-window-ld-stat-grid {
        grid-template-columns: 1fr;
    }
}

/*std pth lck*/
.db-study-path-is-locked .db-study-path-dropzone {
    cursor: default;
}

.db-study-path-is-locked .db-study-path-item {
    cursor: not-allowed;
}

.db-study-path-is-locked .db-study-path-item {
    pointer-events: auto;
}

.db-study-path-locked-notice {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 700;
}

.db-study-path-is-locked .db-study-path-exam-form input,
.db-study-path-is-locked .db-study-path-exam-form button {
    cursor: not-allowed;
    opacity: 0.75;
}

/*qust mdl*/
.db-lowest-question-chip {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.db-lowest-question-chip:hover {
    filter: brightness(0.96);
}

.db-lowest-question-modal {
    display: none;
}

.db-lowest-question-modal.active {
    display: block;
}

.db-lowest-question-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99998;
}

.db-lowest-question-modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(50vw, 820px);
    max-width: 820px;
    min-width: 520px;
    max-height: calc(100vh - 170px);
    overflow: auto;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    z-index: 99999;
    padding: 18px 20px;
    font-size: 12px;
    line-height: 1.45;
}
/*
.db-lowest-question-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
*/
.db-lowest-question-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
/*
.db-lowest-question-modal-header {
    padding-right: 36px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}*/

.db-lowest-question-modal-header {
    margin: -18px -20px 14px -20px;
    padding: 16px 56px 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #00b0f0 0%, #92d050 100%);
    border-radius: 12px 12px 0 0;
    color: #fff;
}

.db-lowest-question-modal-header h3,
.db-lowest-question-modal-title {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
}

.db-lowest-question-modal-meta,
.db-lowest-question-count,
.db-lowest-question-category {
    font-size: 12px;
    opacity: 0.78;
}

.db-lowest-question-modal-header h3,
.db-lowest-question-modal-title {
    color: #fff;
}

.db-lowest-question-modal-meta {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.db-lowest-question-count {
    margin-bottom: 5px;
    font-weight: 700;
}

.db-lowest-question-category {
    margin-bottom: 12px;
}

.db-lowest-question-text {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.55;
}

.db-lowest-question-text p {
    margin-top: 0;
    margin-bottom: 8px;
}

.db-lowest-modal-answer-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.db-lowest-modal-answer-choice {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    padding: 9px 10px;
    margin-bottom: 7px;
    border: 1px solid #e2e5ea;
    border-radius: 7px;
    background: #fafafa;
    font-size: 12px;
    line-height: 1.4;
}

.db-lowest-answer-letter {
    font-weight: 700;
    min-width: 18px;
}

.db-lowest-answer-text {
    flex: 1;
}

.db-lowest-correct-choice {
    border-color: #67b77c;
    background: #f1fbf4;
}

.db-lowest-selected-wrong-choice {
    border-color: #d96b6b;
    background: #fff5f5;
}

.db-lowest-correct-label,
.db-lowest-selected-label {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.db-lowest-correct-label {
    color: #1f7a3f;
}

.db-lowest-selected-label {
    color: #b42318;
}

.db-lowest-student-answer-box {
    margin: 12px 0 14px;
    padding: 10px 12px;
    border: 1px solid #f1c6c6;
    border-left: 4px solid #d63638;
    background: #fff7f7;
    border-radius: 7px;
    font-size: 12px;
}

.db-lowest-student-answer-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #b42318;
}

.db-lowest-student-answer-list {
    margin: 0;
    padding-left: 18px;
}

.db-lowest-student-answer-list li {
    margin-bottom: 4px;
}

.db-lowest-answer-explanation {
    margin-top: 14px;
    padding: 12px;
    border-left: 4px solid #2271b1;
    background: #f6f9fc;
    border-radius: 7px;
    font-size: 12px;
}

.db-lowest-explanation-title {
    font-weight: 700;
    margin-bottom: 7px;
    font-size: 13px;
}

.db-lowest-explanation-text p {
    margin-top: 0;
    margin-bottom: 8px;
}

.db-lowest-question-modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.db-lowest-question-modal-footer button {
    min-width: 90px;
    padding: 8px 13px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
}

.db-lowest-question-modal-footer button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .db-lowest-question-modal-box {
        width: min(76vw, 760px);
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .db-lowest-question-modal-box {
        width: calc(100vw - 24px);
        max-width: none;
        min-width: 0;
        max-height: calc(100vh - 32px);
        padding: 16px;
        border-radius: 10px;
    }

    .db-lowest-modal-answer-choice {
        display: block;
    }

    .db-lowest-answer-letter {
        display: inline-block;
        margin-right: 5px;
    }

    .db-lowest-correct-label,
    .db-lowest-selected-label {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
	
	.db-lowest-question-modal-header {
        margin: -16px -16px 14px -16px;
        padding: 15px 48px 13px 16px;
    }
}

@media (max-width: 480px) {
    .db-lowest-question-modal-box {
        width: calc(100vw - 14px);
        max-height: calc(100vh - 14px);
        padding: 14px;
    }

    .db-lowest-question-modal-header h3,
    .db-lowest-question-modal-title {
        font-size: 15px;
    }

    .db-lowest-question-modal-footer {
        flex-direction: column;
    }

    .db-lowest-question-modal-footer button {
        width: 100%;
    }
	
	.db-lowest-question-modal-header {
        margin: -14px -14px 12px -14px;
        padding: 14px 44px 12px 14px;
    }
}