html {
    font-size: 16px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
        scroll-behavior: smooth;
    }
}


html {
  position: relative;
  min-height: 100%;
}
.text-navy {
    color: #1e3a63;
}

.master-bg {
    background-color:  #1e3a63;
    font-weight:bold;
    color:aliceblue !important;
}
.master-bg:hover {
    background-color:  #1e3a63;
    font-weight:bold;
    color:aliceblue !important;
}
.master-bg:focus {
    background-color:  #1e3a63;
    font-weight:bold;
    color:aliceblue !important;
}

.is-loading-global {
    opacity: 0.8;
    cursor: not-allowed !important;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px); 
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



.animate-image {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    animation: slideUpFade 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.0s;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


.floating-node {
    animation: floating 3s ease-in-out infinite;
    display: block;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.transform-image img:hover {
    transform: scale(1.07);
/*    opacity: 0.8;*/
}
.transform-image img {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.image-shadow {
    box-shadow: 0 15px 35px rgba(31, 54, 102, 0.2);
    transition: box-shadow 0.3s ease;
}

.image-shadow:hover {
    box-shadow: 0 25px 50px rgba(31, 54, 102, 0.3);
}



.btn-sliding-bg {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    background: linear-gradient(-90deg, #3074bc 0%, #205a97 100%);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-sliding-bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1a3a5f;
        z-index: -1;
        transform: translateX(-100%);  
        transition: transform 0.5s ease-in-out;
    }

    .btn-sliding-bg:hover::before {
        transform: translateX(0);  
    }
    .btn-sliding-bg:hover {
        color: white !important;
        transform: scale(1.05);
    }

.btn-sliding-warning {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    background: linear-gradient(-90deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-sliding-warning::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #cc9a06;
        z-index: -1;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out;
    }

    .btn-sliding-warning:hover::before {
        transform: translateX(0);
    }

    .btn-sliding-warning:hover {
        color: #000;
    }

    .btn-sliding-warning:hover {
        color: white !important;
        transform: scale(1.05);
    }



.btn-sliding-danger {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    /* Muted Crimson/Coral Gradient */
    background: linear-gradient(-90deg, #d9534f 0%, #c9302c 100%);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-sliding-danger::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Darker shade for the slide effect */
        background-color: #a52825;
        z-index: -1;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out;
    }

    .btn-sliding-danger:hover::before {
        transform: translateX(0);
    }

    .btn-sliding-danger:hover {
        color: white !important;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(217, 83, 79, 0.2);
    }


.btn-sliding-success {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    /* Green gradient (light to darker) */
    background: linear-gradient(-90deg, #5cb85c 0%, #449d44 100%);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-sliding-success::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Darker green for slide effect */
        background-color: #2b6e2b;
        z-index: -1;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out;
    }

    .btn-sliding-success:hover::before {
        transform: translateX(0);
    }

    .btn-sliding-success:hover {
        color: white !important;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(92, 184, 92, 0.2);
    }


.dataTables_wrapper {
    overflow-x: auto;
}

table.dataTable {
    width: 100% !important;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

table.dataTable thead th {
    background-color: #1e3a63 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
    border-bottom: 2px solid #0d6efd !important;
    white-space: nowrap; 
/*    padding: 12px 10px; */
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    background-image: none !important;
}

            
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    color: #ffffff !important;
    opacity: 0.8;
}

table.dataTable tbody tr:hover {
    background-color: #f1f5ff !important;
    transition: background-color 0.2s ease;
}

@media screen and (max-width: 767px) {
    table.dataTable {
        font-size: 12px; 
    }

    table.dataTable thead th {
        font-size: 12px !important;
        padding: 10px 6px; 
        letter-spacing: 0.2px !important;
    }

    table.dataTable tbody td {
        padding: 8px 6px;
    }

    .dataTables_wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }
}

.btndelete {
    border: 1px solid #dc3545; 
    color: #dc3545; 
    background-color: transparent;
    transition: all 0.3s ease; 
}

.btndelete:hover {
    background-color: #FAD2D1 !important; 
    color: #a71d2a !important; 
    border-color: #dc3545 !important;
    transform: translateY(-1px); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


table:not(.not-elipsis) td:not(.text-center) {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 150px;
}

    table:not(.not-elipsis) td:not(.text-center):hover {
        white-space: normal;
        overflow: visible;
        background-color: white;
        z-index: 1;
        position: relative;
    }
table.dataTable:not(.not-elipsis) tr.expanded td:not(.text-center) {
    white-space: normal;
    overflow: visible;
    background-color: white;
    z-index: 1;
    position: relative;
}


.swal2-container {
    z-index: 20000 !important;
}


.slide-up {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}




@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== GLOBAL SCROLLBAR (Chrome, Edge, Safari) ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px; /* for horizontal scroll */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
    transition: background 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

/* ===== FIREFOX SUPPORT ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.right-strip-container {
    position: fixed;
    bottom: 20px;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Main strip */
.right-strip {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strip-item {
    background: #3074BC;
    border: none;
    color: #fff;
    padding: 12px 20px 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 50px 0 0 50px;
    font-weight: 600;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    transform: translateX(calc(100% - 52px));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

/* Desktop hover reveal */
@media (hover: hover) and (pointer: fine) {
    .strip-item:hover {
        transform: translateX(0);
        padding-right: 28px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    }
}

/* Keyboard focus */
.strip-item:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
    transform: translateX(0);
}

/* Colors */
.strip-item.whatsapp {
    background: #25D366;
}

.strip-item.call {
    background: #28a745;
}

/* SVG icons */
.strip-item svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* --- MOBILE SPECIFIC STYLES --- */
@media (max-width: 768px) {
    .right-strip {
        gap: 8px;
    }

    /* Make strip items fully visible */
    .strip-item {
        transform: translateX(0);
        border-radius: 50px;
        padding: 10px 18px;
        backdrop-filter: blur(4px);
        background: rgba(48, 116, 188, 0.95);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

        .strip-item.whatsapp {
            background: rgba(37, 211, 102, 0.95);
        }

        .strip-item.call {
            background: rgba(40, 167, 69, 0.95);
        }
        /* Touch feedback */
        .strip-item:active {
            transform: scale(0.96);
            transition: 0.05s;
        }

    /* ----- Close button (only on mobile) ----- */
    .strip-close {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        border: none;
        border-radius: 50px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin-bottom: 4px;
        align-self: flex-end;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

        .strip-close svg {
            width: 18px;
            height: 18px;
            stroke: white;
            stroke-width: 2;
        }

        .strip-close:active {
            transform: scale(0.9);
            background: rgba(0,0,0,0.8);
        }

    /* Reopen button (floating chat icon) */
    .reopen-strip-btn {
        background: #3074BC;
        border: none;
        border-radius: 50px;
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        transition: all 0.2s ease;
        margin-top: 4px;
    }

        .reopen-strip-btn:active {
            transform: scale(0.92);
            background: #1f5a96;
        }

        .reopen-strip-btn svg {
            width: 28px;
            height: 28px;
            stroke: white;
            stroke-width: 1.5;
        }
}

/* Hide close button on desktop */
@media (min-width: 769px) {
    .strip-close {
        display: none;
    }

    .reopen-strip-btn {
        display: none !important;
    }
}







