/* Modal overlay for the background */
.toplevel_page_hp-admin-widget #wpcontent {
    padding-left: 0;
}
.toplevel_page_hp-admin-widget #wpbody-content {
    position: relative;
    overflow: hidden;
}
#approval-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(83deg, rgba(0,227,253,0.8) 0%, rgba(110,241,149,0.8) 100%);
    z-index: 12;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#approval-modal.hidden {
    display: none !important;
}

/* Modal content container */
.modal-content {
    background: #ffffff;
    margin-top: 50px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

/* Fade-in animation for the modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close button for the modal */
#close-approval-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #aaaaaa;
    transition: color 0.3s ease;
}

#close-approval-modal:hover {
    color: #333333;
}

/* Modal header */
.modal-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
}

/* Modal form styles */
#hp-approval-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

/* Form labels */
#hp-approval-form label {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    margin-bottom: 0;
}

/* Form inputs and select fields */
#hp-approval-form input,
#hp-approval-form select {
    width: 100%;
    max-width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #cdcdcd;
    border-radius: 3px;
    font-size: 14px;
    color: #333333;
    transition: all 0.3s ease;
}

#hp-approval-form input:focus,
#hp-approval-form select:focus {
    outline: none;
    border-color: rgba(0, 227, 253, 0.8);
    background-color: #ffffff;
}

/* Submit button */
#hp-approval-form .button-primary {
    background: linear-gradient(83deg, rgba(0,227,253,1) 0%, rgba(110,241,149,1) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 5px;
}

#hp-approval-form .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#hp-approval-form .button-primary:active {
    transform: translateY(1px);
}

/* Message container below the form */
#form-message {
    margin-top: 15px;
    font-size: 14px;
    color: #333333;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 4px;
}

.toplevel_page_hp-admin-widget .notice-success,
.toplevel_page_hp-admin-widget .notice-error {
    margin-left: 0;
}