@import url(//fonts.googleapis.com/css?family=Roboto:500,300,400);

:root {
    /* Dark mode */
    --background-dark: #121212;
    --surface-dark: #1E1E1E;
    --surface-hover-dark: #2A2A2A;
    --primary-text-dark: #FFFFFF;
    --secondary-text-dark: #B3B3B3;
    --tertiary-text-dark: #808080;

    /* Light mode */
    --background-light: #FFFFFF;
    --surface-light: #F5F5F5;
    --surface-hover-light: #E0E0E0;
    --primary-text-light: #000000;
    --secondary-text-light: #4A4A4A;
    --tertiary-text-light: #808080;

    --accent: #C063D5;
    --lighter-accent: #D189E3;
    --darker-accent-: #A34DB8;
    --error: #CF6679;
    --success: #03DAC6;
    --warning: #FFD600;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin:0;
    min-height: 100%;
    font-family:'Roboto', sans-serif;
    font-weight:400;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 400 !important;
}
a {
    position: relative !important;
    color: currentColor !important;
    text-decoration: none !important;
}
a:hover {
    color: var(--accent) !important;
}
a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}
/* Report Issue button */
.report-issue-btn {
    position: fixed;
    bottom: 5px;
    right: 5px;
    border: 1px solid var(--secondary-text-light);
    color: var(--secondary-text-dark);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 9999;
}
.report-issue-btn:hover {
    background-color: var(--lighter-accent);
    color: white !important;
}
.report-issue-btn a {
    color: white;
    text-decoration: none;
}
/* For WebKit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        height: 0;
    }
}
::-webkit-scrollbar-track {
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--surface-dark); 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--tertiary-text-dark); 
}

/* Apply dark mode styles */
.dark-mode {
    background-color: var(--background-dark)  !important;
    color: var(--primary-text-dark) !important; }
.dark-mode .surface {
    background-color: var(--surface-dark);}
.dark-mode .surface:hover {
    background-color: var(--surface-hover-dark);}
.dark-mode .primary-text {
    color: var(--primary-text-dark);}
.dark-mode .secondary-text {
    color: var(--secondary-text-dark);}
.dark-mode .tertiary-text {
    color: var(--tertiary-text-dark);}
.accent {
    color: var(--accent-dark);}
.lighter-accent {
    color: var(--lighter-accent-dark);}
.darker-accent {
    color: var(--darker-accent-dark);}
.error {
    color: var(--error-dark);}
.success {
    color: var(--success-dark);}
.warning {
    color: var(--warning-dark);}
/* Apply light mode styles */
.light-mode {
    background-color: var(--background-light);
    color: var(--primary-text-light);}
.light-mode .surface {
    background-color: var(--surface-light);}
.light-mode .surface:hover {
    background-color: var(--surface-hover-light);}
.light-mode .primary-text {
    color: var(--primary-text-light);}
.light-mode .secondary-text {
    color: var(--secondary-text-light);}
.light-mode .tertiary-text {
    color: var(--tertiary-text-light);}

.background-blur {
    backdrop-filter: blur(10px); /* Adjust the value as needed */
}
.button {
    width: fit-content;
    border-radius: 5px ;
    padding: 5px 10px;
    background-color: var(--accent);
    color: currentColor
}
.button:hover  {
    background-color: var(--lighter-accent)
}
.button:hover a {
    color: var(--primary-text-dark) ;
}

#navbar {
    background-color: rgba(18, 18, 18, 0.99) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    color: var(--primary-text-dark) !important;
    box-shadow: 0 1px 2px 0px rgba(18, 18, 18, 0.5);
}

#navbar .logo {
    font-weight: 300;
    font-size: 1.5rem;
    font-weight: bold;
    float: left;
}

#navbar #nav-links a,
#navbar #nav-links button {
    margin-left: 1rem;
    margin-right: 1rem;
}
#navbar #nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#navbar .profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
#nav-toggler {
    display: none;
}
/* hero section */
@media (max-width: 768px) {
    #nav-toggler {
        display: block;
        font-size: 24px;
    }
    #navbar #nav-links {
        display: none;
        
    }
    #navbar #nav-links.show{
        width: 200px;
        display: flex;
        flex-direction: column;
        row-gap: 30px;
        justify-content: left;
        align-items: start;
        padding: 20px 10px;
        position: absolute;
        top: 100%;
        right: 10px; 
        border-radius: 8px;
        border: 1px solid rgb(110, 110, 110);
        background-color: rgba(14, 14, 14, 0.644) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        box-shadow: 0 1px 2px 0px rgba(18, 18, 18, 0.5);
    }
    #navbar #nav-links.show li.profile {
        order: -1;
        padding-left: 15px;
    }
    .hero-section .text-section div{
        text-align: center;
    }
    .hero-section .hero-buttons {
        margin: 5px auto !important;
    }
}

.profile-avatar {
    cursor: pointer;
}
.placeholder-avatar{
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    cursor: pointer;
    background-color: #ddd;
    color:rgb(17, 17, 17) !important
}

