/* Base modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal in spotlight mode - higher z-index to appear above spotlight */
.modal.spotlight-mode {
    z-index: 10002; /* Higher than spotlight close button (10001) */
}

/* Modal content container */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form elements styling */
.modal-content label {
    display: block;
    margin: 10px auto 5px;
    font-weight: bold;
    text-align: left;
    max-width: 500px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Manage classes specific styles */
#manage-classes-modal .class-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.class-item button {
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.class-item button:hover {
    background-color: #d32f2f;
}

/* Modal action buttons */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.modal-actions button {
    min-width: 100px;
    padding: 10px 20px;
}

#close-manage-classes-button {
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#close-manage-classes-button:hover {
    background-color: #1976d2;
}

/* Responsive styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 15px;
        margin: 5% auto;
    }

    .modal-content input,
    .modal-content textarea {
        max-width: 100%;
    }

    .modal-content label {
        text-align: center;
    }
}