/* General Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        margin: 0;
    }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .container {
        width: 540px;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .container {
        width: 720px;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .container {
        width: 960px;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        width: 1140px;
    }
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}


/* Header */
h1, h2 {
    color: #007BFF;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Navigation Styles */
.course-navigation {
    width: 20%;
    margin-right: 20px;
    padding: 20px;
    background: #007BFF;
    color: #fff;
    border-radius: 8px;
    min-height: 500px;
    box-sizing: border-box;
}

.course-navigation h2 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.course-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-navigation ul li {
    margin-bottom: 10px;
}

.course-navigation ul li a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 10px;
    background: #0056b3;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.course-navigation ul li a:hover {
    background: #003f7f;
}

/* Progress Status */
.progress-status {
    font-size: 12px;
    color: #FFD700;
}

/* Main Content Styles */
.course-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    box-sizing: border-box;
    display: flex;
}

@media (max-width: 768px) {
    .course-content {
        flex-direction: column;
    }
}

.content-display {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    min-height: 300px;
    flex: 1 0 auto;
}

.content-display h2 {
    margin-top: 0;
    color: #007BFF;
}

.content-display p {
    margin-bottom: 15px;
}


/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

table thead {
    background: #007BFF;
    color: #fff;
}

table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

table tbody tr:hover {
    background: #f1f1f1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-blue {
    background: #007BFF;
}

.btn-blue:hover {
    background: #0056b3;
}

.btn-green {
    background: #28A745;
}

.btn-green:hover {
    background: #218838;
}

.btn-red {
    background: #DC3545;
}

.btn-red:hover {
    background: #b02a37;
}

.btn-orange {
    background: #FFA500;
}

.btn-orange:hover {
    background: #cc8400;
}

/* Forms */
form {
    margin-bottom: 20px;
}

form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

form input[type="text"]:focus, form input[type="email"]:focus, form input[type="password"]:focus, form select:focus, form textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-navigation, .course-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .container {
        padding: 15px;
    }
}