.dropdown {
    display: none;
    position: absolute !important;
    top: 100%; /* Position just below the avatar */
    left: -160px; /* Align to the right edge */
    border: 1px solid #ccc;
    padding: 10px 10px 10px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px; 
    border-radius: 5px;
}
.profile:hover .dropdown,
.profile .dropdown.show {
    display: block;
}

.dropdown a,
.dropdown button {
    display: block;
    width: 90%;
    text-align: left;
    padding: 5px;
    border: none;
    color: currentColor;
    background: none;
    font-size: 14px;
    text-decoration: none;
}

.dropdown a:hover,
.dropdown button:hover {
    background-color: var(--surface-hover-dark);
    color: var(--darker-accent-);
}

.dropdown button {
    cursor: pointer;
}




/* Popular courses section */
.card {
    color: currentColor !important;
    border-radius: 10px !important;
}
.card .button {
    display: none;
}
.card:hover .button {
    display: block;
}
.overflow-x-auto {
    overflow-x: auto !important;
}
  .image-container {
    position: relative;
    background-color: #666;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-container img{
    border-radius: inherit;
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  .overlay-text {
    right: 10px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .content {
    padding: 15px;
  }
  .description {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
  .stars {
    color: gold;
  }
  .rating-text {
    color: var(--secondary-text-dark);
  }
  .price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .current-price {
    font-size: 20px;
    font-weight: bold;
  }
  .original-price {
    text-decoration: line-through;
    color: var(--secondary-text-dark);
  }
  .discount {
    background-color: #333;
    padding: 2px 5px;
    border-radius: 3px;
  }
/* Testimonial section */
.testimonial-img {
    height: 150px;
}

.testimonial-text {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
/* Instrutor info section */
.instructor-card {
    margin: 50px auto 50px auto;
    padding: 20px;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 0 2px var(--secondary-text-light);
}

.social-links {
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    font-size: 32px;
}
.social-links a {
    display: block;
    padding: 5px 0;
}
.social-links img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* course details page */

.module-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.module-description {
    display: none;
}
.chevron-icons .fa-chevron-up {
    display: none;
}
.module-card:hover .chevron-icons, .module-card:hover .module-title {
    color: var(--lighter-accent);
    font-weight: 500;
}
.module-card:hover{
    box-shadow: -3px 0 0 0 var(--lighter-accent);
}
#payment-modal {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 20px;
    width: 100%; /* Full width */
    min-height: 100vh; 
    height: auto;
    overflow-y: auto;
}
#payment-modal .modal-content {
    max-height: 90vh; /* Set a max height for the content */
    margin: auto; /* Center the modal */
    overflow-y: auto; /* Scroll within the modal if content is too long */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Optional: Add a shadow */
}
/* Course preview modal */
.modal {
    display: none;  
    position: fixed;  
    z-index: 1;  
    left: 0;
    top: 50px;
    width: 100%;  
    height: 100vh;  
    overflow: auto;  
    background-color: rgba(0, 0, 0, 0.9);  
    cursor: pointer;
}
#detailConfirmModal{
    display: none;  
    position: fixed;  
    z-index: 1000;  
    left: 0;
    top: 50px;
    width: 100%;  
    height: 100vh;  
    overflow: auto;  
    background-color: rgba(0, 0, 0, 0.9);  
    cursor: pointer;
    backdrop-filter: blur(3px);
}
#detailConfirmModal .details{
    width: 300px;

}
.blur-background {
    backdrop-filter: blur(3px);
}
/* Student dashboard */
.dashboard-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 90vh;
    background-color: var(--surface-dark);
    z-index: 1000;

}
#sidebar {
    display: none;
    width: 250px;
}
.learning-sidebar {
    display: none;

}
@media (min-width: 768px) {
    #sidebar {
        display: block;
        display: flex;
        flex-direction: column;

    }
    .learning-sidebar{
        display: block;
        display: flex;
        flex-direction: column;
    }
    .dashboard-sidebar {
        position: sticky;
        top: 0;  
    }
}
.stud-dashboard-card{
    background-color: var(--accent);
    border-radius: 10px;
}
.stud-dashboard-card .btn {
    background-color: var(--background-light);
    color: var(--primary-text-light) !important
}
.unenrolled-warning {
    background-color: #ffd50071;
}
/* admin dashboard */
/* Custom Table Styles */
table.custom-table-rows tr td{
 padding: 5px 3px
}

table.custom-table thead tr th {
    margin: auto;
    text-align: center;
}
.custom-table tbody tr td {
    margin: auto;
    padding: 5px;
}

/* Blog page */
@media (max-width: 768px) {
    .flex-sm-wrap {
        flex-wrap: wrap;
    }
}

