.logo-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-area img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    cursor: pointer;
}

.mail a {
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
}

.hero-text {
    font-size: 3rem;
}

.notification {
    position: fixed;
    min-width: 300px;
    max-width: 400px;
    padding: 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

/* Positioning */
.notification.bottom-right {
    bottom: 20px;
    right: 20px;
}

.notification.top-right {
    top: 20px;
    right: 20px;
}

.notification.bottom-left {
    bottom: 20px;
    left: 20px;
}

.notification.center-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Types of messages */
.notification.success {
    border-left: 20px solid #28a745;
    color: #28a745;
    background-color: #ffffff;
    padding-left: 20px;
}

.notification.error {
    border-left: 20px solid #dc3545;
    color: #dc3545;
    background-color: #ffffff;
}

.notification.info {
    border-left: 20px solid #007bff;
    color: #007bff;
    background-color: #ffffff;
}

.notification.warning {
    border-left: 20px solid #ffc107;
    color: #ffc107;
    background-color: #ffffff;
}

/* Visible state */
.notification.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.modal-dialog-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin: 0;
    width: 300px;
}

/* Modal Positioning */
.modal-dialog-bottom-left {
    bottom: 20px;
    /* right: 20px; */
    max-width: 600px;
    width: 100%;
    margin: 50px auto;
}

/* Smooth Slide-Up Animation */
.custom-modal .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.custom-modal.show .modal-dialog {
    transform: translateY(0);
}

/* Custom Modal Styling */
.custom-modal .modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.modal-backdrop {
    display: none !important;
}

.modal-content {
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3) !important; /* More depth */
    border-radius: 12px; /* More rounded corners */
    border: none;
    background: #ffffff;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle header border */
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Subtle footer border */
}


/* Improve Input Fields */
.form-control {
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
}

.register-container {
    max-width: 600px;
    height: 400px;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 0 auto;
    margin-top: 20px;
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 5px;
}

.form-label {
    font-weight: bold;
}

.profile-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: block;
    margin: 10px auto;
}

.toggle-password {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 75%;
    transform: translateY(-50%);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.loading-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.blinking {
    animation: fadeBlink 1s infinite alternate;
}

@keyframes fadeBlink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.2;
    }
}

/* Style for Inventory Nav Badge */
#inventory-nav-badge {
    position: absolute;
    top: 17px;
    right: 8px;
    font-size: 6px;
    padding: 4px 6px;
    border-radius: 50%;
    display: inline-block;
    font-style: italic;
}

.table-responsive {
    max-height: 250px;
    /* Adjust height as needed */
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;
}

@media print {
    body * {
        visibility: hidden;
    }

    #invoiceContainer,
    #invoiceContainer * {
        visibility: visible;
    }

    #invoiceContainer {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="rgba(0,0,0,0.1)" font-size="50" font-weight="bold" transform="rotate(-30,100,50)">PAID</text></svg>')
            repeat;
        background-size: 50px;
        background-position: center;
    }
    
    .card {
        position: relative;
        z-index: 1; /* Ensure content is above watermark */
        background: white;
    }

    table {
        width: 100%;
        border-collapse: collapse; /* Ensures borders are merged properly */
    }

    th, td {
        border: 1px solid black !important; /* Ensures borders are visible */
        padding: 5px;
        text-align: left;
    }

    .table-bordered {
        border: 1px solid black !important;
    }

    .table-bordered th, 
    .table-bordered td {
        border: 1px solid black !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
    }

    body {
        -webkit-print-color-adjust: exact !important; /* Ensures colors are printed */
        print-color-adjust: exact !important;
    }
}


.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Adjust width as needed */
    display: inline-block;
    vertical-align: middle;
}

.description-card {
    position: absolute;
    top: 30px;
    left: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

.description-link.active {
    font-weight: bold;
    color: #007bff;
}


/* Floating Button */
#chat-support-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    font-family: 'Arial', sans-serif;
}

#chat-support-widget i {
    margin-right: 4px;
}

#chat-button {
    display: flex;
    align-items: center;
    background-color: #3368c6;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}

