﻿#divNotification {
    max-height: 50vh; /* 80% of the viewport height */
    overflow-y: auto; /* Enables vertical scrolling */
}

.error-msg {
    color: red;
    font-size: 12px;
    margin: 0 10px 5px 10px;
}

.media-btn {
    padding: 8px 10px;
    background-color: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s ease;
}

    .media-btn:hover {
        background-color: #ddd;
    }

.media-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
}

.media-preview {
    font-size: 12px;
    color: #fff;
    word-break: break-word;
}

.preview-img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
    margin-top: 5px;
}

.preview-video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    margin-top: 5px;
}





.media-modal {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

    .media-modal.hidden {
        display: none;
    }

.media-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

    .media-modal-content img,
    .media-modal-content video {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }

.media-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 2001;
    color:black;
}

.scroll-container {
    height: 600px; /* Set the height */
    overflow-y: scroll; /* Enable vertical scrolling */
    border: 0px solid #ccc; /* Optional: for visibility */
}

.pointer {
    cursor: pointer;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 75px;
    right: 43px;
    z-index: 100;
}

.image-container {
    width: 100%;
    height: 380px; /* Set desired height */
    overflow: hidden;
    position: relative;
}

.img-fixed {
    width: 100%;
    height: 100%;
    object-fit: fill; /* This keeps aspect ratio and fills the box */
}








/* Modal wrapper */
.item-detail-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    font-family: Arial, sans-serif;
}

/* Overlay */
.item-detail-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

/* Modal box */
.item-detail-content {
    position: relative;
    margin: 40px auto;
    background: #fff;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 2010;
}

/* Close button */
.item-detail-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
}

/* Modal body */
.item-detail-body {
    display: flex;
    flex-wrap: wrap;
}

/* Images */
.item-detail-images {
    flex: 1 1 50%;
    padding: 20px;
}

.item-detail-large img {
    width: 100%;
    height: 400px;
    object-fit: fill;
    border-radius: 8px;
}


.item-detail-thumbnails {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .item-detail-thumbnails img {
        width: 70px;
        height: 70px;
        object-fit: fill;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.2s;
    }

        .item-detail-thumbnails img:hover {
            transform: scale(1.05);
        }

/* Info */
.item-detail-info {
    flex: 1 1 50%;
    padding: 20px;
}

    .item-detail-info h2 {
        margin-bottom: 10px;
    }

    .item-detail-info p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .item-detail-info label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .item-detail-info select {
        width: 100%;
        padding: 8px;
        margin-bottom: 20px;
        font-size: 14px;
        border-radius: 4px;
    }

/* Buttons */
.item-detail-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1 1 auto;
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: scale(1.05);
    }

/* Responsive */
@media (max-width: 768px) {
    .item-detail-body {
        flex-direction: column;
    }

    .item-detail-images,
    .item-detail-info {
        flex: 1 1 100%;
    }

    .item-detail-thumbnails {
        justify-content: center;
    }

    .item-detail-content {
        margin: 20px;
    }

    .item-detail-close {
        top: 5px;
        right: 10px;
    }
}


.modal-open {
    position: fixed;
    overflow: hidden;
    width: 100%;
}

.blur-background {
    filter: blur(30px);
    transition: filter 0.0s ease;
}



/* Loader Wrapper Covers Entire Screen */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px); /* Apply blur to background */
    background-color: rgba(255, 255, 255, 0.4); /* Optional semi-transparent background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Loader GIF Styling */
#loader img {
    width: 60px;
    height: auto;
}




.unit-radio-group {
  display: flex !important;       /* Flexbox for horizontal layout */
  flex-wrap: wrap;                /* Wrap if too many */
  gap: 15px;                     /* Space between radios */
  margin-top: 10px;
  align-items: center;
}

.unit-radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid transparent;  /* default no visible border */
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  user-select: none;
  position: relative;
  color: #333;
}

.unit-radio-group input[type="radio"] {
  margin-right: 8px;
  cursor: pointer;
}

/* Hover highlight on label */
.unit-radio-group label:hover {
  background-color: #f0f8ff;
  border-color: #007bff;
}

/* Selected radio's label text */
    .unit-radio-group label:has(input[type="radio"]:checked) {
        background-color: #21aa9a;
        color: white;
        font-weight: 600;
    }




.red-border-highlight {
    box-shadow: inset 0 0 0 2px red;
    background-color: #ffe6e6;
    font-weight: bold;
}
