﻿:root {
    --primary-color: #4e73df;
    --secondary-color: #f8f9fc;
    --sidebar-width: 280px;
    --active-color: #e0e6ff;
}

body {
    direction: rtl;
    text-align: right;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    background: white;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    overflow-y: auto;
}

.main-body {
    margin-right: var(--sidebar-width);
    padding: 20px;
    text-align: right;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.course-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s;
    text-align: right;
    direction: rtl;
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
    }

.progress-bar {
    height: 10px;
    border-radius: 5px;
}

.nav-item {
    margin: 5px 0;
}

.nav-link {
    color: #5a5c69;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

    .nav-link:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

    .nav-link.active {
        background-color: var(--active-color);
        color: var(--primary-color);
        font-weight: bold;
    }

    .nav-link i {
        margin-left: 10px;
        margin-right: 0;
    }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
