/*
Theme Name: GS LMS - X2
Theme URI: 
Author: Anders
Author URI: 
Description: LMS site
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lms
Tags: 
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
	
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/**
 * Sticky Footer CSS for LMS Theme
 *
 * This CSS ensures the footer always appears at the bottom of the viewport
 * on short pages, but never overlaps content on longer pages.
 *
 * @since 1.0.0
 */

/* Set body and html to full height */
html, body {
    height: 100%;
}

/* Make app-container a flex container taking full height */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make app-main grow to fill available space */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Make app-main__outer grow to fill available space */
.app-main__outer {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Make app-main__inner grow to fill remaining space */
.app-main__inner {
    flex: 1;
}

/* Ensure footer wrapper doesn't grow */
.app-wrapper-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Style the footer */
.app-footer {
    width: 100%;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 0;
    margin: 0;
}

.app-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-footer__inner {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .app-footer-left,
    .app-footer-right {
        width: 100%;
        text-align: center;
    }
    
    .app-footer-left .nav,
    .app-footer-right .nav {
        justify-content: center;
    }
}

/* Adjustments for closed sidebar */
.closed-sidebar .app-footer__inner {
    /* Additional space when sidebar is closed if needed */
    padding-left: 30px;
    padding-right: 30px;
}

/* Fixed footer variant (if class is applied) */
.fixed-footer .app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.fixed-footer .app-main {
    padding-bottom: 80px; /* Adjust based on footer height */
}

/* Ensure footer doesn't interfere with content */
.app-footer .nav-item {
    margin: 0 5px;
}

.app-footer .nav-link {
    padding: 8px 12px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.app-footer .nav-link:hover {
    color: #495057;
    background-color: #e9ecef;
}

/* Badge styling in footer */
.app-footer .badge {
    font-size: 10px;
    padding: 2px 6px;
}

/* Sidebar scrollbar fix - Allow scrolling when content overflows */
.scrollbar-sidebar {
    overflow-y: auto !important;
    max-height: calc(100vh - 60px) !important; /* Account for header height */
}

/* Ensure the sidebar inner content can scroll */
.app-sidebar .app-sidebar__inner {
    height: auto !important;
    min-height: 100% !important;
}

/* Fix for closed sidebar hover state to maintain scrolling */
.closed-sidebar .app-sidebar:hover .scrollbar-sidebar {
    overflow-y: auto !important;
    max-height: calc(100vh - 60px) !important;
}

/**
 * Debug Info Dropdown Styling
 *
 * Styles for the debug information displayed in the user dropdown menu.
 *
 * @since 1.0.0
 */
.dropdown-item-text {
    color: #6c757d !important;
    pointer-events: auto;
}

.dropdown-item-text .badge {
    font-size: 10px;
    margin: 0 2px;
}

#debug-details {
    border-top: 1px solid #e9ecef;
    margin-top: 5px;
}

#debug-toggle-btn {
    font-size: 11px;
    color: #6c757d !important;
    padding: 4px 20px !important;
}

#debug-toggle-btn:hover {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

/* Hide the old student progress debug box since it's now in the dropdown */
#student-progress-debug {
    display: none !important;
}







body {

	background-color: rgba(240, 248, 255, 0.447);
}














/* kod för "images" blädderbar modul*/

.slide-gallery {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

.slide-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* fix för mobila scrollbars */
}

.slide-slide {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 300px;
}

.slide-img {
    width: 100%;
    max-width: 600px; /* sätt en lämplig maxbredd efter din design */
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: block;
}

.slide-slide h3,
.slide-slide p {
    max-width: 700px;
    width: 100%;
    text-align: left;
    word-break: break-word;
    margin-left: auto;
    margin-right: auto;
}

.slide-slide h3 {
    font-size: 1.3rem;
    margin-top: 0.7rem;
    margin-bottom: 0.3rem;
}