#chat-button i {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

#chat-window {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* When chat is active */
#chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Optional Close Icon */
.chat-header {
    position: relative;
}

.chat-header .close-chat {
    position: absolute;
    top: 8px;
    right: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-header {
    display: flex;
    align-items: center;
    background: #3368c6;
    color: white;
    padding: 10px;
}

.chat-header img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.chat-header h6 {
    margin: 0;
    font-size: 16px;
}

.chat-header .online-status {
    color: #d4f8d4;
    font-size: 12px;
}

.chat-body {
        padding: 15px;
        background: url('/images/whatsapp_bg.jpg') no-repeat center center;
        background-size: cover;
        min-height: 100px;
        position: relative;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #3368c6;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: .2;
        transform: scale(1);
    }
    20% {
        opacity: 1;
        transform: scale(1.3);
    }
    100% {
        opacity: .2;
        transform: scale(1);
    }
}


.lab-message {
    background: #fcfcfc;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-footer {
    padding: 10px;
    text-align: center;
    background: #f1f1f1;
}

.chat-footer button {
    background: #3368c6;
    color: white;
    padding: 8px 55px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.chat-footer button:hover {
    background: #007bff;
}

.notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.445);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none; /* Hidden by default */
  }
  
  .popup-content {
    width: 80%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }

  .popup-content img {
    width: 40px;
    margin-bottom: 10px;
  }
  
  .popup-content h2 {
    margin: 0 0 10px;
    font-size: 14px;
  }

  .popup-content p {
    font-size: 12px;
  }
  
  .popup-content button {
    margin: 10px;
    padding: 7px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
  }
  
  #allow-notifications {
    background-color: #3368c6;
    color: white;
  }
  
  #deny-notifications {
    background-color: #ff69b4;
    color: white;
  }

  .notification {
    position: fixed;
    min-width: 300px;
    max-width: 400px;
    padding: 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
  }

  /* Positioning */
  .notification.bottom-right { bottom: 20px; right: 20px; }
  .notification.top-right { top: 20px; right: 20px; }
  .notification.bottom-left { bottom: 20px; left: 20px; }
  .notification.center-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Types of messages */
  .notification.success { border-left: 20px solid #28a745; color: #28a745; background-color: #ffffff; padding-left: 20px; }
  .notification.error { border-left: 20px solid #dc3545; color: #dc3545; background-color: #ffffff; }
  .notification.info { border-left: 20px solid #007bff; color: #007bff; background-color: #ffffff; }
  .notification.warning { border-left: 20px solid #ffc107; color: #ffc107; background-color: #ffffff; }

  /* Visible state */
  .notification.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  .animated-border {
    position: relative;
    padding: 10px 20px;
    background: transparent;
    color: var(--bs-primary);
    border: 2px solid transparent;
    border-radius: 8px;
    z-index: 1;
    overflow: hidden;
  }
  
  /* Using pseudo-element to animate border effect */
  .animated-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(90deg, var(--bs-primary), transparent, var(--bs-primary));
    background-size: 300% 100%;
    animation: borderFlow 3s linear infinite;
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
  }
  
  @keyframes borderFlow {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
  }



  /* Ad Banner Styling */
.ad-banner {
    max-width: 728px;
    margin: 10px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
  }
  
  .ad-banner:hover {
    transform: scale(1.05);
  }
  
  /* Popup Ad Modal Styling */
  .ad-content {
    border-radius: 10px;
  }
  
  .ad-header {
    border-bottom: none;
  }
  
  .ad-body img {
    max-width: 100%;
    border-radius: 5px;
  }
  
  .back-to-top {
    margin-bottom: 65px;
  }




@media screen and (max-width: 764px) {
    .hero-text {
        font-size: 1.6rem;
    }

    .logo-area {
        display: flex;
        flex-direction: unset;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .logo-area img {
        width: 30px;
        height: 30px;
        border-radius: 50px;
        cursor: pointer;
    }

    .animated-border {
        margin-bottom: 10px;
    }

}