body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #e0b0ff, #000000); /* lilac to black */
    color: #333;
}

header {
    background-image: linear-gradient(to right, #5e5f91, #3e3e5c); /* dark lilac */
    padding: 60px 0;
}

#course-form {
    border-radius: 10px;
}

#roadmap {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.list-group-item:hover {
    background-color: #f1f1f1;
}

footer {
    background-color: #e9ecef;
}

.dark-mode {
    background: linear-gradient(to bottom, #1a1a1a, #000000); /* dark background */
    color: #f0f0f0;
}

.dark-mode header {
    background-image: linear-gradient(to right, #3c3c54, #1a1a1a); /* darker header */
}

.dark-mode .list-group-item {
    background-color: #2c2c2c;
    border: 1px solid #444;
}

.dark-mode .list-group-item:hover {
    background-color: #3a3a3a;
}

.dark-mode footer {
    background-color: #333;
}

h2.h4 {
    font-weight: 600;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-left: 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #007bff; /* Change color when checked */
}

input:checked + .slider:before {
    transform: translateX(14px);
}
