/* Overlay */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-in-out;
}

#loading {
    border: 1px solid #3498db;
    padding: 20px 20px 20px 80px;
    width: 300px;
    height: 120px;
    background: #ffffff url('../images/FhHRx-Spinner.gif') 20px 50% no-repeat;
    position: fixed;
    display: none;
    z-index: 3000;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loading h4 {
    margin: 10px 0 0 0;
    padding: 0;
    color: #e67e22;
    font-family: 'Segoe UI', sans-serif;
}

.pull-right {
    float: right;
}

.non-local-image {
    display: inline-block;
    border: 3px dashed #ccc;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.non-local-image:after {
    content: "";
    background: url(../logo.php) center center no-repeat;
    background-size: cover;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: -1;
}

div.section-break {
    margin: 2em 0;
    padding-top: 1em;
    border-top: 2px solid #dedede;
}

input.dp {
    width: 12em;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Custom CSS for datepicker */
.ui-datepicker-trigger {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: transparent;
    margin-left: 4px;
    background-image: url('../images/calendar-icon.png'); /* optional custom icon */
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    top: 2px;
    border: none;
}

.draft-saved {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 2em;
    right: 1em;
    z-index: 1050;
}

.delete-draft:hover {
    background-color: #ffae42 !important;
    cursor: pointer;
}

/* Notification Bars */
.notice_bar {
    margin: 10px 0;
    padding: 10px 16px 10px 48px;
    line-height: 20px;
    border: 1px solid #2ecc71;
    background: url('../assets/default/images/icons/ok.png') 12px center no-repeat #ecfdf3;
    color: #2e7d32;
    border-radius: 4px;
}

.warning_bar {
    margin: 10px 0;
    padding: 10px 16px 10px 48px;
    line-height: 20px;
    border: 1px solid #f39c12;
    background: url('../assets/default/images/icons/alert.png') 12px center no-repeat #fff8e1;
    color: #b35400;
    border-radius: 4px;
}

.error_bar {
    margin: 10px 0;
    padding: 10px 16px 10px 48px;
    line-height: 20px;
    border: 1px solid #e74c3c;
    background: url('../assets/default/images/icons/error.png') 12px center no-repeat #fdecea;
    color: #c0392b;
    border-radius: 4px;
}
