﻿/*@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}*/

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-icon {
    width: 150px;
    height: 100px;
    border-radius: 50px
}

.container-fluidw {
    height: 100%;
    display: flex;
    overflow: hidden;
}

.left-panel {
    width: 35%;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    margin-bottom:30px;
}
@media (min-width: 767px) and (max-width: 1200px) {
    .left-panel {
        padding: 0px;
    }
    #uploadBtn{
        margin-left:0;
        width:100%
    }
}
@media (max-width: 768px) {
    .left-panel {
        width: 100% !important;
        border-right: none;
        margin-bottom: 20px;
    }

    .dropdown-menu {
        left: 0 !important;
        width: 100% !important;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .selector-button {
        font-size: 14px;
        padding: 8px;
    }

    #buttonContainer {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-top: 10px;
    }

    #currentdocName, #buttonContainer {
        text-align: center !important;
    }

    #displyBtns {
        flex-direction: column;
    }
    .mobile-container{
        padding:0px 0px;
        height:100%;
        overflow:auto;
    }
}

@media (min-width: 769px) {
    .left-panel {
        width: 35%;
        height:100%
    }
    .mobile-container{
        padding:0px
    }
}

.right-panel {
    width: max-content;
    /*padding: 10px;*/
    overflow-y: auto;
    position: relative;
}

.pdf-page-container {
    position: relative;
    /*margin-bottom: 20px;
    padding-top: 20px;*/
}

.pdf-canvas {
    border: 1px solid #ddd;
    cursor: crosshair;
}

.signature-box {
    position: absolute;
    width: 250px;
    height: 40px;
    /*background-color: rgba(0, 150, 255, 0.1);*/
    /*border: 2px dashed #0096ff;*/
    cursor: move;
    /*resize: both;*/
    resize: none; /* disable browser-native resizable */
    /* overflow: hidden; */
}
    /* Bottom-right resize handle */
.signature-box:hover::before {
    content: "";
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 24px;
    height: 24px;
    background: url('/img/Action-Icons/Arrows-Diagonal.svg') no-repeat center center;
    background-size: 100%;
    /*cursor: se-resize;*/
}

.signature-image {
    width: 100%;
    height: 100%;
}

#signatureCanvas {
    border: 1px solid #ddd;
    cursor: crosshair;
}

.font-preview {
    cursor: pointer;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    display: inline-block;
    text-align: center;
    font-size: 24px;
    min-width: 100px;
}

    .font-preview.selected {
        border-color: #007bff;
        background-color: rgba(0, 123, 255, 0.1);
    }

.placeholder-button {
    top: 10px;
    left: 10px;
    z-index: 10;
}

.ema-2 {
    width: 175%;
}

.seq-2 {
    width: 20%;
    /*margin-left: 5px;*/
}

.role-2 {
    width: 75%;
    /*margin-left: 5px;*/
}

.overlay-menu, .modal {
    display: none;
    position: absolute;
    z-index: 1002;
}

.overlay-menu {
    background-color: #007bff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

    .overlay-menu button {
        /* background: none; */
        /* border: none; */
        color: white;
        font-size: 18px;
        cursor: pointer;
        padding: 0 22px;
    }

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.file-pill {
    display: inline-flex;
    align-items: center;
    margin: 5px;
    padding: 8px 12px;
    background-color: #4A6DD91F;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #4A6DD9;
}

    .file-pill span {
        margin-right: 8px;
    }

        .file-pill span:last-child {
            cursor: pointer;
            color: #4A6DD9;
            font-weight: bold;
        }


/* Guide lines (Initially Hidden) */
.signature-box .resize-line {
    position: absolute;
    background: rgba(0, 0, 0, 0.5); /* Darker shade for visibility */
    pointer-events: none;
    display: none; /* Initially hidden */
}


@media (max-width: 576px) {
    .dis-flex-sm {
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    /* Tablet-specific styles here */
    .dis-flex-sm {
        display: unset !important;
    }
}

/* responsive styles*/

/* 📱 Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    /* Styles for small phones */

    .action-menu {
        position: absolute;
        width: 64px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        padding: 4px 8px;
        z-index: 1001;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        display: none;
        justify-content: space-between;
    }

        .action-menu img {
            height: 20px;
        }

    .check-box-am {
        width: 36px !important;
    }
}

/* 📱 Large Mobile Devices (up to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    /* Styles for larger phones (e.g. iPhone 11, Galaxy S) */
    .action-menu {
        position: absolute;
        width: 86px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #fff;
        border-radius: 6px;
        box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.15);
        padding: 6px 12px;
        z-index: 1001;
        font-size: 15px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        display: none;
        justify-content: space-between;
    }

        .action-menu img {
            height: 24px;
        }

    .check-box-am {
        width: 52px !important;
    }
}

/* 📲 Tablets - Portrait (768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    /* Styles for tablets in portrait mode (iPad, Android tablets) */

    .action-menu {
        position: absolute;
        width: 86px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #fff;
        border-radius: 7px;
        box-shadow: 0 1.8px 3.5px rgba(0, 0, 0, 0.18);
        padding: 6px 12px;
        z-index: 1001;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        display: none;
        justify-content: space-between;
    }

        .action-menu img {
            height: 24px;
        }

    .check-box-am {
        width: 50px !important;
    }
}
/* 🖥️ Desktop & Large Screens (1200px and up) */
@media (min-width: 993px) {
    /* Styles for large laptops, desktops */

    .action-menu {
        position: absolute;
        width: 130px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        padding: 8px 16px;
        z-index: 1001;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        display: none;
        justify-content: space-between;
    }

        .action-menu img {
            height: 30px;
        }

    .check-box-am {
        width: 65px !important;
    }
}
/* Common style for all buttons */
.responsive-btn {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
}

/* 💻 Tablets - Landscape / Small Laptops (993px to 1199px) */
/*@media (min-width: 993px) and (max-width: 1199px) {*/
/* Styles for tablets in landscape or small laptops (13") */
/*}*/

/* 🖥️ Desktop & Large Screens (1200px and up) */
/*@media (min-width: 1200px) {*/
/* Styles for large laptops, desktops */
/*}*/

/* Make modal adapt to screen width */
@media (max-width: 768px) {
    #declineDocument .modal-dialog {
        max-width: 95% !important;
        margin: 10px auto;
    }

    #declineDocument .modal-body {
        padding: 15px !important;
    }

    #declineDocument .form-group label {
        font-size: 14px;
    }

    #declineDocument textarea {
        font-size: 14px;
    }
}
