body {
  font-family: sans-serif;
}

.link {
    color: #0b3ed6!important;
    text-decoration: underline;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #2c3e50;
  color: white;
}
.logo {
  font-size: 1.5em;
}
.logout a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
}
.form-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.articleHeader{
	color: #1111ff !important;
    font-size: 2em;
}

.articleContent {
    margin-bottom: 1em;
	margin-top: 1em;
    padding: 0.5em;
}

.articleSpan{
	display:block;
	width: fit-content;
}
p.breadcrumb {
    font-style: italic;
    font-size: 0.9em;
    background: #f0f8ff;
	line-height: 1.2em;
}
textarea.articleComment {
    width: 100%;
}
p.font-semibold.text-sm.text-gray-800 {
    font-size: 0.9em;
    font-weight: bold;
}

.articleClass{
	padding-top: 0.5em;
	cursor: pointer;
}

.articleClass: hover {
	background-color:#e5e7eb;
}

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

main.container {
   margin-left: var(--sidebar-full-width);
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.error {
  color: red;
  margin-bottom: 15px;
}



body {
  font-size: .875rem;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */
nav#sidebarMenu {
    display: block ! Important;
}


:root {
		--sidebar-width: 230px;
		--navbar-height: 56px; /* Typical Bootstrap navbar height */
		--sidebar-min-width: 0px;
		--sidebar-full-width: 200px;
		--preview-width: 30vw; /* 30% of viewport width for large screens */
	}
	
	
		
	
	.nav {
		--bs-nav-link-padding-x: 0.5rem;
	}

	/* ------------------- Custom Sidebar CSS ------------------- */

	 .sidebar {
		position: fixed;
		top: var(--navbar-height);
		left: 0;
		bottom: 0;
		width: var(--sidebar-full-width);
		z-index: 1000;
		padding: 1rem 0;
		overflow-x: hidden;
		overflow-y: auto;
		
		transition: all 0.3s ease;
		transform: translateX(0);
		background-color: #083d68 !important;
	}
	
	/* Sidebar Item Styling */
	.sidebar .nav-link {
		display: flex;
		align-items: center;
		white-space: nowrap; /* Prevents wrapping */
	}
	.sidebar .nav-link .icon {
		margin-right: 1rem;
		width: 20px; /* Standard icon size */
		text-align: center;
	}
	
	
	 .main-content {
            margin-top: var(--navbar-height);
            margin-left: var(--sidebar-full-width);
            padding: 1rem;
            transition: margin-left 0.3s ease;
            min-height: calc(100vh - var(--navbar-height));
			display:contents;
        }
        
        .sidebar-minimized .main-content {
            margin-left: var(--sidebar-min-width);
        }
        
        /* New CSS for Preview Pane */
        .preview-pane {
            position: fixed;
            top: var(--navbar-height);
            right: 0;
            bottom: 0;
            width: 30%; /* 30% width as requested */
            max-width: 500px; /* Cap width for very large screens */
            background-color: #f9fafb; /* Light background */
            box-shadow: -4px 0 10px rgba(0,0,0,0.2);
            transform: translateX(100%); /* Start off-screen */
            transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
            z-index: 50;
        }

        .preview-pane-open .preview-pane {
            transform: translateX(0); /* Slide into view */
        }
        
        .preview-pane-content {
            height: 100%;
            overflow-y: auto;
            position: relative; /* needed for the close button */
        }

        /* Mobile-specific changes */
        @media (max-width: 767px) {
           
            .sidebar-minimized .sidebar {
                transform: translateX(0); /* On mobile, we use minimize to open it */
                /*width: var(--sidebar-full-width);*/
            }
            .main-content {
                margin-left: 0;
            }
            .preview-pane {
                width: 85%; /* Take up more space on small screens */
            }
        }
        /* Loading indicator for the preview */
        .preview-loading {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            color: #4f46e5;
        }
        .spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-left-color: #4f46e5;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
	
	a.article-preview-link {
		color: #1111ff;
		font-size: 1.3em;
		
	}
	
	span.text-gray-500 {
		font-size: 0.8em;
	}
	.articleActions{
		font-size: 0.9em;
	}
	
	h2 {
		font-weight: 600!important;
		margin-bottom: 0.5em;
		padding-top: 0.5em;
	}
	
	.articleHeaderLink{
		font-size: 1em;
		color: #0000ff;
		/*text-decoration: underline 1px #aaa;*/
	}
	
	.articleHeaderLink.selected{
		font-weight: 600;
		font-size: 1.5em;
		color: #6c757d;
	}
	
	.articleHeaderDiv{
		padding: 1em;
	}
	
	/* ------------------- Minimized State (Desktop) ------------------- */
	/* This class is now used to trigger the MINIMIZED state */
	.sidebar {
		width: var(--sidebar-full-width);
	}
	.sidebar-minimized .sidebar {
		width: var(--sidebar-min-width);
	}
	
	/* Hide text labels when minimized */
	.sidebar-minimized .nav-link span {
		display: none;
	}
	
	/* Push content only by the minimized width */
	.sidebar-minimized .main-content {
		margin-left: var(--sidebar-min-width);
		display:block;
		top: 0px;
		position: relative;
		margin-top: 0px;
	}
	
	/* Tooltip behavior for minimized state */
	.sidebar-minimized .nav-link[title]:hover::after {
		content: attr(title);
		position: absolute;
		left: var(--sidebar-min-width);
		top: 50%;
		transform: translateY(-50%);
		background: rgba(0, 0, 0, 0.8);
		color: white;
		padding: 0.3rem 0.5rem;
		border-radius: 0.25rem;
		z-index: 2000;
	}
	
	/* ------------------- Mobile State (< 768px) ------------------- */
	@media (max-width: 767.98px) {
		/* On mobile, the minimized class means the sidebar is HIDDEN */
		.sidebar-minimized .sidebar {
			/*transform: translateX(calc(-1 * var(--sidebar-full-width)));
			width: var(--sidebar-full-width); /* Full width when opened */
		}
		
		/* Main content always takes full width on mobile */
		.main-content {
			margin-left: 0;
		}
		
		/* Show text labels again if the sidebar is open on mobile */
		.sidebar-minimized .nav-link span {
			display: initial;
		}
	}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #fff;
    font-size: 1.2rem;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}
