/* Basic modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.5s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.description-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#descriptionHeader {
    margin-bottom: 10px;
}

.description-box {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

.close {
    background-color: #f44336; /* Red background */
    color: white; /* White text color */
    border: none; /* Remove border */
    border-radius: 50%; /* Round button */
    width: 30px; /* Button width */
    height: 30px; /* Button height */
    text-align: center; /* Center text inside button */
    line-height: 30px; /* Vertically center text */
    font-size: 20px; /* Text size */
    font-weight: bold; /* Bold text */
    position: absolute; /* Absolute position */
    top: 10px; /* Distance from top */
    right: 10px; /* Distance from right */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Transition effect for background color */
}

.close:hover,
.close:focus {
    background-color: #d32f2f; /* Darker red on hover/focus */
    outline: none; /* Remove outline on focus */
}

/* Style for the show description button */
.btn-show-description {
    border-radius: 5px;
}

.btn-big-primary {
    background-color: #007bff; /* Primary color */
    color: white; /* White text color */
    padding: 10px 20px; /* Padding */
    font-size: 18px; /* Font size */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Transition effect for background color */
}

.btn-big-primary:hover {
    background-color: #0056b3; /* Darker primary color on hover */
}

.btn-block {
    display: block; /* Block level element */
    width: 100%; /* Full width */
    margin-top: 24px; /* Margin top */
}

/* CSS Styles */
.description-label {
    font-weight: bold;
    margin-bottom: 10px;
}


/* Additional responsive styles if needed */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 30% auto;
    }

    .btn-show-description {
        width: 100%;
        font-size: 16px;
    }
}

.popup-overlay-neworder {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.popup-content-neworder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  max-width: 90%; /* Giới hạn chiều rộng tối đa */
  max-height: 80%; /* Giới hạn chiều cao tối đa */
  overflow-y: auto; /* Hiển thị thanh cuộn nếu nội dung vượt quá chiều cao */
  box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước của phần tử */
  transition: opacity 0.5s ease;
  opacity: 0;
}

.popup-content-neworder.show {
  opacity: 1;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #888; /* Màu mặc định */
}

.close-button:hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; /* Đường kính của hình tròn */
  height: 20px; /* Đường kính của hình tròn */
  border-radius: 50%; /* Tạo hình tròn */
  background-color: red; /* Màu của hình tròn */
  z-index: -1; /* Đảm bảo hình tròn ở phía sau nút đóng */
}

