/* ==================== COMPONENTS CSS ==================== */

/* ==================== HEADER COMPONENT STYLES ==================== */

/* Button Primary Styles */
.btn-primary {
    background-color: #3B82F6 !important;
    color: #FFFFFF !important;
    border: 1px solid #3B82F6 !important;
    font-weight: 500 !important;
    text-shadow: none !important;
}

.btn-primary:hover {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
    border-color: #2563EB !important;
}

.btn-primary i {
    color: #FFFFFF !important;
}

.header .btn-primary {
    background-color: #3B82F6 !important;
    color: #FFFFFF !important;
    border: 1px solid #3B82F6 !important;
    font-weight: 500 !important;
}

/* Logo Size Adjustments */
/* Header Logo - Responsive sizing */
.header .logo img,
.header .logo a img,
.mobile-menu__logo img {
    max-height: 65px !important;
    width: auto !important;
    height: auto !important;
}

/* More specific selectors for logo */
.logo img,
.logo a img {
    max-height: 35px !important;
    width: auto !important;
    height: auto !important;
}

/* Dashboard specific logo adjustments */
.dashboard-sidebar img {
    max-height: 35px !important;
    width: auto !important;
}

/* ==================== FOOTER COMPONENT STYLES ==================== */

/* Footer Logo - Larger size */
.footer .footer__logo img {
    max-height: 60px !important;
    width: auto !important;
}

/* Ensure footer is visible */
.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
    min-height: 200px !important;
}

/* Ensure main content doesn't overlap footer */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Make sure footer is at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

/* Force footer content to be visible */
.footer-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-item__logo {
    display: block !important;
    visibility: visible !important;
}

.footer-menu {
    display: block !important;
    visibility: visible !important;
}

.footer-bottom {
    display: block !important;
    visibility: visible !important;
    background-color: #e9ecef !important;
    padding: 20px 0 !important;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

/* Mobile adjustments */
@media (max-width: 768px) {
    .header .logo img,
    .header .logo a img,
    .mobile-menu__logo img {
        max-height: 50px !important;
    }
    
    .footer {
        min-height: 150px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .header .logo img,
    .header .logo a img,
    .mobile-menu__logo img {
        max-height: 55px !important;
    }
}

/* ==================== UTILITY CLASSES ==================== */

/* Debug mode for footer visibility */
.footer-debug {
    background-color: red !important;
    color: white !important;
    padding: 10px !important;
    text-align: center !important;
    font-weight: bold !important;
}

/* ==================== LEGAL PAGES STYLES ==================== */

/* Legal content styling */
.legal-content h2 {
    color: #2C3E50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: #34495E;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: #2C3E50;
    font-weight: 600;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #3B82F6;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6B7280;
}

/* Banner styling for legal pages */
.banner-two .banner-content__title {
    color: #2C3E50;
    font-size: 2.5rem;
    font-weight: 700;
}

/* ==================== SUBJECT CARDS STYLES ==================== */

/* Subject card hover effects */
.subject-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-5px);
}

.subject-card:hover .subject-card__icon {
    background-color: #FFFFFF !important;
    color: #3B82F6 !important;
}

.subject-card:hover h4 {
    color: #FFFFFF !important;
}

.subject-card:hover p {
    color: #FFFFFF !important;
}

