body {
    font-family: Arial, sans-serif;
}

.container {
    width: 80%;
    margin: auto;
    overflow-x: auto; /* Enable horizontal scrolling */
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.table th {
    background-color: #760706ff; /* Header background color */
    color: white; /* Header text color */
}

.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* New CSS rule to style the links in the table */
.table td a {
    color: #760706ff; /* Link color */
    text-decoration: none; /* Remove underline */
}

.table td a:hover {
    text-decoration: underline; /* Underline on hover */
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background-color: black; /* Pagination button background color */
    color: white;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Ensure the table can scroll horizontally on small screens */
@media screen and (max-width: 768px) {
    .container {
        width: 100%; /* Use full width on small screens */
    }

    .table {
        display: block; /* Make the table a block element */
        width: auto; /* Allow the table to be as wide as needed */
        overflow-x: auto; /* Enable horizontal scrolling */
    }
}

.button-container-new {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    align-items: center; /* Center the buttons vertically */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Add space between buttons */
    width: 100%; /* Ensure the container takes full width */
}
  
.buttonz {
    flex: 1 1 45%; /* Allow buttons to grow and shrink, with an equal width */
    min-width: 150px; /* Ensure buttons don't shrink too much on smaller screens */
    padding: 10px 20px; /* Adjust padding for better text fit */
    font-size: 16px; /* Adjust font size for better fit */
    text-align: center; /* Ensure text is centered */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: #1a1b1f;
    border-radius: 0;
    line-height: 20px;
    text-decoration: none;
    transition: background-color .4s, opacity .4s, color .4s;
    margin: 0; /* Remove default margin */
    max-width: calc(50% - 5px); /* Ensure equal width for the buttons and account for gap */
}
  
@media (max-width: 768px) {
    .button-container-new {
        justify-content: center; /* Adjust spacing for smaller screens */
    }
    
    .buttonz {
        max-width: 100%; /* Allow buttons to take full width on smaller screens */
        margin: 5px 0; /* Add margin for vertical spacing on small screens */
        font-size: 14px; /* Adjust font size for mobile */
        padding: 10px; /* Adjust padding for mobile */
    }
}
  
@media (max-width: 480px) {
    .buttonz {
        font-size: 12px; /* Further adjust font size for very small screens */
        padding: 8px; /* Further adjust padding for very small screens */
    }
}
  
.tabcontent {
    position: relative;
}

/* Optional: Blur content by default, which will be adjusted via JS */
#datarows tr {
    filter: blur(0px); /* Start with no blur */
    transition: filter 0.3s ease;
}

.table img {
    max-width: 100%;
    height: auto;
}

.image-column {
    width: 150px; /* Adjust this width as needed */
}

@media (min-width: 768px) {
    .image-column {
        width: 200px; /* Adjust this width as needed */
    }
}

@media (min-width: 992px) {
    .image-column {
        width: 250px; /* Adjust this width as needed */
    }
}

textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    resize: none; /* Disable manual resizing */
    overflow: hidden; /* Hide scrollbar */
}

textarea[readonly] {
    background-color: #f9f9f9;
    border: none;
    padding: 0;
    color: #000;
}


input[type="text"][readonly] {
    background-color: #f9f9f9;
    border: none;
    padding: 0;
}
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark background with transparency */
    justify-content: center;
    align-items: center;
}

#modalContent {
    background: #ffffff; /* White background for the modal content */
    padding: 20px;
    border-radius: 8px; /* Rounded corners */
    width: 400px; /* Fixed width for better alignment */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #000; /* Black text */
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: #000; /* Black text for labels */
    font-weight: bold; /* Make labels stand out */
}

.modal-body input, .modal-body select, .modal-body textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    color: #000; /* Black text */
    box-sizing: border-box;
    background-color: #f9f9f9; /* Light background for inputs */
}

.modal-body textarea {
    resize: vertical; /* Allow resizing only vertically */
}

.modal-footer {
    text-align: center;
}

.modal-footer button {
    background-color: #760706ff; /* Red background */
    color: #fff; /* White text */
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    transition: background-color 0.3s ease;
}

.modal-footer button:hover {
    background-color: #5a0404; /* Darker red on hover */
}

/* Alignment of form fields */
.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-body select, .modal-body input, .modal-body textarea {
    margin-bottom: 15px;
}

.modal-body label {
    margin-top: 10px;
}

/* Layout */
.edge-filters {
    --gap: 12px;
    --radius: 12px;
    --bg: #ffffff;
    --soft: #f6f7f9;
    --text: #0f172a;            /* slate-900 */
    --muted: #64748b;           /* slate-500 */
    --line: #e5e7eb;            /* gray-200 */
    --focus: #2563eb;           /* blue-600 */
    --btn: #111827;             /* gray-900 */
    --btn-text: #ffffff;
  
    background: var(--bg);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  
  .edge-filters-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin-bottom: 14px;
  }
  
  @media (max-width: 1100px) {
    .edge-filters-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 640px) {
    .edge-filters-row {
      grid-template-columns: 1fr;
    }
  }
  
  /* Field block */
  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .field label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
  }
  
  .field input,
  .field select {
    appearance: none;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.3;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }
  
  .field input::placeholder {
    color: var(--muted);
  }
  
  .field input:focus,
  .field select:focus {
    outline: none;
    border-color: var(--focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }
  
  .help {
    color: var(--muted);
    font-size: 0.8rem;
  }
  
  /* Actions */
  .edge-filters-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
  }
  
  .btn-primary {
    background: var(--btn);
    color: var(--btn-text);
    border: 1px solid var(--btn);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.06s ease, opacity 0.15s ease;
  }
  
  .btn-primary:hover { opacity: 0.95; }
  .btn-primary:active { transform: translateY(1px); }
  
  .edge-filters-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.5rem 1rem;
  }
  
  .edge-filters-summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
  }
  
  .edge-filters-summary::-webkit-details-marker { display: none; }
  
  .edge-filters-wrapper[open] .edge-filters-summary {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
  }
  #spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  