/* 
 * Custom Styles for truetandem-custom-lms
 * Version: 1.0.1
 */

/* Navigation menu styling */
.navbar-nav li a {
    color: #fff !important;
    font-size: 1.3em !important;
    font-weight: var(--bs-nav-link-font-weight) !important;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x) !important;
    padding-right: var(--bs-navbar-nav-link-padding-x) !important;
    padding-left: var(--bs-navbar-nav-link-padding-x) !important;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    font-family: Arial, sans-serif !important;
}
.navbar-nav li a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Login/register visibility */
.logged-in .btn-login, .logged-in .btn-register {
    display: none;
}
.logged-in .public-kb-link {
    display: none;
}
.private-kb-link, .private-dashboard-link {
    display: none;
}
.logged-in .private-kb-link, .logged-in .private-dashboard-link {
    display: block;
}

.dashboard-menu-link {
    text-transform: uppercase;
    font-size: 16px;
    color: #fff;
}
.dashboard-menu-link:hover{
    color: #ddd;
    
}
.dashboard-menu-active span{
    border-bottom: 1px solid rgba(255,255,255,0.2);   
}
.dashboard-page-content {
    width: 100%;
    min-height: calc(-28px + 100vh);
}
.dashboard-page-tile-area {
    background-color: rgba(0,0,0,0.2);
}
.dashboard-page-tile-area.py-5.py-xl-6 {
    padding: 0.5em!important;
}
.dashboard-page-tile-area h1 {
    font-size: 30px;
    color: #000;
}

.instructor-role-link{
    display: flex;
}


/* Dashboard footer styling */
.dashboard-footer{
    background-color: #212529;
}

/* Modal styling */
.register-button {
    width: 225px;
    font-size: 16px;
    border: 2px solid #fff;
    background: transparent;
    border-radius: 2px;
    color: #fff;
    position: relative;
    height: 36px;
    margin: 0;
    min-width: 64px;
    padding: 0 16px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0;
    overflow: hidden;
    will-change: box-shadow;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 36px;
    vertical-align: middle;
    text-transform: uppercase;
}
.card-row-2-cols {
    padding: 0 20px;
}
.login-button {
    width: 225px;
    font-size: 16px;
    border: 2px solid #fff;
    background: transparent;
    border-radius: 2px;
    color: #fff;
    position: relative;
    height: 36px;
    margin: 0;
    min-width: 64px;
    padding: 0 16px;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0;
    overflow: hidden;
    will-change: box-shadow;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 36px;
    vertical-align: middle;
    text-transform: uppercase;
}
.btn-close-login {
    --bs-btn-close-color: #000;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: var(--bs-btn-close-color);
    background: rgba(0,0,0,0) var(--bs-btn-close-bg) center/1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: var(--bs-btn-close-opacity);
    border: 1px solid #fff;
    border-radius: 50%;
    padding: 6px 6px 8px 8px;
}
.btn-close-login:hover {
    color: var(--bs-btn-close-color);
    text-decoration: none;
    opacity: var(--bs-btn-close-hover-opacity);
}

/* Fix for input fields */
.mdl-textfield {
    position: relative;
    font-size: 16px;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 8px 0;
    padding: 20px 0;
}

.mdl-textfield__input {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.12);
    display: block;
    font-size: 16px;
    margin: 0;
    padding: 4px 0;
    width: 100%;
    background: 0 0;
    text-align: left;
    color: inherit;
}

.mdl-textfield__label {
    bottom: 0;
    color: rgba(0,0,0,.26);
    font-size: 16px;
    left: 0;
    right: 0;
    pointer-events: none;
    position: absolute;
    display: block;
    top: 24px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

/* When the field is focused or has content */
.mdl-textfield__input:focus + .mdl-textfield__label,
.mdl-textfield__input:not(:placeholder-shown) + .mdl-textfield__label {
    color: #3f51b5;
    font-size: 12px;
    top: 4px;
    visibility: visible;
}

/* Add placeholder attribute to inputs but make it transparent */
.mdl-textfield__input {
    placeholder: " ";
    -webkit-placeholder: " ";
}

/* Hide placeholder when field is focused */
.mdl-textfield__input:focus::placeholder {
    color: transparent;
}

/* Ensure the label stays up when field has content */
.mdl-textfield.is-dirty .mdl-textfield__label,
.mdl-textfield.is-focused .mdl-textfield__label {
    color: #3f51b5;
    font-size: 12px;
    top: 4px;
    visibility: visible;
}

/* Style for focused input */
.mdl-textfield.is-focused .mdl-textfield__input {
    border-bottom: 2px solid #3f51b5;
    outline: none;
}

/* Display the label when inputs are filled */
.mdl-textfield.is-dirty .mdl-textfield__label {
    display: block !important;
}

/* Available courses page styling */
#course-search{
    width: 33%;
    min-width: 250px;
    height: 30px;
}


/* single-sfwd-courses styling */
.registration-unavailable-wrapper{
    width: 100%;
    flex-direction: column;
}

.registration-unavailable-wrapper button{
    background-color: #6c757d; 
    padding: 20px 30px; 
    cursor: not-allowed;
}

.registration-unavailable-message{
    width: 83.33%;
    padding: 2em 10.5px 0 10.5px;

}

@media (min-width: 768px) {
    .registration-unavailable-message{
        width: 75%;
    }
}

@media (min-width: 1200px) {
    .registration-unavailable-message{
        width: 55%;
    }
}

.student-role-link{
    background-color: #4553e6;
    color: white;
    border-radius: 4px;
    padding: 15px 25px;
    font-weight: bold;
}

.student-role-link:hover {
    background-color: #5b68e9;
    color: white;
}

.student-role-link:visited{
    color: white;
}

