

/* Modal background */
.doc-modal {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
    position: fixed;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.doc-modal.show {
    visibility: visible;
    opacity: 1;
    z-index: 999;
}

/* Modal content styling */
.doc-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2em;
    border-radius: 1em;
    position: relative;
    width: 60%;
    height: 50%;
}

/* Close button positioning */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
}

/* Close button hover effect */
.close-button:hover {
    color: #ff0000;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 16px;
    margin-bottom: 10px;
}

form input[type="file"] {
    margin-bottom: 20px;
}

#upload-module-form, .document-list {
    overflow-y: auto;
    height: 100%;
}

.create-module-dropdown-container .create-module-dropdown-button:hover {
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF); /* Darken the gradient on hover */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow on hover */
    color: black;
    border: 1px solid black;
}

.create-module-dropdown-container .create-module-dropdown-button:active {
    background: linear-gradient(135deg, #5a75d5, #82d4e5); /* Darker gradient on click */
    transform: scale(0.96); /* Slightly more shrink on click */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Softer shadow on click */
}

/* For the Create New Module dropdown */
.create-module-dropdown-container {
    position: relative;
}

.create-module-dropdown-container .create-module-dropdown-options {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 16em;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border-radius: 0.5em;
}

.create-module-dropdown-container .create-module-dropdown-options a {
    padding: 0.5em 1em;
    display: block;
    text-decoration: none;
    color: #333;
    border-radius: 0.5em;
    margin: 0.25em;
}

.create-module-dropdown-container .create-module-dropdown-options a:hover {
    background-color: #ddd;
}

/* For showing Create New Module dropdown */
.create-module-dropdown-container .create-module-dropdown-options.show {
    display: block;
}


/* Document name styling */
.document-name {
    flex: 1;
}

/* Toggle container styling */
.toggle-container {
    display: flex;
    align-items: center;
}

/* Style for selected document items */
.document-item.selected {
    background-color: #f0f8ff;
}

/* Style for the checkbox */
.document-toggle {
    transform: scale(1.2);
    cursor: pointer;
}


