#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

#custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    z-index: 9999;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#custom-alert.show {
    opacity: 1;
}

#custom-alert.error {
    background-color: #f44336;
    color: white !important;
}

.doc-preview{
    margin:10px 0;
    border:1px dashed #e5e7eb;
    border-radius:14px;
    padding:10px;
    cursor:pointer;
    background:#fafafa;
}
.doc-preview.img img{
    width:100%;
    max-height:180px;
    object-fit:cover;
    border-radius:12px;
    display:block;
}
.doc-preview.pdf{
    display:flex;
    align-items:center;
    gap:10px;
}
.pdf-icon{
    width:46px;height:46px;border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    font-weight:700;
    background:#fee2e2; color:#991b1b; border:1px solid #fecaca;
}

  
/* Custom Confirmation */

    /* Overlay */
    .confirm-overlay {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        justify-content: center;
        align-items: center;
    }

    /* Box */
    .confirm-box {
        background: #fff;
        border-radius: 12px;
        width: 320px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        font-family: Arial, sans-serif;
        animation: fadeIn 0.25s ease-in-out;
    }

    /* Message */
    .confirm-message {
        font-size: 16px;
        color: #333;
        margin-bottom: 20px;
    }

    /* Buttons */
    .confirm-buttons {
        display: flex;
        justify-content: space-around;
    }

    .confirm-btn {
        padding: 8px 16px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        font-size: 14px;
    }

    .confirm-yes {
        background-color: #4CAF50;
        color: white;
    }

    .confirm-no {
        background-color: #ccc;
        color: #333;
    }

    .confirm-yes:hover {
        background-color: #43a047;
    }

    .confirm-no:hover {
        background-color: #b3b3b3;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }

