/* Global background */
body {
    background-color: rgb(33, 53, 85);
    font-family: Arial, sans-serif;
}

/* Sidebar */
.sidebar {
    width: 200px;
    min-height: 100vh;
    background-color: rgb(11, 29, 58);
    position: fixed;
    top: 0;
    left: 0;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.sidebar .nav {
    margin-top: 100px;
    padding-left: 20px;
}


.sidebar .nav-link {
    color: #ffffff;
    padding: 12px 20px;
    display: block;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background-color: #1b2836;
    color: #fff;
    border-radius: 4px;
}

/* Main content shifts right */
.content {
    margin-left: 200px;
}

.user-card {
    background-color: #d9e4f4;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.user-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #1c3b63;
    background-color: white;
}

.user-info {
    flex-grow: 1;
}

.user-info h5 {
    margin: 0;
    font-weight: bold;
    color: #222;
}

.user-info p {
    margin: 3px 0;
    color: #333;
    font-size: 14px;
}

.btn-course {
    background-color: transparent;
    border: none;
    color: #1c3b63;
    font-weight: bold;
}

@media (max-width: 768px) {
    .sidebar {
        width: 150px;
    }

    .content {
        margin-left: 150px;
    }

    .user-card {
        flex-direction: column;
        text-align: center;
    }

    .user-card img {
        margin-bottom: 10px;
    }

    .btn-course {
        margin-top: 10px;
    }
}

/* active courses modal style */
.modal-content {
    background: linear-gradient(145deg, #e8ebf5, #fdfdfd);
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    position: relative;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    /* for absolute X button */
    justify-content: center;
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #2c3e50;
    text-align: center;
    width: 100%;
}

.btn-close-custom {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #e74c3c;
    font-weight: bold;
    transition: 0.2s;
}

.btn-close-custom:hover {
    color: #c0392b;
    transform: scale(1.1);
}

.list-box {
    background-color: #e4e7f1;
    border: 1px solid #b6bed9;
    border-radius: 8px;
    padding: 15px 25px;
    display: inline-block;
    margin: 0 auto;
}

.list-box ol {
    margin: 0;
    padding-left: 20px;
}

.list-box li {
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

/* responsive */
@media (max-width: 576px) {
    .sidebar {
        width: 130px;
        padding-top: 20px;
    }

    .content {
        margin-left: 130px;
        padding: 10px;
    }
}