/* Ensure icons are visible */
.subject-card__icon i {
    display: block !important;
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* Fix for all subject card icons */
.subject-card .subject-card__icon i {
    display: block !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Specific fixes for each icon */
.subject-card .subject-card__icon .ph-landmark,
.subject-card .subject-card__icon .ph-globe,
.subject-card .subject-card__icon .ph-currency-circle-dollar,
.subject-card .subject-card__icon .ph-users,
.subject-card .subject-card__icon .ph-shield-check,
.subject-card .subject-card__icon .ph-person-simple {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* ==================== FEATURE ITEMS STYLES ==================== */

/* Feature item hover effects */
.feature-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item:hover .feature-item__icon {
    background-color: #FFFFFF !important;
    color: #3B82F6 !important;
}

.feature-item:hover h4 {
    color: #FFFFFF !important;
}

.feature-item:hover p {
    color: #FFFFFF !important;
}

/* Ensure icons are visible */
.feature-item__icon i {
    display: block !important;
    font-size: 2.5rem !important;
    line-height: 1 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Specific fixes for each feature icon */
.feature-item__icon .ph-book-open,
.feature-item__icon .ph-video-camera,
.feature-item__icon .ph-chat-circle-text,
.feature-item__icon .ph-file-text,
.feature-item__icon .ph-chart-line,
.feature-item__icon .ph-users {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    line-height: 1 !important;
}

/* ==================== DASHBOARD SIDEBAR STYLES ==================== */

/* Dashboard logo */
.dashboard-logo {
    max-height: 35px !important;
    width: auto !important;
}

/* User welcome section */
.user-welcome {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

/* Sidebar navigation */
.sidebar-navigation .nav-menu {
    margin: 0;
    padding: 0;
}

.sidebar-navigation .nav-item {
    margin-bottom: 8px;
}

.sidebar-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-navigation .nav-link:hover {
    background-color: #eff6ff;
    color: #3b82f6;
    text-decoration: none;
}

.sidebar-navigation .nav-link.active {
    background-color: #eff6ff;
    color: #3b82f6;
}

.sidebar-navigation .nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Badge for notifications */
.sidebar-navigation .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: auto;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        max-width: 280px;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .dashboard-sidebar.show {
        left: 0;
    }
}

/* ==================== END DASHBOARD SIDEBAR STYLES ==================== */

/* ==================== TEACHER ACCOUNT PAGE STYLES ==================== */

/* Full height background */
.teacher-account-page {
    min-height: 100vh;
    background-color: #f8fafc;
    padding: 24px;
    margin: -24px;
}

/* Account page layout */
.teacher-account-page .row {
    margin: 0;
}

.teacher-account-page .col-lg-8 {
    padding-right: 12px;
}

.teacher-account-page .col-lg-4 {
    padding-left: 12px;
}

/* Security buttons */
.teacher-account-page .btn-outline-main {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.teacher-account-page .btn-outline-main:hover {
    background-color: #3b82f6;
    color: white;
}

.teacher-account-page .btn-outline-main i {
    color: inherit;
}

/* Secondary button for view mode */
.teacher-account-page .btn-outline-secondary {
    border: 1px solid #6c757d !important;
    color: #6c757d !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.teacher-account-page .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
}

.teacher-account-page .btn-outline-secondary i {
    color: inherit !important;
}

/* Ensure button visibility */
.teacher-account-page .btn {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Profile picture */
.teacher-account-page .profile-picture {
    width: 120px;
    height: 120px;
    background-color: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

.teacher-account-page .profile-picture i {
    font-size: 48px;
    color: #3b82f6;
}

.teacher-account-page .profile-picture .camera-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Sidebar profile picture - make it full */
.dashboard-sidebar .user-welcome .w-40.h-40 {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background-color: #3b82f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dashboard-sidebar .user-welcome .w-40.h-40 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.dashboard-sidebar .user-welcome .w-40.h-40 i {
    font-size: 16px !important;
    color: white !important;
}

/* Navbar profile picture - make it full */
.dropdown-toggle.w-36.h-36 {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
}

.dropdown-toggle.w-36.h-36 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Ensure all profile pictures are properly sized */
img[alt="Profile Picture"] {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Responsive profile pictures */
@media (max-width: 768px) {
    .dashboard-sidebar .user-welcome .w-40.h-40 {
        width: 32px !important;
        height: 32px !important;
    }
    
    .dropdown-toggle.w-36.h-36 {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ==================== END TEACHER ACCOUNT PAGE STYLES ==================== */

/* ==================== SECURITY PAGES STYLES ==================== */

/* Security page layout */
.security-page {
    min-height: 100vh;
    background-color: #f8fafc;
    padding: 24px;
    margin: -24px;
}

/* Password toggle button */
.password-toggle {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #3b82f6;
}

/* Device cards */
.device-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

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

/* Status badges */
.status-badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
}

.status-badge.active {
    background-color: #dcfce7;
    color: #16a34a;
}

.status-badge.inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Table styles */
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Modal styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Fix modal backdrop to be semi-transparent instead of solid black */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
}

.modal-body {
    padding: 24px;
}

/* Button styles */
.btn-main {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-main:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-outline-secondary {
    border-color: #6b7280 !important;
    color: #6b7280 !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: white !important;
}

.btn-outline-secondary:focus {
    border-color: #6b7280 !important;
    color: #6b7280 !important;
    box-shadow: 0 0 0 0.2rem rgba(107, 114, 128, 0.25) !important;
}

.btn-outline-secondary:active {
    background-color: #6b7280 !important;
    border-color: #6b7280 !important;
    color: white !important;
}

/* Logout buttons */
.btn-outline-danger {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    background-color: transparent !important;
}

.btn-outline-danger:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
}

.btn-outline-danger:focus {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
}

.btn-outline-danger:active {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
}

/* Export button */
.btn-outline-main {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background-color: transparent !important;
}

.btn-outline-main:hover {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.btn-outline-main:focus {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
}

.btn-outline-main:active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

/* ==================== END SECURITY PAGES STYLES ==================== */

/* ==================== COURSES PAGE STYLES ==================== */

/* Course cards */
.course-item {
    transition: all 0.3s ease;
}

.course-item:hover {
    transform: translateY(-4px);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Statistics cards */
.stat-card {
    border: none;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Search and filter */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-right: 40px;
}

.search-container i {
    pointer-events: none;
}

/* Course status badges */
.course-status {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
}

.course-status.active {
    background-color: #dcfce7;
    color: #16a34a;
}

.course-status.inactive {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Modal styles */
.modal-lg .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-lg .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
}

.modal-lg .modal-body {
    padding: 24px;
}

.modal-lg .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 24px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state .icon-container {
    width: 80px;
    height: 80px;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.empty-state .icon-container i {
    font-size: 32px;
    color: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-item {
        margin-bottom: 16px;
    }
    
    .stat-card {
        margin-bottom: 16px;
    }
    
    .search-container {
        margin-bottom: 16px;
    }
}

/* ==================== END COURSES PAGE STYLES ==================== */

/* ==================== COURSE DETAIL PAGE STYLES ==================== */

/* Course navigation sidebar */
.course-navigation {
    max-height: 500px;
    overflow-y: auto;
}

.course-navigation::-webkit-scrollbar {
    width: 4px;
}

.course-navigation::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.course-navigation::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.course-navigation::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Course nav items */
.course-nav-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.course-nav-item:hover {
    background-color: #f8fafc;
    text-decoration: none;
}

.course-nav-item.active {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding-left: 9px;
}

.course-nav-item.active i:first-child {
    color: #3b82f6 !important;
}

.course-nav-item.active span {
    color: #1e40af !important;
    font-weight: 600;
}

/* Course header stats */
.course-stats {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
}

.course-stats .stat-item {
    text-align: center;
    padding: 0 12px;
}

.course-stats .stat-item:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}

/* Activity items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 12px;
    margin-bottom: 16px;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .course-navigation {
        max-height: 300px;
    }
    
    .course-stats .stat-item {
        margin-bottom: 16px;
    }
    
    .course-stats .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 16px;
    }
}

/* ==================== END COURSE DETAIL PAGE STYLES ==================== */

/* ==================== END FEATURE ITEMS STYLES ==================== */

/* ==================== END SUBJECT CARDS STYLES ==================== */

/* ==================== END LEGAL PAGES STYLES ==================== */

/* ==================== END COMPONENTS CSS ==================== */ 

/* Module detail page */
.module-activities {
    display: block;
}

.activity-item {
    transition: background-color 0.2s ease;
}

/* Drag handle styling */
.drag-handle {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.activity-item:hover .drag-handle {
    opacity: 1;
}

/* Completion status styling */
.completion-status i {
    transition: all 0.2s ease;
}

/* Activity type icons */
.activity-icon i {
    width: 24px;
    text-align: center;
}

/* Calendar page styling */
.calendar-grid {
    min-height: 400px;
}

.calendar-body .col {
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-body .col:hover {
    background-color: #f8f9fa;
}

.event-item {
    transition: all 0.2s ease;
}

.event-item:hover {
    transform: translateY(-2px);
}

.scale-hover-item {
    transition: all 0.3s ease;
}

.scale-hover-item:hover {
    transform: scale(1.02);
}

/* Event type colors */
.bg-main-25 { background-color: rgba(0, 123, 255, 0.1); }
.bg-info-25 { background-color: rgba(23, 162, 184, 0.1); }
.bg-warning-25 { background-color: rgba(255, 193, 7, 0.1); }
.bg-success-25 { background-color: rgba(40, 167, 69, 0.1); }
.bg-danger-25 { background-color: rgba(220, 53, 69, 0.1); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .activity-item {
        padding: 12px !important;
    }
    
    .activity-info h6 {
        font-size: 14px;
    }
    
    .activity-info .badge {
        font-size: 10px;
    }
    
    .calendar-body .col {
        min-height: 50px;
        font-size: 12px;
    }
    
    .event-item .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .event-item .d-flex > div:last-child {
        align-self: flex-end;
        margin-top: 12px;
    }
}

/* ==================== MOBILE MENU TOGGLE STYLES ==================== */

.mobile-menu-toggle {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.mobile-menu-toggle:hover {
    background-color: #3B82F6 !important;
    border-color: #3B82F6 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

.mobile-menu-toggle:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.mobile-menu-toggle i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
}

/* Ensure mobile menu is properly positioned */
.mobile-menu {
    z-index: 9999 !important;
}

/* Mobile menu active state */
.mobile-menu.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Overlay active state */
.overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9998 !important;
} 