/* ====================================
Fonts
==================================== */
@font-face {
  font-family: leetTxt;
  src: url(fonts/Manrope-Regular.ttf);
}
@font-face {
  font-family: leetHead;
  src: url(fonts/geograph-medium.ttf);
}
@font-face {
  font-family: leetThin;
  src: url(fonts/Manrope-Light.ttf) format('truetype');
}
@font-face {
  font-family: leetLogoFont;
  src: url(fonts/geograph-medium.ttf);
}

/* ====================================
Variables
==================================== */
:root {
    --main-bg-color: #ffffff;
    --sec-bg-color: #c8c8c8;
    --thr-bg-color: #efefef;
    --main-acc-color: #78A341;
    --sec-acc-color: #b01e1e;
    --main-acc-color-2: #4b6e13;
    --sec-acc-color-2: #701302;
    --main-txt-color: #4c4c4c;
    --start-blue:#1368E8;
    --start-blue-2:#0a4eb5;
    --bodycolor: #f5f5f5;
}

/* ====================================
Reset and Base
==================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--main-bg-color);
}
body {
  color: var(--main-txt-color);
  font-family: leetTxt, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color:var(--bodycolor);
}
a {
  color: var(--accent-primary);
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img{
  border-radius: .5rem;
  max-width: 100%;
}
.sessionvars ul{
  font-size: 80%;
}

/* ====================================
Forms and Buttons
==================================== */

form textarea, form select, form input[type="text"], form input[type="email"], input[type="email"], form input[type="number"],input[type="url"],form input[type="password"], input[type="password"] {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  color: var(--main-txt-color);
  border: 1px solid var(--sec-bg-color);
  border-radius: 0.4rem;
  padding: .5rem;
  font-size: 1rem;
  font-size: 16px !important;
}

form input[type="text"], form textarea, form select, input[type="text"],  input[type="email"], form input[type="password"], input[type="password"] , textarea, select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
    /*background-color: var(--thr-bg-color);*/
    color: var(--main-txt-color);
    border: 1px solid var(--sec-bg-color);
    border-radius: .4rem;
    padding: .5rem;
    box-shadow: 0 0px 6px rgb(0 0 0 / 0.2);
    font-size: 1rem;
    font-size: 16px !important;
}

