 /* Specific CSS for Modern and Colorful Modal */
 :root {
    --primary-color: #9e1fff;
    
  }
 .modern-modal .modal-header {
    background-color: var(--primary-color); /* Green header */
    color: #fff;
    display: flex;
    align-items: center; /* Vertically center elements */
    justify-content: space-between; /* Space between title and close button */
    padding: 15px 20px; /* Adjust padding as needed */
    overflow: hidden;
}

.modern-modal .modal-title {
    display: flex;
    align-items: center; /* Vertically center icon and text */
    margin: 0; /* Remove top margin to avoid extra space */
    font-weight: bold;
    color: #f1f1f1;

}

.modern-modal .modal-title i {
    margin-right: 8px; /* Space between icon and title */
}

.modern-modal .btn-close {
    display: flex;
    align-items: center; /* Vertically center the close button */
    justify-content: center;
    padding: 0;
    background-color: transparent;
    border: none;
    color: #f1f1f1;
    font-size: 2.0rem; /* Increase size for better visibility */
    cursor: pointer;
    margin-right: 8px;
}

.modern-modal .btn-close:hover {
    color: #f8d7da; /* Lighten color on hover */
}

.modern-modal .modal-body {
    padding: 20px;
    background-color: #f5f5f5;
}

.modern-modal .modal-row {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.modern-modal .modal-icon {
    font-size: 24px;
    color: var(--primary-color); /* Teal color for icons */
    margin-right: 15px;
}

.modern-modal .modal-label {
    font-weight: bold;
    color: #444;
    width: 25%;
}

.modern-modal .modal-value {
    width: 60%;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 5px;
    overflow-wrap: break-word; /* Break long text into multiple lines */
    line-height: 1.5;
    font-weight: bold;
}

.modern-modal .edit-icon {
    color: #007bff; /* Blue for edit icons */
    font-size: 15px;
    margin-left: 15px;
}

.modern-modal .edit-icon:hover {
    color: #0056b3;
}

.modern-modal .modal-footer {
    background-color: #f1f1f1;
    border-top: 1px solid #e0e0e0;
}

.modern-modal .btn-secondary {
    background-color: #607D8B; /* Darker grey for close button */
    border: none;
}

.modern-modal .btn-secondary:hover {
    background-color: #455A64; /* Darker shade on hover */
}

/* CSS for Secondary Modal */
/* CSS for Secondary Modal */
#editModal {
    position: fixed; /* Fixed positioning to stay within the viewport */
    z-index: 1051; /* Ensure it appears above the main modal */
    width: 500px; /* Fixed width */
    max-width: 100%; /* Ensure it doesn't overflow */
    overflow: hidden;

}

#editModal .modal-dialog {
    margin: 0;
}

#editModal .modal-content {
    border: none; /* Remove border */
}

#editModal .modal-body {
    padding: 20px; /* Adjust padding */
}

#editModal .modal-footer {
    display: flex;
    justify-content: space-between; /* Align buttons */
}

#editModal .btn-secondary,
#editModal .btn-primary {
    padding: 0.5rem 1rem;
}