a.nav-link {
    color: #a5a2a2;;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/*
 * Utilities
 */

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }



body {
  min-height: 75rem;
  padding-top: 3rem;
}
.form-inline{display: inline-flex;}

.navbar{
	max-height: 4em;
	display: flow;
}

p.text-xs.italics {
    font-style: italic;
    font-size: 0.9em;
}


.bg-white.shadow-lg {
    padding-left: 1em;
}

form.form-inline.mt-2.mt-md-0 {	
    vertical-align: middle;
}

.articleBoard{
	display: flow;
	padding-left: 0.5em;
    background-color: #fff;
	margin-top: 0.5em;
    
}

.bgblue{
	background-color: #e8f3fb;
	padding-left: 1em;
}

.bg-deleted-200 {
    background-color: #607D8B;
	font-size: 0.9em;
    font-weight: 100;
    font-style: italic;
	margin-right: 0.2em;
}

.bg-pending-200 {
    background-color: #FFEB3B;
	font-size: 0.9em;
    font-weight: 100;
    font-style: italic;
	margin-right: 0.2em;
}

.bg-gray-200 {
    background-color: #ccc;
	font-size: 0.9em;
    font-weight: 100;
    font-style: italic;
	margin-right: 0.2em;
}
.bg-green-100 {
	background-color: #11ff11;
    font-size: 0.9em;
    font-weight: 100;
    font-style: italic;
	margin-right: 0.2em;
}

p.km_header {
    text-align: center;
    font-size: 2em;
    color: #fff;    
    font-weight: bolder;	
}

.successTxt {
    color: #1b7e1b;
}

.fade-container{
	max-height: 200px; /* Set the maximum height */
	overflow-y: hidden; /* Enable vertical scrolling if content exceeds max-height */
	mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%); /* Create the fade effect */
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%); /* For Webkit browsers */
	padding-bottom: 20px;
}

.mr-auto, .mx-auto {
    margin-right: auto !important;/**/
	padding-left: 1em;
}
.block {
    width: auto;
}

.ml-sm-auto, .mx-sm-auto {
    margin-left: auto !important;
	display: inline;	
}
.divsearch {
    float: right;
    display: inline-flex;
}
input.form-control.mr-sm-2 {
    max-height: 2em;
}
button.btn.btn-outline-primary.my-2.my-sm-0 {
    margin-left: 0.5em;
	margin-right: 0.5em;	
    max-height: 2em;
    line-height: 1em;
}
.rightstuff{
	    float: right;
    display: inline-flex;
	    vertical-align: middle;

}