input[type="submit"]{
  margin: 0.6rem 0;
  padding: 0.6rem 1.5rem;
  background-color: var(--main-acc-color);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

input[type="file"] {
  padding: 0.2rem .2rem;
    background-color: #23241f;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}
.button.small {
  font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    margin: .4rem;
    background: var(--main-acc-color);
    color: var(--main-bg-color);
    border-radius: .5rem;
    text-align: center;
    display: block;
}

button.wide {
  font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    margin: .4rem;
    background: var(--main-acc-color);
    color: var(--main-bg-color);
    border-radius: .5rem;
    text-align: center;
    display: block;
    width: 100%;
}
.button.benutzerbutton{
    padding: 0.2rem 0.4rem;
    border-radius: .5rem;
    text-align: center;
    display: block;
    font-size: .7rem;
}
.button.benutzerbutton:hover{
    color: var(--main-acc-color);
}
/* Make form elements take full width */
form label,
label,
form select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

form textarea{
  display: flex;
    width: 100%;
    max-width: 100%;
}


input[type="submit"]{
  margin: .6rem 0;
}

@media (min-width: 768px) {
  .button.small {
    width: auto;
    min-width: 0;
  }
}
button,
a.button{
  background-color: var(--main-acc-color);
    border: none;
    color: var(--main-bg-color);
    padding: .3rem .5rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: .3rem;
    border-radius: 1rem;
    min-height: 2rem;
    height: 2rem;
    min-width: 140px;
}
button:hover,
button:hover{
  background-color: var(--main-acc-color-2);
}
.startbutton{
  background-color: var(--start-blue);
    border: none;
    color: var(--main-bg-color);
    padding: .3rem .5rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: .3rem;
    border-radius: .5rem;
    min-height: 2rem;
    height: 2rem;
    width: 45%;
}
.startbutton:hover{
  background-color: var(--start-blue-2);
}
.rundbutton{
  background-color: var(--main-acc-color);
    border: none;
    color: var(--main-bg-color);
    padding: .3rem .5rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: .3rem;
    border-radius: .5rem;
    min-height: 2rem;
    height: 2rem;
    width: 45%;
}
.rundbutton:hover{
  background-color: var(--main-acc-color-2);
}
/* ---------------------- Structure ----------------------- */
.indexcontent{
  padding-top: 1rem !important;
  min-height: 90vh;
}
.chrd{
  background-color:#F5F5F5;
}
.wbg{
  background-color:#FFFFFF;
  border-radius: .5rem;
  padding: 1rem 0.5rem !important;
}
.wrapper {
  margin: 0 auto;
  width: 100%;
  padding: 0;
  /*background-color: #F5F5F5;*/
}
.wgrey{
  background-color: #F5F5F5;
}

@media (min-width: 768px) {
  .wrapper {
    padding: 0 15px;
  }
}

@media (min-width: 1200px) {
  .wrapper {
    padding: 0 10px;
    max-width: 1200px;
  }
}

@media (min-width: 1400px) {
  .wrapper {
    padding: 0 10px;
    max-width: 1400px;
  }
}

.headerwrapper{
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.column {
  flex: 1 1 100%;
  min-width: 0;
  padding: 0 .7rem;
}
.columnz {
  flex: 1 1 100%;
  min-width: 0;
}
.column p {
  margin:0;
}

.column-2 {
  flex: 1 1 calc(50% - 1rem);
}
.column-3 {
  flex: 1 1 calc(33.33% - 1rem);
}
.column-4 {
  flex: 1 1 calc(25% - 1rem);
}
.column-5 {
  flex: 1 1 calc(20% - 1rem);
}

/* Media Queries */
@media (min-width: 768px) {
  /* Structure */
  .column, .columnz {
    flex: 1 1 0;
  }
}

/* ----------------------- Header ---------------------- */
header {
  background-color: var(--main-bg-color);
  border-bottom: 1px solid var(--sec-bg-color);
  padding: 1rem;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

footer {
  background-color: var(--main-bg-color);
  border-bottom: 1px solid var(--sec-bg-color);
  padding: 1rem;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
  margin-top: 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: leetHead, sans-serif;
  font-weight: normal;
  margin: 0.5rem 0 1rem;
  color: var(--main-txt-color);
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  font-family: leetLogoFont, sans-serif;
  color: var(--main-acc-color);
}

h2 {
  font-size: 1.75rem;
  font-family: leetHead, sans-serif;
}

h3 {
  font-size: 1.5rem;
  font-family: leetTxt, sans-serif;
  color: var(--main-txt-color);
}

h4 {
  font-size: 1.25rem;
  font-family: leetTxt, sans-serif;
  color: var(--main-txt-color);
}

h5 {
  font-size: 1rem;
  font-family: leetThin, sans-serif;
  color: var(--main-txt-color);
}

h6 {
  font-size: 0.875rem;
  font-family: leetThin, sans-serif;
  color: var(--sec-acc-color);
}

p {
  font-family: leetTxt, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 0.8rem;
  color: var(--main-txt-color);
}

small {
  font-size: 0.75rem;
 /* color: var(--sec-acc-color);*/
  display: inline-block;
  margin-top: 0.25rem;
}

code {
  font-family: monospace, monospace;
  font-size: 0.85rem;
  background-color: var(--sec-bg-color);
  color: var(--main-acc-color);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
  background-color: var(--sec-acc-color);
  color: var(--main-bg-color);
  font-size: 0.9rem;
  border-radius: 6px;
}

ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--main-txt-color);
}

ul li {
  margin-bottom: 0.3rem;
}

.sortable {
    cursor: pointer;
}
.sortable:hover {
    text-decoration: underline;
}

nav {
  position: relative;
}

.menu-toggle {
  cursor: pointer;
  display: block;
  height: 25px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
}

.menu-toggle .bar {
  background-color: var(--main-acc-color);
  display: block;
  height: 3px;
  margin: 5px 0;
  transition: all 0.3s ease;
  width: 100%;
}

.nav-list {
  background-color: var(--thr-bg-color);
  border-top: 1px solid var(--sec-bg-color);
  display: none;
  flex-direction: column;
  left: 0;
  padding: 1rem;
  position: absolute;
  top: 100%;
  width: 100%;
  list-style: none;
  z-index: 999;
  font-size: 1.3rem;
}

.nav-list.active {
  display: block;
  position: absolute;
  left: -95vw;
  width: 100%;
  min-width: 100vw;
}

.nav-list li {
  margin: 0.5rem 0;
}

.nav-list a {
  display: block;
  padding: 0.5rem;
  font-family: leetTxt, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  font-weight: 400;
}

.nav-list a:hover {
  color: var(--main-acc-color);
}

.navicon{
  height: 15px;
  vertical-align: middle;
  margin-right: 5px;
  margin-top: -4px;
}

/* Media Queries */
@media (min-width: 768px) {
  .nav-list {
    background-color: transparent;
  }
  /* Header */
  header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0rem 2rem;
    margin-bottom: 2rem;
  }

  header h1 {
    font-size: 2rem;
    text-align: left;
  }

  .menu-toggle {
    display: none;
  }

  .nav-list {
    border-top: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    padding-top: .7rem;
    position: static;
  }

  .nav-list li {
    margin: 0 1rem;
  }

  .nav-list a {
    padding: 0;
  }
}
.abs1 {
  margin-top: 1rem !important;
}

.abs2 {
  margin-top: 2rem !important;
}

.abs3 {
  margin-top: 3rem !important;
}

.abs4 {
  margin-top: 4rem !important;
}

.abs5 {
  margin-top: 5rem !important;
}

.abs6 {
  margin-top: 6rem !important;
}

.abs7 {
  margin-top: 7rem !important;
}
/* ----------------------- Modals ---------------------- */
/* jscss/login_style.css */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: var(--thr-bg-color);
    margin: 5% auto;
    padding:1rem;
	font-size: 90%;
    width: 90%;
    max-width: 400px;
    border-radius: 5px;
    position: relative;
}

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

