/* Course links and dashed line */
.course-work-links {
    color: slateblue;
}

.dashed-line {
    border: none;
    border-top: 2px dashed #11171c;
    margin: 0;
}

/* Elearning Page Styles */
body.elearning-body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.elearning-sidebar {
    width: 280px; /* slightly narrower */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding: 15px;
    overflow-y: auto;
    z-index: 100;
    font-size: 0.85rem; /* smaller text */
}

.elearning-sidebar h5 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem; /* smaller heading */
}

.elearning-sidebar a {
    text-decoration: none;
    color: #333;
    font-size: 0.85rem; /* smaller link font */
}

.elearning-sidebar a:hover {
    color: #007bff;
}


/* Accordion buttons */
.elearning-accordion-button {
    padding: 0.4rem 0.6rem; /* reduced padding */
    font-size: 0.85rem; /* smaller font */
    background-color: #f9f9f9;
    border-radius: 6px;
}

.elearning-accordion-button:not(.collapsed) {
    color: #007bff;
    background-color: #e9f3ff;
}

/* List group items */
.elearning-list-group-item {
    border: none;
    background: transparent;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
}


/* Responsive */
@media (max-width: 991px) {
    .elearning-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        font-size: 0.9rem;
    }

    .elearning-main-content {
        margin-left: 0;
        padding: 20px;
    }
}


/* Main Content - Full Width */
.elearning-main-content {
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 100%;
}

/* Remove max-width centering */
@media (max-width: 1200px) {
    .elearning-main-content {
        margin-left: 10px;
        margin-right: 10px;
        padding: 15px;
    }
}

/* Cards should also stretch full width */
.elearning-card {
    width: 100%;
}

/* Card Header and Body adjustments for full width */
.elearning-card .card-header,
.elearning-card .card-body {
    width: 100%;
}


/* Course Title */
.elearning-course-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #007bff;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Cards */
.elearning-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Card Header */
.elearning-card .card-header {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
}

/* Card Body Text */
.elearning-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

/* Learning Materials */
.elearning-materials-list {
    display: flex;
    flex-direction: column;
}

.elearning-material-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.elearning-material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Material Links */
.material-link {
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
}

.material-link:hover {
    text-decoration: underline;
}

.material-download {
    font-size: 0.85rem;
    color: #6c757d;
}

.elearning-mark-done {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.elearning-mark-done:hover {
    background: #218838;
}


/*quiz*/

.quiz-header {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.quiz-meta {
    font-size: 0.95rem;
    color: #555;
}

.quiz-meta i {
    color: #007bff;
    width: 20px;
}

.quiz .card {
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.quiz .btn-start {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.quiz .btn-start:hover {
    background-color: #0069d9;
}

.quiz .table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.quiz .table th {
    background: #007bff;
    color: white;
    border: none;
}

.quiz .table td {
    vertical-align: middle;
}


/*Assignments */

.assignment-progress-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assignment-progress-inner {
    position: absolute;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.assignment-progress-circle::before {
    content: "80%";
    position: absolute;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.assignment-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    height: 150px;
    display: flex;
    align-items: center;
}

.assignment-stat-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
.assignment-stat-title {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

.assignment-nav-pills {
    border-bottom: 1px solid #e0e0e0;
    /*padding-bottom: 0;*/

}

.assignment-nav-pills .nav-link {
    color: #666;
    padding: 10px 0;
    margin-right: 30px;
    border-radius: 0;
    position: relative;
}

.assignment-nav-pills .nav-link.active {
    background: none;
    color: #1a1a1a;
    font-weight: 500;
}

.assignment-nav-pills .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff1f8e;
}

.assignment-card {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.assignment-icon {
    width: 40px;
    height: 40px;
    background: #fff2f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff1f8e;
    margin-right: 15px;
}

.assignment-upload-btn {
    color: #b5055d;
    border: 1px solid #ff1f8e;
    padding: 6px 16px;
    background: white;
    font-size: 14px;
    font-weight: 500;
}

.assignment-deadline {
    color: #ff1f8e;
    font-size: 12px;
}



.assignment-uploaded-date {
    color: #666;
    font-size: 12px;
}

.assignment-section-header {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.assignment-explore-link {
    color: #ff1f8e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}



.assignment-recent-submission {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.assignment-recent-submission .assignment-doc-icon {
    width: 40px;
    height: 40px;
    background: #fff2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff1f8e;
    margin-right: 15px;
}
.assignment-upload-container {
    background: #fff;
    max-width: 100%;

}

.assignment-upload-nav-pills {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0;
}

.assignment-upload-nav-link {
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    padding: 10px 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
}

.assignment-upload-nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.assignment-upload-nav-link:hover {
    color: #0a58ca;
}

.assignment-upload-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
}

.assignment-upload-tab-content {
    display: none;
}


.assignment-upload-tab-content.active {
    display: block;
}

.assignment-upload-card {
    background: #f9f9f9;
    transition: all 0.2s;
}

.assignment-upload-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.assignment-upload-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    color: #0d6efd;
}

.assignment-upload-btn {
    font-size: 14px;
    font-weight: 500;
}

.assignment-upload-deadline {
    font-weight: 500;
}

.assignment-upload-list table tbody tr:hover {
    background: #f8f9fa;
}

.assignment-upload-status-badge.completed {
    background-color: #e6f4ea;
    color: #2e7d32;
}

.assignment-upload-status-badge.in-progress {
    background-color: #fff3e0;
    color: #f57c00;
}

.assignment-upload-nav-item {
    list-style: none;
}

