
/* Global font family for entire website */
* {
    font-family: var(--default-font-family, Inter, sans-serif);
    font-weight: 500;
    color: #000;
}

body { 
    font-family: var(--default-font-family, Inter, sans-serif);
    background-color: #f8f9fa;
}

/* Iconify icons global styles */
iconify-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Ensure iconify icons inherit color from parent */
iconify-icon:not([color]) {
    color: inherit;
}
.sidebar {
    width: 80px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    background: white;
    border-right: 1px solid #dee2e6;
}
.main-content {
    margin-left: 35px;
    min-height: 100vh;
}
.header {
    margin-left: 80px;
    background: white;
    border-bottom: 1px solid #dee2e6;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #6c757d;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.2s;
}
.nav-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}
.nav-item.active {
    background-color: #e3f2fd;
    color: #1e0dff;
}
.nav-item i,
.nav-item iconify-icon {
    font-size: 16px;
    margin-bottom: 4px;
    display: inline-block;
}
.nav-item span {
    font-size: 11px;
    font-weight: 500;
}
.btn-pro {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    border: none;
    color: white;
}
.btn-pro:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
}

.user-info {
    min-width: 0;
    width: 100%;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.user-email {
    font-size: 0.7rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.account-section:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.account-section a {
        padding: 12px 8px !important;
    }

.account-section img {
    object-fit: cover;
    flex-shrink: 0;
}

/* Fix avatar compression in profile pages */
.rounded-circle {
    object-fit: cover !important;
    flex-shrink: 0;
}
.template-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.slider-container {
    position: relative;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.slider-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.slider-btn.left {
    left: 24px;
}
.slider-btn.right {
    right: 24px;
}
.template-slider {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.template-slider::-webkit-scrollbar {
    display: none;
}
.template-slider:active {
    cursor: grabbing;
}

/* Frontend Styles for E-Learning Platform */

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
    border: none !important;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Template Cards */
.template-card {
    transition: all 0.3s ease;
    border: none !important;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

/* Course Filter Sidebar */
.filter-sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

/* Price Display */
.price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.price-discount {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1em;
}

/* Course Level Badges */
.level-beginner {
    background-color: #28a745 !important;
}

.level-intermediate {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.level-advanced {
    background-color: #dc3545 !important;
}

/* Course Stats */
.course-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.course-stats .stat-item {
    text-align: center;
    padding: 10px;
}

.course-stats .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.course-stats .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Course Content Accordion */
.course-content .accordion-button {
    background-color: #f8f9fa;
    border: none;
    font-weight: 500;
}

.course-content .accordion-button:not(.collapsed) {
    background-color: #e3f2fd;
    color: #1976d2;
}

.course-content .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Video List */
.video-list-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.video-list-item:hover {
    background-color: #f8f9fa;
}

.video-list-item:last-child {
    border-bottom: none;
}

/* Instructor Card */
.instructor-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255,255,255,0.3);
}

/* Search and Filter */
.search-box {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.search-box:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 20px;
    }
    
    .filter-sidebar {
        margin-bottom: 30px;
    }
    
    .course-stats {
        text-align: center;
    }
    
    .course-stats .stat-item {
        margin-bottom: 15px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,123,255,.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Course Description */
.course-description {
    line-height: 1.7;
    color: #495057;
}

.course-description h1,
.course-description h2,
.course-description h3 {
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.course-description ul,
.course-description ol {
    padding-left: 1.5rem;
}

.course-description li {
    margin-bottom: 0.5rem;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Course Progress */
.course-progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.course-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-stars .empty {
    color: #e9ecef;
}

/* Course Tags */
.course-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}