.modal-content h2 {
    margin-top: 0;
}

.modal-content form label {
    display: block;
    margin: 10px 0 5px;
}

.modal-content form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.modal-content form input[type="submit"] {
    background-color: #78A341;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.modal-content form input[type="submit"]:hover {
    background-color: #466123;
}
.company-info-box {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* --------------------------- COURSE FORM -----------------------*/

#courseForm label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: var(--main-txt-color);
}

#courseForm input[type="text"],
#courseForm input[type="number"],
#courseForm input[type="date"],
#courseForm textarea,
#courseForm select {
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

#courseForm input[type="checkbox"] {
    margin-right: 0.5rem;
}

#courseForm input[type="submit"] {
    width: fit-content;
    padding: 0.6rem 1.5rem;
    background-color: var(--sec-acc-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#courseForm input[type="submit"]:hover {
    background-color: var(--sec-acc-color);
}

#addBlocksArea {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px dashed var(--sec-bg-color);
    background-color: var(--sec-bg-color);
}

#addBlocksArea select,
#addBlocksArea button {
    margin-top: 0.5rem;
}

/* --------------------------- DASHBOARD COLLAPSIBLES -----------------------*/

.collapsible-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--sec-bg-color);
    border-radius: 6px;
    overflow: hidden;
}

.collapsible-header {
    background-color: var(--main-acc-color);
    color:var(--main-bg-color);
    padding: 0.2rem 1rem;
    cursor: pointer;
    position: relative;
}

.collapsible-header::after {
    content: '▾';
    position: absolute;
    right: 1rem;
    transition: transform 0.2s ease;
}

.collapsible-header.active::after {
    transform: rotate(180deg);
}

.collapsible-content {
    display: none;
    padding: 1rem 0;
    /*background-color: var(--sec-bg-color);*/
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.4);
}
.header-row {
	font-weight: bold;
}
#idPreviewContainer{
  padding: 1rem;
  border-radius: .4rem;
}

