/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: row;
}

/* Sidebar Styles */
.sidebar {
    background-color: #2d3e50;
    color: white;
    width: 250px;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar .sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.sidebar p {
    font-size: 14px;
    margin-bottom: 20px;
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
}

.sidebar nav ul li {
    margin: 15px 0;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar nav ul li a:hover {
    background-color: #1a2b36;
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    width: 100%;
}

.header {
    background-color: #4e73df;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 36px;
}

.dashboard-overview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 30%;
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #2d3e50;
}

.recent-activity {
    margin-bottom: 40px;
}

.recent-activity h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.recent-activity ul {
    list-style-type: none;
    padding: 0;
}

.recent-activity ul li {
    background-color: #fff;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.profile-info p {
    font-size: 16px;
    margin-bottom: 10px;
}

.completed-courses {
    margin-top: 20px;
}

.completed-course {
    margin-bottom: 20px;
}

.completed-course h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.download-certificate {
    background-color: #4e73df;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.download-certificate:hover {
    background-color: #2d3e50;
}

.courses-overview {
    margin-top: 30px;
}

.courses-overview h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.course-card {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-card p {
    font-size: 16px;
    margin-bottom: 15px;
}

.course-card button {
    background-color: #4e73df;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.course-card button:hover {
    background-color: #2d3e50;
}

/* Footer Section */
.footer {
    background-color: #2d3e50;
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .dashboard-overview {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .courses-list {
        grid-template-columns: 1fr;
    }

    .recent-activity ul {
        padding-left: 20px;
    }
}