.slide-slide p {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.85);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.3rem 1.1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    transition: background 0.2s;
    user-select: none;
}
.slide-nav.prev { left: 0.5rem; }
.slide-nav.next { right: 0.5rem; }
.slide-nav:active { background: #eee; }
@media (max-width: 600px) {
    .slide-slide {
        padding: 1rem 0.3rem;
    }
    .slide-img {
        max-width: 100%;
    }
}


.slide-nav { transition: opacity 0.2s; }
.slide-nav[style*="display: none"] { opacity: 0; pointer-events: none; }

.slide-slide {
    position: relative;
    padding-bottom: 60px; /* lägg till plats för navigationen */
}
.slide-slide-nav {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.7rem;
    background: linear-gradient(to top, #fff 90%, transparent 100%);
    z-index: 3;
}
.slide-nav-btn {
    background: #eee;
    border: none;
    border-radius: 50%;
    padding: 0.4em 0.8em;
    font-size: 1.6rem;
    margin: 0 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.slide-nav-btn:active { background: #ddd; }
.slide-nav-index {
    font-size: 1rem;
    color: #666;
}


.slide-outer {
    transition: height 0.35s cubic-bezier(.7,.01,.33,1);
    overflow: hidden;
}










.page-content {


    border-radius: 1em;
    box-shadow: 0 2px 16px #0001;

	
	padding:1em;
	margin-top:2em;
	margin-bottom:2em;
	margin-left: auto;
	margin-right: auto;
	width:1100px;
	max-width:90%;
	background-color: #fff;
}





.main-menu-container {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  z-index: 10;
}

.main-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu > li {
  margin: 0 1rem;
  position: relative;
}

.main-menu a {
  display: block;
  padding: 1rem 0.75rem;
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
  background: #f3f3f3;
  color: #0073aa;
}

/* Enkel styling för undermenyer/dropdowns */
.main-menu li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-radius: 0.5rem;
  z-index: 20;
}

.main-menu li:hover > ul {
  display: block;
}

.main-menu li ul li {
  margin: 0;
}

.main-menu li ul a {
  padding: 0.75rem 1rem;
  border-radius: 0;
}










.coursetext {
	max-width:750px;

}













/* för overlay med studentinfo på kurssida */
#student-progress-debug table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  background: transparent;
}
#student-progress-debug th, #student-progress-debug td {
  text-align: left;
  padding: 8px 6px 8px 6px;
  vertical-align: top; /* <-- gör att allt börjar i toppen av cellen */
}
#student-progress-debug th {
  background: #293f6a;
  color: #e8f1ff;
  border-bottom: 1.5px solid #3e5377;
  font-weight: 600;
}
#student-progress-debug tr:nth-child(even) td {
  background: #26386a55; /* diskret randig */
}
#student-progress-debug tr:nth-child(odd) td {
  background: #00154a26;
}
#student-progress-debug tr:hover td {
  background: #3966c977 !important;
}
#student-progress-debug td ul {
  margin: 0; 
  padding-left: 15px;
}







/* styling för knapp för att gå till nästa modul */


 .quiz-next-btn {
  background: #2348a9;
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 2em;
  font-size: 1.2em;
  border: none;
  transition: opacity 0.2s, background 0.2s;
  opacity: 0.6;
  cursor: not-allowed;
}

.quiz-next-btn:enabled,
.quiz-next-btn.active {
  opacity: 1;
  cursor: pointer;
  background: #2767a6;
  box-shadow: 0 2px 12px #2348a95c;
}

.quiz-next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #2348a9;
}



.retry-btn {
  display: inline-block;
  background: #2348a9;
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 2em;
  font-size: 0.9em;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s, cursor 0.2s;
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.retry-btn.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  background: #3a6ee6;
}





.generic-btn {
  display: inline-block;
  color: #fff;
  padding: 0.9em 2.2em;
  border-radius: 1em;
  font-size: 0.9em;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s, cursor 0.2s;
  opacity: 1;
  cursor: pointer;
  background: #2767a6;
  box-shadow: 0 2px 12px #2348a95c;

}



.generic-btn:enabled,
.generic-btn.active,
a.generic-btn.active {
  opacity: 1;
  cursor: pointer;
  background: #2767a6;
  box-shadow: 0 2px 12px #2348a95c;
}

.generic-btn:disabled, 
a.generic-btn.disabled,
a.generic-btn[aria-disabled="true"]  {
  opacity: 0.6;
  cursor: not-allowed;
  background: #5d6d96;
}



.navigate-btn:focus,
.navigate-btn.focused {
  outline: 3px solid #2348a9;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #a8c5fa66;
}