.scheinimg{
  max-height:350px;
}
/* --------------------------- TABLE FOR FIRMENBENUTZER -----------------------*/
.company_users {
  min-width: 100%;
  padding-top: .5rem;
}
/* Adjust column widths as needed (in %, rem, or flex) */
.col-name {
  flex: 2;
}
.col-email {
  flex: 3;
}
.col-role {
  flex: 2;
}
.col-login {
  flex: 2;
}
.col-action {
  flex: 1;
}
/* --------------------------- TABLE FOR BLOCKS IN COURSE_FORM.PHP -----------------------*/

.table-blocks {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    border: 1px solid var(--sec-acc-color);
    border-radius: 6px;
    overflow: hidden;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--sec-bg-color);
    padding: 0.75rem;
    align-items: center;
}

.table-head {
    font-weight: bold;
    border-bottom: 2px solid var(--sec-bg-color);
}

.table-cell {
    flex: 1;
    padding: 0.25rem 0.5rem;
}

/* --------------------------- SLIDES FORM STYLE -----------------------*/

.image-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-box {
    flex: 1;
    min-width: 140px;
    max-width: 50%;
}

.preview-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.preview-wrapper {
    position: relative;
}
.remove-preview-btn {
    margin-top: 0.3rem;
    background-color: var(--sec-bg-color);
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.preview-img {
    max-width: 100%;
    display: block;
    margin-bottom: 0.5rem;
}

#courseForm{
  display: block;
}

/* ===============================
Dashboard User Management Styles (Mobile-First)
=============================== */

.users .row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.users .header-row {
  display: none; /* Hidden on mobile */
}

.users .column {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Labels via pseudo-elements */
.users .col-name::before     { content: "Name: "; font-weight: bold; }
.users .col-email::before    { content: "Email: "; font-weight: bold; }
.users .col-role::before     { content: "Role: "; font-weight: bold; }
.users .col-login::before    { content: "Last Login: "; font-weight: bold; }
.users .col-action::before   { content: "Action: "; font-weight: bold; }

.users input[type="email"],
.users select,
.users button {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem;
  font-size: 0.95rem;
  background-color: #000;
  color: #fff;
  border: 1px solid #444;
}

.users button {
  cursor: pointer;
  background-color: #444;
  transition: background-color 0.2s;
}

.users button:hover {
  background-color: #666;
}

/* ===============================
Larger Screens (Desktop Layout)
=============================== */
@media (min-width: 768px) {
  .users .row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    min-width: 100%;
  }

  .users .header-row {
    display: flex;
    font-weight: bold;
    padding: 0.5rem 0;
  }

  .users .col-name   { flex: 1.5; }
  .users .col-email  { flex: 2; }
  .users .col-role   { flex: 1.5; }
  .users .col-login  { flex: 1.2; }
  .users .col-action { flex: 1; }

  .users .column::before {
    content: none !important; /* Hide mobile labels */
  }
}

/* ===============================
Courses Section Styles (Mobile-First)
=============================== */

.courses .row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.courses .header-row{
  display: none;
}

.courses .row.box {
  align-items: stretch;
}

