body {
            font-family: sans-serif;
            background-color: #1a202c;
            color: #e2e8f0;
            margin: 0;
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: 250px;
            background-color: #2d3748;
            padding: 20px;
            box-sizing: border-box;
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            overflow-y: auto;
            transition: transform 0.3s ease-in-out;
            z-index: 1000;
        }

        .sidebar h1 {
            color: #ff2100;
            font-size: 24px;
            margin-bottom: 30px;
        }

        .sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar ul li {
            margin-bottom: 15px;
        }

        .sidebar ul li a {
            color: #cbd5e0;
            text-decoration: none;
            display: flex;
            align-items: center;
            padding: 8px 0;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }

        .sidebar ul li a:hover {
            background-color: #4a5568;
        }

        .sidebar ul li a svg {
            margin-right: 10px;
        }

        .sidebar .new-scrim-button {
            display: block;
            background-color: #ff2100;
            color: white;
            padding: 12px;
            border-radius: 5px;
            text-align: center;
            text-decoration: none;
            font-weight: bold;
            margin-top: 30px;
            transition: background-color 0.3s ease;
            cursor: pointer;
            /* Add cursor pointer to indicate it's clickable */
        }

        .sidebar .new-scrim-button:hover {
            background-color: #3182ce;
        }

        .main-content {
            margin-left: 250px;
            flex-grow: 1;
            padding: 40px;
            box-sizing: border-box;
            position: relative;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 999;
        }

        .overlay.active {
            display: block;
        }

        .course-header {
            margin-bottom: 40px;
        }

        .course-header h1 {
            font-size: 36px;
            color: #e2e8f0;
            margin-bottom: 10px;
        }

        .course-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            font-size: 16px;
            color: #cbd5e0;
            margin-bottom: 20px;
        }

        .course-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .course-meta .follow-button {
            background-color: #ff2100;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .course-meta .follow-button:hover {
            background-color: #3182ce;
        }

        /* Icons */
        .icon {
            margin-right: 8px;
        }

        .icon-small {
            width: 16px;
            height: 16px;
            vertical-align: middle;
        }

        /* DataTables specific styling for dark theme */
        #myDataTable_wrapper .dataTables_length,
        #myDataTable_wrapper .dataTables_filter,
        #myDataTable_wrapper .dataTables_info,
        #myDataTable_wrapper .dataTables_paginate {
            color: #e2e8f0;
            /* Light text for controls */
        }

        #myDataTable_wrapper .dataTables_paginate .paginate_button {
            color: #e2e8f0 !important;
            /* Ensure pagination buttons are visible */
            border: 1px solid #4a5568 !important;
            background-color: #2d3748 !important;
        }

        #myDataTable_wrapper .dataTables_paginate .paginate_button.current,
        #myDataTable_wrapper .dataTables_paginate .paginate_button.current:hover {
            background-color: #ff2100 !important;
            /* Active button background */
            color: white !important;
            border-color: #ff2100 !important;
        }

        #myDataTable_wrapper .dataTables_paginate .paginate_button:hover {
            background-color: #4a5568 !important;
            color: #e2e8f0 !important;
        }

        /* Table styling for dark theme to make DataTables look good */
        #myDataTable {
            width: 100% !important;
            /* Important to ensure DataTables calculates width correctly */
            border-collapse: collapse;
            margin-top: 20px;
        }

        #myDataTable th,
        #myDataTable td {
            border: 1px solid #4a5568;
            /* Darker border for cells */
            padding: 12px;
            text-align: left;
            color: #e2e8f0;
            /* Light text */
        }

        #myDataTable thead th {
            background-color: #2d3748;
            /* Darker background for table header */
            color: #cbd5e0;
            /* Slightly lighter header text */
        }

        #myDataTable tbody tr:nth-child(even) {
            background-color: #242c3b;
            /* Alternate row background */
        }

        #myDataTable tbody tr:hover {
            background-color: #3a455c;
            /* Hover effect for rows */
        }

        .fab-add-button {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1001;
    background: #e53e3e;
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.fab-add-button:hover {
    background: #ff2100;
}
.fab-add-button span {
    display: none;
}
@media (max-width: 600px) {
    .fab-add-button {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

        .add-button {
            background-color: #ff2100;
            color: white;
            border: none;
            padding: 10px 50px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            text-align: center;
            transition: background-color 0.2s ease;
            display: block;
            margin-bottom: 10px;
        }

        .action-buttons button {
            background-color: #ff2100;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.2s ease;
            margin-right: 5px;
        }

        .action-buttons button.edit-btn:hover {
            background-color: #e53e3e;
        }

        .action-buttons button.delete-btn {
            background-color: #e53e3e;
        }

        .action-buttons button.delete-btn:hover {
            background-color: #c53030;
        }

        /* Modal Styles */
        .modal {
            display: none;
            /* Hidden by default */
            position: fixed;
            /* Stay in place */
            z-index: 1001;
            /* Sit on top of the overlay */
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            /* Adjust width as needed */
            max-width: 500px;
            /* Max width */
            background-color: #2d3748;
            /* Darker background for modal */
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 25px;
            box-sizing: border-box;
            color: #e2e8f0;
        }

        .modal.active {
            display: block;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #4a5568;
            padding-bottom: 15px;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 24px;
            color: #ff2100;
        }

        .modal-close-button {
            background: none;
            border: none;
            font-size: 28px;
            color: #cbd5e0;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .modal-close-button:hover {
            color: #e53e3e;
        }

        .modal-body label {
            display: block;
            margin-bottom: 8px;
            color: #cbd5e0;
            font-size: 14px;
        }

        .modal-body input[type="text"],
        .modal-body input[type="number"],
        .modal-body input[type="date"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #4a5568;
            border-radius: 4px;
            background-color: #1a202c;
            color: #e2e8f0;
            box-sizing: border-box;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #4a5568;
        }

        .modal-footer button {
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.2s ease;
        }

        .modal-footer .cancel-button {
            background-color: #4a5568;
            color: #e2e8f0;
            border: none;
        }

        .modal-footer .cancel-button:hover {
            background-color: #64748b;
        }

        .modal-footer .submit-button {
            background-color: #ff2100;
            color: white;
            border: none;
        }

        .modal-footer .submit-button:hover {
            background-color: #3182ce;
        }

        /* --- Media Queries for Responsiveness --- */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
            }

            .sidebar {
                width: 70%;
                left: 0;
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                top: 0;
                box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                width: 100%;
                padding: 20px;
            }

            .course-header h1 {
                font-size: 28px;
            }

            .course-meta {
                flex-wrap: wrap;
                gap: 10px;
                font-size: 14px;
            }

            .modal {
                width: 95%;
                padding: 15px;
            }
        }