.retry-btn {
  display: inline-block;
  background: #2767a6;
  color: #fff;
  font-size: 1.12em;
  font-weight: 600;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2.1em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 12px #429cf22a;
  margin-bottom: 0.3em;
  margin-right: 0.5em;
  transition: background 0.18s;
}
.retry-btn:hover,
.retry-btn:focus {
  background: #175d9a;
}


























body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background-color: #2c3e50;
    color: white;
    overflow-x: hidden;
    transition: width 0.3s ease;
    padding-top: 20px;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    padding: 10px 20px;
}

.sidebar li a {
    color: white;
    text-decoration: none;
}

.menu-toggle {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1.5em;
}

.main-content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 60px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}




/* fix för menyn */
.mm-collapse {
    display: none;
    transition: height 0.35s ease;
}

.mm-show {
    display: block;
}

.mm-collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}



/*  cirkel för student-initialer */ 
.user-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Avstånd mellan cirkeln och ikonen */
    cursor: pointer; /* Om du t.ex. vill göra hela området klickbart */
}

.user-initials-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    user-select: none;
}

.profile-icon {
    font-size: 14px;  /* Justera storlek på ikonen efter behov */
    color: #666;       /* Färg på ikonen - byt om du vill */
}





/* fix så att min debug-bar lirar tillsammans med menyn */

#student-progress-debug {
    position: fixed;
    left: 280px; /* Bredden på sidomenyn när den är öppen */
    bottom: 0;
    width: calc(100% - 260px); /* Anpassa om du vill */
    z-index: 99999;
    background: #2348a9cc;
    color: #fff;
    font-size: 14px;
    padding: 10px 20px 16px 20px;
    transition: left 0.3s ease, width 0.3s ease;
}

.app-container.closed-sidebar #student-progress-debug {
    left: 80px; /* Smalare eller vad din sidebar är när stängd */
    width: calc(100% - 80px);
}




























.ks-fix {
  position: relative;
  width: 100%;
/*  padding-right: 15px;
  padding-left: 15px;*/
}

ul.ks-cboxtags {
  list-style: none;
  padding: 20px;
  margin: 0;
}

ul.ks-cboxtags li {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

ul.ks-cboxtags li input[type="checkbox"],
ul.ks-cboxtags li input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

ul.ks-cboxtags li label {
  position: relative;
  display: block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.8);
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

ul.ks-cboxtags li label .icon-wrapper {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
}



ul.ks-cboxtags li label .icon-wrapper::before {
  content: "\f111"; /* FontAwesome default: regular circle */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.2);
  display: inline-block;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Checkbox checked: snurra + check icon */
ul.ks-cboxtags li input[type="checkbox"]:checked + label .icon-wrapper::before {
  content: "\f058"; /* FA: check-circle */
  color: #fff;
  transform: rotate(-360deg);
}

ul.ks-cboxtags li input[type="checkbox"]:checked + label {
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}

/* Radio checked: skala + dot-circle icon */
ul.ks-cboxtags li input[type="radio"]:checked + label .icon-wrapper::before {
  content: "\f192"; /* FA: dot-circle */
  color: #fff;
  transform: scale(1.2);
}

ul.ks-cboxtags li input[type="radio"]:checked + label {
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}

ul.ks-cboxtags li label span {
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 30px;
  color: #fff;
  margin-left: 10px;
}






/* ta bort från toppfältet */

.header-btn-lg::before {
      background: none !important;
}


.slide-track::-webkit-scrollbar {
  display: none;
}
.slide-track {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}








/* Slides Gallery - Förbättrad implementation */
.slide-gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2em auto;
  overflow: hidden;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.swiper {
  width: 100%;
  height: auto;
  padding-bottom: 60px; /* Utrymme för navigation */
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: ease;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem 1rem 1rem;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 400px;
}

.swiper-slide img {
  width: 100%;
  max-width: 95%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.swiper-slide h3 {
  font-size: 1.3rem;
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
  -max-width: 700px;
  text-align: left;
  word-wrap: break-word;
  line-height: 1.4;
}

.swiper-slide p {
  font-size: 1rem;
  line-height: 1.6;
  -max-width: 700px;
  text-align: left;
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.swiper-slide .slidecontent {
  margin-left: auto;
  margin-right: auto;
  width:100%;
  max-width: 800px;
}

/* Combined Navigation Bar */
.slide-gallery .slide-navigation-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.85);
  border-radius: 25px;
  padding: 8px;
  z-index: 15;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.slide-gallery .nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slide-gallery .nav-button:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.slide-gallery .nav-button:active {
  transform: scale(0.95);
}

.slide-gallery .nav-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.slide-gallery .slide-counter {
  padding: 0 16px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 60px;
  text-align: center;
}

.slide-gallery .slide-counter .current-slide {
  font-weight: bold;
  color: #3b82f6;
}

/* Mobile swipe indicator */
.slide-gallery .swipe-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 20;
  display: none;
  white-space: nowrap;
  pointer-events: none;
}

/* Responsive design för slides-modulen */
@media (max-width: 768px) {
  .slide-gallery {
    margin: 1em auto;
    border-radius: 0.5rem;
  }
  
  .swiper {
    padding-bottom: 70px; /* Mer utrymme på mobil */
  }
  
  .swiper-slide {
    padding: 1.5rem 1rem 1rem;
    min-height: 350px;
  }
  
  .swiper-slide img {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .swiper-slide h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    max-width: 100%;
  }
  
  .swiper-slide p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
    margin-bottom: 2.5rem;
  }
  
  /* Visa swipe-indikator på mobil */
  .slide-gallery .swipe-hint {
    display: block;
  }
  
  /* Anpassa navigation bar på mobil */
  .slide-gallery .slide-navigation-bar {
    bottom: 15px;
    padding: 6px;
  }
  
  .slide-gallery .nav-button {
    width: 36px;
    height: 36px;
  }
  
  .slide-gallery .nav-button svg {
    width: 14px;
    height: 14px;
  }
  
  .slide-gallery .slide-counter {
    padding: 0 12px;
    font-size: 13px;
    min-width: 50px;
  }
}