.courses .column {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Header hidden on mobile */
.courses .row:first-child {
  display: none;
}

/* Labels for mobile view using ::before */
.courses .column:nth-child(1)::before { content: "Title: "; font-weight: bold; }
.courses .column:nth-child(2)::before { content: "Visibility: "; font-weight: bold; }
.courses .column:nth-child(3)::before { content: "Has Exam: "; font-weight: bold; }
.courses .column:nth-child(4)::before { content: "Created On: "; font-weight: bold; }
.courses .column:nth-child(5)::before { content: "Owner: "; font-weight: bold; }
.courses .column:nth-child(6)::before { content: "Actions: "; font-weight: bold; }

@media (min-width: 768px) {
  .courses .row {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    border-bottom: none;
    padding: 2rem 1rem;
    margin-bottom: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .courses .row:first-child {
    display: flex; /* Show the header row */
    font-weight: bold;
    padding: 1rem;
  }
  .courses .header-row{
    display: flex;
  }
  .courses .column {
    overflow: hidden;
  }

  /* Consistent column widths */
  .courses .column:nth-child(1) { flex: 2; }
  .courses .column:nth-child(2) { flex: 1.5; }
  .courses .column:nth-child(3) { flex: 1.2; }
  .courses .column:nth-child(4) { flex: 1.5; }
  .courses .column:nth-child(5) { flex: 1.2; }
  .courses .column:nth-child(6) { flex: 1.5; }

  /* Hide mobile labels */
  .courses .column::before {
    content: none !important;
  }
}

/* ===============================
Complete Profile
=============================== */

.progress-wrapper {
    margin: 20px auto;
    text-align: center;
}

.progress-bar {
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    list-style-type: none;
    position: relative;
}

.progress-bar li {
    position: relative;
    flex: 1;
    color: #999;
    text-align: center;
    font-size: 14px;
}

.progress-bar li::before {
    content: '';
    display: block;
    margin: 0 auto 10px;
    width: 30px;
    height: 30px;
    background: #ccc;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.4);
    position: relative;
}

.progress-bar li::after {
    content: '';
    position: absolute;
    top: 6px;
    left: -50%;
    height: 16px;
    width: 100%;
    background: #ccc;
    z-index: 1;
    border-radius: 5px;
}

.progress-bar li:first-child::after {
    display: none;
}

.progress-bar li.active {
    color: var(--main-acc-color);
    font-weight: bold;
}

.progress-bar li.active::before {
    background: var(--main-acc-color);
}

.progress-bar li.active + li::after {
    background: var(--main-acc-color);
}

.progress-bar li.done {
    color: var(--main-acc-color);
    font-weight: normal;
}

.progress-bar li.done::before {
    background: var(--main-acc-color);
}

.progress-bar li.done + li::after {
    background: var(--main-acc-color);
}

.middlebox{
    margin: 2rem auto 0 auto;
    background-color: var(--main-bg-color);
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.4);
    padding: 1rem;
    border-radius: .5rem;
    display: block;
    position: relative;
    z-index: 999;
}
.shadowbox{
    margin: 1rem auto 1rem auto;
    background-color: var(--main-bg-color);
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.4);
    padding: 1rem;
    border-radius: .5rem;
}
/* user_management */
.header-row{
  padding-bottom: .7rem;
  font-size: .8rem;
  position: relative;
}
.user-row,
.company-row{
  padding: 0rem;
  font-size: .8rem;
  gap: .1rem;
  position: relative;
}
.header-row::after,
.user-row::after,
.company-row::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, white, grey, white);
}

/* ************************ ansprechpartner ********************** */
.ansprechpartner{
  padding:1rem;
  border-radius: .5rem;
  box-shadow: 0 0px 6px rgb(0 0 0 / 0.2);
}
canvas#userPerMonthChart {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: .6rem;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.compmanagement350{
  padding:1rem;
  border-radius: .5rem;
  height:400px;
}

/* ************************ courses_manage ********************** */
.course-row {
    border: 1px solid var(--main-txt-color) !important;
    border-radius: .5rem;
    margin: 1rem 0;
}

.course-row .course-thumb {
    flex-grow: 1 !important;
}

.course-row .info {
    flex-grow: 3!important;
}

.course-row .actions {
    display: flex;
    flex-grow: 1 !important;
    flex-direction: column;
    gap: 0.5rem;
}

.course-stats {
    margin-bottom: 1rem;
    padding: 1rem;
}

.course-stats .row {
    display: flex;
    gap: 1rem;
}

.course-stats .row .column {
    flex: 1 1 0;
}

.course-stats canvas {
    width: 100% !important;
    height: 240px !important;
    display: block;
}