.comment:nth-child(even) {
    background:#242424;
}
.comment:nth-child(odd) {
    background:#1A1A1A;
}
.comment .info {
    font-weight: bolder;
    font-size:12px;
    color:#666;
}
.comment .comment-body {
    border-left: 2px solid #3f3f3f;
}
#blog-sidebar { 
    float:right;
    width:30%;
    padding:10px;
    height:100%;
}
p.date { 
    color:#ccc;
    font-size: 12px;
    font-style: italic; 
}

/* blog forms */
label { 
    float:left;
    clear:both;
}
input, textarea { 
    clear:both;
    float:left;
    margin:0 0 10px;
    background:#ededed;
    border:0;
    padding:6px 10px;
    font-size:12px;
}
.errorlist { 
    color:#cc0033;
    float:left;
    clear:both;
    padding-left:10px; 
}

/*  */
/* Dashboard styles */
.content-item {
    display: none;
}
.content-item.active {
    display: block;
}
.menu-item.active {
    border-radius: 0 5px 5px 0;
    background-color: var(--accent);
    color: var(--primary-text-dark) !important;
}
.contents {
    float:left;
    background:#333;
}

.contents ul {
    list-style:none;
    margin:0;
    padding:0;
    width:100%;
}

.contents ul li {
    overflow:auto;
    cursor:move;
}

.contents ul li.selected {
    background:#3f3f3f;
}
.contents ul li.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left:0;
    width: 2px;
    height: 100%;
    background-color: var(--accent);
}

.contents ul li:hover {
    background:#3f3f3f;
}

.contents ul li.placeholder {
  background: #333;
  border:1px dashed #ccc;
  padding:0;
  margin:10px 0;
}

.contents ul span {
    text-transform:uppercase;
    font-size:14px;
}

.contents ul a {
    display:block;
    text-decoration:none;
}

.contents ul a:hover {
    cursor:move;
}


ul.content-types li {
    list-style:none;
    float: left;
}
.add-content-div{
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--darker-accent-);
    border-radius: 8px;
    align-self: last baseline;
}

/*  */
.hidden {
    display:none;
}
.errorlist {
    color:#ae2c2c;
    margin:0;
}

label {
    float:left;
    clear:both;
    margin:0 0 8px 0;
}



textarea {
    height:80px;
}

select {
    width:324px;
}


ul#course-modules {
    list-style:none;
    overflow:auto;
}

ul#course-modules textarea {
    width:600px;
    height:120px;
}

ul#course-modules li {
    padding:20px;
    overflow:auto;
    cursor:move;
    user-select:none;
}

ul#course-modules li:nth-child(even) {
    background:#efefef;
}

ul#course-modules li:hover {
    background:#ccc;
}


#module-contents div.placeholder {
  border:1px dashed #ccc;
}
#module-contents div:hover {
    cursor:move;
}
#module-contents button[type="submit"] {
    background-color: rgba(255, 222, 173, 0);
    color: currentColor;
}
/* students course access sidebar */

.module-completed i{
    position: absolute;
    top: 36%;
    right: 5px;
    color: #4caf50 
}
.progress{
    
}
.progress .progress-bar {
    background-color: var(--accent) !important;
}
.btn {
    color: var(--primary-text-dark) !important
}
.btn:hover {
    color: var(--primary-text-dark) !important
}
.btn-custom {
    background-color: var(--accent) !important;
    color: var(--primary-text-dark) !important;
    
}
.btn-custom:hover {
    background-color: var(--lighter-accent) !important;
    color: var(--primary-text-dark) !important;
}
.helptext {
    color:#ccc;
    padding-left:20px;
}

.my-spacer {
    height: 200px;
}

.txt-12{
    font-size: 12px !important;
}
.fs-12px{
    font-size: 12px !important;
}
.fs-14px{
    font-size: 14px !important;
}
.fs-24px{
    font-size: 24px !important;
}
.fs-28px{
    font-size: 28px !important;
}
.fs-32px{
    font-size: 32px !important;
}
.rounded-8px {
    border-radius: 8px;
}
.text-tertiary {
    color: var(--tertiary-text-light) !important
}
.info-pill {
    border-radius: 1000px;
    background-color: var(--secondary-text-light);
}
.text-secondary {
    color: #ffffff !important;
}

#floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent);
    border: none;
    color: currentColor;
    border-radius: 1000px;
    height: 50px;
    width: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition:  0.4s;
}

#floating-button:hover {
    padding-left: 10px;
    padding-right: 10px;
    width: fit-content;
    transition:  0.4s;
}

#floating-button span {
    display: none;
    font-size: 24px;
    transition:  0.4s;
}
#floating-button:hover span {
    transition:  0.4s;
    display: block
}
#floating-button:hover i {
    margin-right: 5px;
}

.footer {
    background-color: #000000;
    color: var(--primary-text-dark) !important;
}
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}
.admin-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--darker-accent-);
    color: white;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}
.admin-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid var(--darker-accent-);
    border-radius: 8px;
    align-self: last baseline;
}
.admin-toolbar a {
    flex-shrink: 0;
}