.custom-select {
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url(data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E) no-repeat right .75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.dateDiv{
	max-width: 300px;
	padding-right: 1em;
	/*margin: auto;*/
}
input[disabled] {
  background-color: #e9ecef !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.img-thumbnail {
  border: 1px solid #ccc;
  padding: 4px;
  margin-top: 10px;
  max-height: 200px;
  object-fit: contain;
}
.table>:not(caption)>*>* {
    padding: 0.1rem 0.3rem;
}
.table>thead {
    height: 2em;
}
table {    margin-top: 0.5rem;}
.searchObjDiv{     display: inline-block; width: 100%;}

.subnav{ font-size: 1.5em; }
.subnavactive{font-weight:bold;}
a.p-2.text-muted { color:#0011ee!important; border-right: 2px solid #7c8083;}
a.p-2.text-muted:last-child { border-right: none;}
.nav-tabs{margin-bottom:1em;    font-size: 1.5em;}
input, input[type="text"], input[type="email"], input[type="password"] {    
    max-width: 450px;
}
.form-select { max-width: 450px; }
textarea#description {max-width: 450px;}
.custom-select{max-width: 450px;}
.myform2elems{ display: inline-flex;
    margin-top: 1em;	
	margin-left: 11em;
}
.nav-tabs .nav-link.active{font-weight:bold;}
.actioncell{ padding-left: 1em!important;display: contents;}
.fa:hover{font-weight:bold;cursor:pointer;}

.mainpagehead{     display: block;}

#showsearchresults {
	max-height: 300px;
	overflow-y: auto;
	margin-top: 10px;
	width: fit-content;
	/*width: 300px;*/
}
button.btn.btn-sm.btn-success.enrol-btn {
    margin-left: 1em;
}

th {
    background-color: #083d68 !important;
    color: #eeeeee !important;
	text-align: center;
    vertical-align: middle;
}

td.inactive{
	color: #6c757d !important;
}


.table>tbody {
    ertical-align: inherit;
    font-size: 0.9rem;
    font-weight: 100;
}
.col-md-4{
	display: inline-flex;
}



.hidden { display: none;}
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5); /* dim background */
	z-index: 2; /* behind form */
}

  .form-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* in front of overlay */
  }

  .form-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 400px;
  }
.form-group {    
    width: 100%;
	display: inline-flex;
}
label {
    width: 150px;
}
.activityIcon{font-size: 1.4em !important;margin-right:0.2em;}
a.accordion-button.collapsed {color: #052c65;}
.editingIcons{font-size: 0.9em;float: right; display: grid;}



.editmode-switch-form {
    padding: 8px 4px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .26), 0 14px 44px 0 rgba(0, 0, 0, .2);
    position: fixed;
    right: 20px;
    bottom: 10px;
    height: 40px;
    z-index: 10001;
    transition: all 0.2s ease-in-out;
}

.custom-control {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 30px;
    min-height: 16px;
    line-height: 21px;
    
}
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.editmode-switch-form .custom-control-input {
    z-index: 1;
}
.custom-switch .custom-control-input {
    width: 35px;
    height: 20px;
}
input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}
.custom-control-input {
    position: absolute;
    left: 0;
}
.custom-switch.custom-control--xs {
    padding-left: 37px;
}
input {
    overflow: visible;
}


/*style="position: relative;z-index: 3 !important;padding: 1em;transform: translateY(-100%);"*/

.btnExtra {
   background: #198754;
}

.divInfo{
	padding: 1em;
    background-color: #c0dcfe;
    border: solid;
    border-radius: 5px;
    border-color: #ccc;
    border-width: 1;
    margin-bottom: 1em;
	font-style: italic;
    font-weight: 100;
    font-size: 0.9em;
}

.pill-btn {
    background-color: #07a;
    border: none;
    color: #ffffff;
    padding: 2px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 16px;
    font-size: 0.9em;
}
.pill-btn.persona{
	background-color: #36af85;
}

.pill-btn:hover {
  background-color: #07075d;
}

.pill-btn.selected {
    background-color: #198754; 
}

.popupform{
	display:none;
	z-index: 3;
	background-color: #fff;
	position: fixed;         /* Sticks to the viewport */
	top: 33vh;               /* 1/3 from top of viewport */
	left: 20%;               /* center horizontally */	
	width: 85%;
	padding: 1em;
}

.popupform {
    z-index: 3;
    background-color: #fff;
    position: fixed;
    top: 10vh;
    left: auto;
    width: 80%;
    padding: 1em;
    overflow: scroll;
	max-height: 90%;
}
label {
    color: #03409b;
}


.info-container {
  position: relative;
  display: inline-block; 
  margin-left: 1em;
  margin-top:0.5em;
}
.info-icon {
	cursor: pointer; 
	font-size: 1.2em;
	color: #5692db;
}

.popup-message {
  display: none;
  position: absolute; 
  background-color: #c9e6e3;
  color: #333;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 3; /* Ensure it appears above other elements */
  bottom: 120%; /* Position above the icon by default */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  /*white-space: nowrap; /* Prevent text wrapping if desired */
  width: 500px;
}

.card.mb-4.box-shadow {
    height: 350px;
    /*margin: 0.5em; */
	width: 100%;
}

.card.mb-4.box-shadow:hover {
    background-color:#d2eeff;
}


img.card-img-top.dashboard {
    height: 180px;   
    width: 100%;
    display: block;
}