.course-actions {
    padding: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.course-thumb-placeholder {
    background-color: #eee;
    color: #666;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    text-align: center;
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stats-chart {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: .5rem;
    padding: 1rem;
    flex: 1;
    min-width: 300px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    height: 200px;
    margin-top: 1rem;
}

.bar {
    flex: 1;
    background: var(--main-acc-color);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: .5rem .5rem 0 0;
    position: relative;
    max-width: 1rem;
}

.bar span {
    font-size: 0.7rem;
    color: #333;
    margin-top: 0.2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/***************************** PIE DIAGRAM ****************************/

 .progress-pie {
	text-align: center;
	margin-bottom: 1rem;
}

.circular-chart {
	display: block;
	margin: 0 auto;
	max-width: 280px;
    max-height: 280px;
}

.circle-bg {
	fill: var(--main-acc-color);
	stroke: #697C4F;
	stroke-width: 3;
}

.circle {
	fill: none;
	stroke-width: 2;
	stroke: white;
	stroke-linecap: round;
	/*transform: rotate(-90deg);*/
	transform-origin: center;
	transition: stroke-dasharray 0.5s ease;
}

.circular-chart.green .circle {
	stroke: #78a341;
}

.percentage-main {
	fill: white;
	font-size: 0.5rem;
	font-weight: bold;
	text-anchor: middle;
    margin-left: 1rem;
}
.percentage-sub {
    fill: white;
    font-size: 2.5px;
    font-weight: normal;
    opacity: 0.8;
}
.course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.course-card.expired {
}

.warning {
    color: #d9534f;
    font-weight: bold;
    margin-top: 0.5rem;
}
.blockdiv{
  display:block;
  min-width: 100%;
}

/********************** SLIDER *******************/
.course-slider-wrapper {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	margin: 2rem 0;
}

.course-slider-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
}

.course-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding-bottom: 1rem;
  width:100%;
  overflow-x: auto;
}

.course-slide {
  flex: 0 0 100%;
}

@media (min-width: 600px) {
  .course-slide {
    flex: 0 0 670px;
    scroll-snap-align: start;
  }
}
.course-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  height: 100%;
}
.course-card.expired {

}

.slider-container {
  position: relative;
  overflow: hidden;
}

.scroll-button {
  background: white;
  border: 1px solid #ccc;
  border-radius: .8rem;
  width: 2rem;
  height: 3rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--main-txt-color);
  max-width: 30px !important;
  min-width: 30px !important;
}

.scroll-button.left {
  left: 0.5rem;
}

.scroll-button.right {
  right: 0.5rem;
}

/* ===============================
Dashboard
=============================== */
.course_details{
  padding: 0 0 1rem 0;
}
.chapter-header {
    background: var(--main-acc-color-2);
    color: var(--main-bg-color);
    padding: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: .5rem;
    margin-top: .5rem;
}

/*.chapter-header.expanded::after {
    content: ' ▼';
}

.chapter-header:not(.expanded)::after {
    content: ' ►';
}*/

.block-list {
    padding: 0 .5rem;
    border-radius: .5rem;
    border: 1px solid var(--main-acc-color);
    margin: .5rem 0;
}

.block-item {
    padding: .5rem;
    border-radius: .5rem;
    border: 1px solid var(--main-acc-color);
    margin: .5rem 0;
}

.done {
    color: green;
}

.in-progress {
    color: orange;
}

.not-started {
    color: #999;
}
.status-icon {
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-weight: bold;
    background: #4c772e;
    color: white;
    margin-top: 1rem;
    cursor: pointer;
}
.chapter-header.done {
    background-color: var(--main-acc-color-2)
}

.chapter-header.in_progress {
    background-color: var(--main-acc-color)
}

.chapter-header.not_started {
    background-color: var(--main-acc-color)
}

.course-table {
    width: 100%;
    border: 1px solid #c7d4e2;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.course-table-header,
.course-table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr 1.5fr 1.5fr;
    padding: 0.6rem 1rem;
    align-items: center;
}

.course-table-header {
    background: #f5f9ff;
    font-weight: bold;
    border-bottom: 1px solid #c7d4e2;
}

.course-table-row {
    border-bottom: 1px solid #e4e4e4;
}

.course-table-row:last-child {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-align: center;
    min-width: 80px;
}

.badge.green { background: #4caf50; }
.badge.red { background: #c62828; }
.badge.yellow { background: #f9a825; color: #000; }
.badge.grey { background: #b0bec5; }
.badge.lock { background: #90a4ae; font-size: 1.1rem; }
