/* General Styles */
#fuc-create-user-form, #fuc-user-list {
    margin: 20px auto;
    max-width: 800px;
    border: 1px solid #ddd;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    box-sizing: border-box;
}

#fuc-create-user-form label, #fuc-user-list th {
    font-weight: bold;
    margin-bottom: 10px;
}

#fuc-create-user-form input, #fuc-create-user-form select, #fuc-create-user-form button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#fuc-create-user-form button {
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
}

#fuc-user-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#fuc-user-list th, #fuc-user-list td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
}

#fuc-user-list th {
    background: #f1f1f1;
}

/* Modal Styles */
.fuc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Darkened background */
}

.fuc-modal-content {
    background-color: white;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.fuc-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.fuc-close-modal:hover {
    color: black;
}

/* Form Styles in Modal */
.fuc-modal-content form label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
}

.fuc-modal-content form input, 
.fuc-modal-content form select, 
.fuc-modal-content form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.fuc-modal-content form button {
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
}

.fuc-modal-content form button:hover {
    background-color: #005f8a;
}

/* Responsive Table */
@media (max-width: 768px) {
    #fuc-user-list thead {
        display: none;
    }

    #fuc-user-list tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        background: #f9f9f9;
        padding: 10px;
    }

    #fuc-user-list td {
        display: block;
        padding: 10px;
        text-align: right;
        border: none;
        position: relative;
    }

    #fuc-user-list td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-transform: uppercase;
    }
}

/* Responsive Modal */
@media (max-width: 480px) {
    .fuc-modal-content {
        padding: 15px;
        max-width: 300px;
    }

    .fuc-modal-content form button {
        font-size: 14px;
        padding: 8px;
    }

    .fuc-modal-content form input, 
    .fuc-modal-content form select {
        padding: 8px;
    }

    .fuc-close-modal {
        font-size: 20px;
    }
}

/* Loading Overlay */
#fuc-loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding-top: 20%;
    font-size: 18px;
    font-weight: bold;
}

#fuc-loading-overlay span {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}