img.card-img-top.courseview {
    height: 40px;   
	width:40px;
	margin-right:1em;
	display: block;
}
.dashboardMain{
	display: inline-flex;
}




  .progress-circle svg {
   
  }

  .progress-circle circle {
    fill: none;
    stroke-width: 3;
    cx: 15;
    cy: 15;
    r: 12;
  }

  .progress-circle .bg {
    stroke: #555;
  }

  .progress-circle .fg {
    stroke: #4caf50;
    stroke-linecap: round;
    stroke-dasharray: 75.4; /* 2 * π * 12 */
    stroke-dashoffset: 75.4;
    transition: stroke-dashoffset 0.6s ease;
  }

  .progress-circle text {
    font-family: sans-serif;
    dominant-baseline: middle;
  }
  
  .progress-ring {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(#4caf50 0%, #eee 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #333;
    position: relative;
  }

  .progress-label {
    position: absolute;
    z-index: 1;
  }


  

.courseIndicator {
    display: flex;
    float: right;
	width: 50px;
    margin-left: 15px;
}
.dashboardCard {
    /*min-width: 170px;*/
    width: 240px;
    margin-right: 1em;
}

p.card-text {
    text-transform: capitalize;
}
small.text-muted {
    display: flow;
}

p.card-text.dashboard {
    text-transform: capitalize;
    height: 5em;
    overflow: hidden;
}

.labelContainer{
	width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
	padding-top:2em;
	padding-bottom:2em;
}

.progress-container {
    background-color: #eee;
    border-radius: 8px;
    height: 16px;
    width: 100%;
    overflow: hidden;
  }

  .progress-bar {
    height: 100%;
    background-color: #3b82f6; /* modern blue */
    width: 0;
    transition: width 0.5s ease-in-out;
  }

.bodyInContent{
	overflow-y: clip;
}

img.card-img-top.dashboard {
    height: 160px;
    width: 240px;
    display: block;
    min-height: 160px;
    min-width: 190px;
}

.logo-img{
	height:50px;
}

.my-3 {
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
}

.navbar {
	font-family: Helvetica;
    background-color: #fff;
	border-bottom: 2px solid #555; /* Adjust '2px' for thickness and 'black' for color */
	padding-bottom: 10px;
}

ol.breadcrumb {
    font-size: 0.9em;
}

.text-sm.mb-4.breadcrumb {
    margin-top: 1.2em !important;
    margin: 0px;
    padding: 0px;
    margin-bottom: 0rem !important;
}

a.text-blue-600.hover\:underline {
    margin-left: 5px;
    margin-right: 5px;
}

.nav-tabs .nav-link {
    font-size: 1rem;
}

.profileHeader{
	margin-right:1em;
	display: contents;
}
.profileHeaderName{display: contents;}

a#headDpdown {
	color:#222;
}

li.nav-item.dropdown {
    /* max-height: 50px; */
    display: contents;
}


.dropdownManuHeader{
    padding: 1em;
}

.form-container.loginpage {
    max-width: 800px;
    width: 100%;
}
.loginPageBox{
	display: flex; gap: 20px; align-items: stretch;
}
.loginPageInner{
	flex: 1; border: 1px solid #ccc; padding: 20px;
}
td {
    border-color: #e1d6d6;
    border-style: solid;
    border-width: 1px;
    padding: 0.5em;
}

.articleTumbnail{
	width: 80px;
    display: inline-block;
    padding: 5px;
}

.articleClass{
	cursor: pointer;
}

.articleClass:hover{
	cursor: pointer;
	background-color: #f3eeeeb8;
}

thead {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    background-color: #083d68;
    color: #fff;
}







#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    backdrop-filter: blur(5px);           /* Modern blur effect */
    z-index: 9999;                        /* Stay on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    font-family: sans-serif;
}

/* A simple CSS Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db; /* Your brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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








@media (max-width: 1170px) {
    aside.col-md-3.blog-sidebar {
		display: contents;
	}
}


@media (max-width: 500px) {
    .myform2elems {
		display: inline-block;
		margin-left: 0em;		
	}
	
	.divsearch {		
		display: none;
	}
	.navbar {
		max-height: 5em;		
	}
	.form-group {    
		display: inline-block !important;
	}
	.myform2elems{ 
		width: 100%;
	}
	.dateDiv{
		margin: auto;
		margin-bottom: 1em;		    
	}
	.popup-message {   
		transform: translateX(-5%);
		width: 300px; 
		white-space: normal;
	}
	.dashboardMain{
		display: contents;
	}
	.dashboardCard {
        width: 96%;
        margin: 0.5em;
		display: block;
		margin-left: 0.5em;
    }
	img.card-img-top.dashboard {
		display: block;
		min-height: auto;
		min-width: 190px;
		width: 100%;		
	}
	.profileHeaderName{display:none;}
	
	.loginPageBox {
		display: block;
		margin-bottom: 1em;
			
	}
	.loginPageInner {
		margin-bottom: 1em;
	}

}