@media (max-width: 480px) {
  .swiper-slide {
    padding: 1rem 0.75rem 0.5rem;
    min-height: 320px;
  }
  
  .swiper-slide h3 {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }
  
  .swiper-slide p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
    margin-bottom: 3rem;
  }
  
  /* Extra kompakt navigation bar för små skärmar */
  .slide-gallery .slide-navigation-bar {
    bottom: 20px;
    padding: 5px;
  }
  
  .slide-gallery .nav-button {
    width: 32px;
    height: 32px;
  }
  
  .slide-gallery .nav-button svg {
    width: 12px;
    height: 12px;
  }
  
  .slide-gallery .slide-counter {
    padding: 0 10px;
    font-size: 12px;
    min-width: 45px;
  }
}






















/* inloggning */

.mki-login-form.mki-step-2, .mki-login-form.mki-step-1, .mki-login-form {
    max-width: 600px;
    margin: 4rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mki-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.mki-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #111827;
}

.mki-card .mki-message {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.mki-code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.mki-code-digit {
    width: 48px;
    height: 52px;
    font-size: 1.8rem;
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mki-code-digit:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.mki-feedback {
    margin-bottom: 1.5rem;
    color: #6b7280;
}


.mki-resend {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.mki-resend a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.mki-resend a.disabled {
    color: #9ca3af;
    pointer-events: none;
    opacity: 0.7;
}



/* Ny stil för meddelanderutor */
.mki-alert {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-width: 1px;
    border-style: solid;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Modifierare för just felmeddelanden */
.mki-alert-error {
    background-color: #fef2f2; /* Ljus röd bakgrund */
    border-color: #fecaca;   /* Något mörkare röd kant */
    color: #991b1b;          /* Mörkröd text */
}

/* Styling för ikonen inuti meddelandet */
.mki-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Förhindrar att ikonen krymper */
    margin-right: 0.75rem;
}

/* Behållare för flik-navigationen */
.mki-tab-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

/* Enskilda flik-länkar */
.mki-tab-nav a {
    padding: 0.8rem 1.2rem;
    border-bottom: 2px solid transparent; /* Dold kantlinje som standard */
    margin-bottom: -2px; /* Flytta upp för att överlappa container-kanten */
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s;
}

.mki-tab-nav a:hover {
    color: #374151;
}

/* Stil för den aktiva fliken */
.mki-tab-nav a.is-active {
    color: #4f46e5;
    border-color: #4f46e5; /* Visa den färgade kantlinjen */
}

/* Innehållspaneler för flikarna */
.mki-tab-pane {
    display: none; /* Dölj alla paneler som standard */
    animation: fadeIn 0.4s;
}

.mki-tab-pane.is-active {
    display: block; /* Visa endast den aktiva */
}

/* Enkel fade-in-animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Justera rubriker och meddelanden inuti flikarna */
.mki-tab-pane h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #111827;
}

.mki-tab-pane .mki-message {
    text-align: center;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.5;
}



/*
 * Steg 1: E-postinmatning - Uppdaterad stil
 * -------------------------------------------
 */

/* Gör hela formulärraden centrerad */
.mki-form-step1 .mki-form-row {
    text-align: center;
}

/* Ta bort labeln visuellt, men behåll den för skärmläsare */
.mki-form-step1 label[for="user_email"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Huvudstyling för e-postfältet */
#mki_user_email, #mki_user_phone, #user_phone_display {
    /* Centrera texten och gör den större */
    text-align: center;
    font-size: 1.5rem; /* Samma storlek som sifferrutorna */
    
    /* Justera storlek och padding för en "chunky" känsla */
    height: 52px; /* Samma höjd som sifferrutorna */
    max-width: 360px; /* Begränsa bredden så den inte blir för stor */
    width: 100%;
    padding: 0.5rem 1rem;

    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    

}

/* Återanvänd fokus-stilen från sifferrutorna */
#mki_user_email:focus, #mki_user_phone:focus, #user_phone_display:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}


.mki-phone-feedback {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    height: 1.2rem; /* Ge den en fast höjd för att undvika att layouten hoppar */
    margin-bottom: 0.5em;
}
.mki-phone-feedback.is-valid {
    color: #16a34a; /* Grön */
}
.mki-phone-feedback.is-invalid {
    color: #dc2626; /* Röd */
}


/* Uppdatera denna regel för att sikta på den nya omslutande div:en */
.mki-form-step1 .iti { /* .iti är klassen som biblioteket lägger till */
    width: 100%;
    max-width: 320px;
    margin: 0 auto; /* Centrera */
}

/* Se till att själva input-fältet tar upp full bredd inuti .iti-behållaren */
.mki-form-step1 .iti input[type="tel"] {
    width: 100%;
}

/* Behåll feedback-stilen */
.mki-phone-feedback {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    height: 1.2rem;
}
.mki-phone-feedback.is-valid {
    color: #16a34a; /* Grön */
}
.mki-phone-feedback.is-invalid {
    color: #dc2626; /* Röd */
}










/*
/* fix för att placera footern i slutet av sidan även om innehålet är kort */
body {
  min-height: 100vh;
}

body {
    /* 1. Gör body till en flex-container med elementen i en kolumn */
    display: flex;
    flex-direction: column;

    /* 2. Se till att body alltid är minst lika hög som webbläsarfönstret */
    min-height: 100vh; /* 100% av Viewport Height */
}

/* 3. Rikta in dig på din huvudinnehålls-wrapper */
/* (byt ut .main-content om din klass heter något annat) */
#prefooter {
    /* 4. Säg åt innehållet att växa och ta upp all tillgänglig tom plats */
    flex-grow: 1;
}

/* Din befintliga footer-CSS */
.app-footer {
    height: 60px;
    /* Det är också bra att lägga till detta för att förhindra 
       att footern krymper om innehållet blir för stort */
    flex-shrink: 0;
}

/**
 * LMS Dynamic Course Menu Styles
 *
 * CSS for the automatic course menu generation system.
 * Handles active states, open submenus, and navigation styling.
 *
 * @since 1.0.0
 */

/* Active course/page highlighting */
.vertical-nav-menu li.mm-active > a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /*xcolor: #fff !important;*/
}

/* Show submenu when course is active */
.vertical-nav-menu li.mm-active > ul.mm-show {
    display: block !important;
}

/* Active course icons styling */
.vertical-nav-menu li.mm-active > a .metismenu-icon {
    color: #fff !important;
}

.vertical-nav-menu li.mm-active > a .metismenu-state-icon {
    color: #fff !important;
}

/* Active submenu item styling */
.vertical-nav-menu li.mm-active ul li.mm-active > a {
    background-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600;
}

/* Ensure smooth transitions for menu states */
.vertical-nav-menu li a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Submenu expansion animation */
.vertical-nav-menu ul {
    transition: all 0.3s ease;
}


