/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0%;
    padding: 0;
    background-color: #f4f4f4;
    color: white;
    background-image: url('/ProjectManager/Images/grid.png');
    background-repeat: repeat;
    background-size: 128px 92px; /*auto; or specify like '20px 20px' if you want tighter spacing */
   
}

.Logomodal {
    position: fixed;           /* Stays on top even when scrolling */
    top: 20px;
    left: 0;
    height:100px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* White with 50% opacity */
    z-index: 100;             /* Make sure it stays above other elements */
    padding: 10px 0;           /* Optional padding for spacing */
    padding-left: 150px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Optional soft shadow */
}

.Logomodal img.logo {
    display: block;
    width: 80%;
    max-width: 800px;
    transition: margin 0.2s ease, width 0.2s ease;
}

.content-wrapper {
    margin-left: 15%;  /* Adjust this value to match your menu width */
}


/* Flexbox Utilities */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-stretch {
    align-items: stretch;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.hero {
    position: relative;
    width: 100%;
    height: 50vh;  /* Ensure the section takes full height of the viewport */
    background: none; /* clears inherited layers */
    background: url('blueprint2.jpg') no-repeat center center; 
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: flex-end;   /* Vertically aligns the content to the bottom */
    /*padding: 20px;*/
}    

.hero-content {
    color: white;
    z-index: 1; /* Make sure the text appears on top of the background */
    padding: 20px;
    margin-top:180px;
    margin-left:180px;
}

.hero h1 {
    font-size: 2.5em;
    margin: 0;
}

.hero p {
    font-size: 1.2em;
    margin: 10px 0;
}

.cta-button {
    padding: 10px 20px;
    background-color: orange; /* Example color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
}


    .clickable-item{
        background-image: url('/ProjectManager/Images/button.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        height: 40px;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(128,50,10,0.9); 
        text-align: center;
        align-items: center;
        cursor: pointer;
        flex: 0 0 250px;  /* Allow buttons to grow and shrink, minimum size of 300px */
        margin: 5px;
    }
    .clickable-item:hover{
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255,150,50,0.9);
    }

/* Floating Navigation Container */
.floating-nav {
  position: fixed;
  left: 20px;
  top: 40%;
  transform: translateY(-40%);
  display: flex;
  flex-direction: column;
  height: auto;
  z-index: 101;
}

/* Nav Toggle Button (Mobile Only) */
.nav-expand-btn {
  visibility: hidden;
  font-size: 1.5em;
  color: white;
  margin: 10px 0;
  cursor: pointer;
  justify-content: flex-start;
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
  background-image: url('/ProjectManager/Images/menu_open.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
  border-radius: 5px;
 
}

/* Base Nav Button */
.nav-button {
  background-image: url('/ProjectManager/Images/button.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 200px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
  margin: 5px 0;
  padding: 0 5px;
  gap: 10px;
  overflow: hidden;
  transition: width 0.3s ease, padding 0.3s ease;
}

/* Hover Effect */
.nav-button:hover {
  transform: scale(1.05);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.8);
}

/* Icon Badge Styling */
.icon-badge {
  background-color: var(--button-color, #00BFFF);
  border-radius: 5px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  box-shadow: inset 2px 2px 1px rgba(0,0,0,0.7),
              inset -2px -2px 1px rgba(255,255,255,0.7);
}

/* Image Effects */
.nav-button img {
   filter: drop-shadow(2px 2px 2px rgba(250, 250, 250, 0.5));
}

/* Button Label */
.button-label {
    display: inline;
    margin-left: 5px;
}

/* Inner content always above background */
.nav-button > * {
  z-index: 1;
}

/* Collapsed State for Nav Container */
.floating-nav.collapsed .nav-button {
  width: 38px;
}

.nav-button.collapsed {
    width: 37px;
    background-image: url('/ProjectManager/Images/shortbutton.png');
    background-size: 100% 100%;
}


/* ===============================
   ๐ Default (Light Mode)
================================= */

/* Modal overlay */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: auto; /* allows scrolling if modal is taller than viewport */
   
}

/* Wide modal (edit window, products, etc.) */
.modal-content.wide-modal {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;       /* ensures it never exceeds viewport */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;       /* internal scrollable areas only */
    margin-top:2vh;
}
/* Image search modal */

/* Image Search Modal */
.wide-modal.imagesearch {
    width: 90vw;       /* wider than default narrow edit modal */
    max-width: 90%;     /* responsive for small screens */
    height: 80vh;      /* fixed height for content + results */
    max-height: 80vh;   /* never exceed viewport */
    z-index: 1100;      /* above edit modal */
    display: none;      /* hidden by default */
    position: fixed;
    top: 40%;           /* center vertically */
    left: 50%;          /* center horizontally */
    transform: translate(-50%, -50%); /* exact centering */
    justify-content: center;
    align-items: flex-start; /* top of modal content */
    background: rgba(0,0,0,0.5);
}

/* Make internal modal content scrollable if results grow */
.wide-modal.imagesearch .modal-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;   /* scroll inside if needed */
    border-radius: 12px;
    background-color: #fff;
}
/* Scrollable area for image + fields + components */
.modal-scrollable {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 1rem 0;
}

/* Editor body: image + fields */
.editor-body {
  display: flex;
  gap: 20px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.editor-image {
  flex: 0 0 40%;
}
.editor-fields {
  flex: 0 0 calc(60% - 20px); /* reserve scrollbar space */
  scrollbar-gutter: stable;
  max-width: 80%;
  box-sizing: border-box; /* includes padding & border in width */
}

/* Buttons */
.bluebutton {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.2s, transform 0.1s;
}
.bluebutton:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

.sendbutton {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.2s, transform 0.1s;
}
.sendbutton:hover {
    background-color: #218838;
    transform: scale(1.02);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   ๐ฑ Responsive Breakpoints
================================= */

/* --- Tablet & small laptop screens (up to 1024px) --- */
@media screen and (max-width: 1024px) {
    .Logomodal {
        padding-left: 40px;
    }
    
    .wide-modal {
        top:10px;
        width: 80%;
        min-width: 500px;
    }

    .hero-content {
        margin-top: 100px;
        margin-left: 50px;
    }

    .hero h1 { font-size: 1.5em; }
    .hero p { font-size: 1em; }

    .nav-expand-btn { visibility: visible; }

    .floating-nav.auto-collapse .nav-button {
        width: 38px;
        background-image: url('/ProjectManager/Images/shortbutton.png');
    }

    .services-container,
    .column-container {
        display: block;
    }

    .contact-content {
        flex-direction: column;
    }
}

/* --- Tablet & large phone layout (up to 768px) --- */
@media screen and (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .wide-modal {
        top:10px;
        width: 90%;
        min-width: unset;
    }

    .hero-content {
        margin-left: 30px;
        margin-top: 80px;
    }

    .hero h1 { font-size: 1.3em; }
    .hero p { font-size: 0.95em; }
    
    .editor-body {
        flex-direction: column;
    }
    
    .editor-image {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .form-grid {
        grid-template-columns: 30% 60%;
    }
  
}

/* --- Small phone screens (up to 500px) --- */
@media screen and (max-width: 500px) {
    .modal-content {
        width: 80%;
        min-width: 250px;
        margin-top: 20%;
    }
    
    .wide-modal {
        top:10px;
        width: 95%;
        min-width: unset;
        margin-top: 10%;
    }

    .hero-content {
        margin: 60px 15px 0 15px;
        text-align: center;
    }

    .hero h1 { font-size: 1.1em; }
    .hero p { font-size: 0.9em; }

    .bluebutton {
        width: 100%;
    }
}

/* ===============================
   ๐ Dark Mode
================================= */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111;
        color: #eee;
    }

    .modal {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .wide-modal {
        top:10px;
        width: 70%;          /* wider layout for editing large forms */
        min-width: 600px;    /* ensures good space for multiple fields */
        max-width: 1000px;   /* prevent it from becoming too wide on big screens */
    }

    .modal-content {
        background-color: #1e1e1e;
        color: #f2f2f2;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    }

    .modal-content h2,
    .modal-content h3 {
        color: #89c2ff; /* cool blue accent for dark mode */
    }

    .modal-content label {
        color: #ddd;
    }

    .modal-content input,
    .modal-content select {
        background-color: #2a2a2a;
        color: #eee;
        border: 1px solid #555;
    }

    .modal-content input:focus,
    .modal-content select:focus {
        border-color: #007bff;
        outline: none;
    }

    .bluebutton {
        background-color: #2980ff;
        color: #fff;
    }

    .bluebutton:hover {
        background-color: #1a5dcc;
    }

    .close-btn {
        color: #aaa;
    }

    .close-btn:hover {
        color: #f55;
    }

    header,
    nav,
    .hero-content,
    .services-container,
    .contact-content {
        background-color: transparent;
        color: #eee;
    }
}
/* Currency and Percentage */
.currency::before {
    content: "R "; /* Modify as needed */
}

.percentage::after {
    content: "%"; /* Modify as needed */
}

.container  { 
    color: white;
    width: 80%; 
    max-width: 1200px;
    margin: 30px auto; 
    padding: 20px; 
    background: rgb(10, 15, 30);
    border-radius: 10px; 
    box-shadow: 0 0 50px rgba(0,128,255,0.9); 
}

.list-container  { 
     
    max-width: 1200px;
    max-height: 60vh;
    overflow-y: auto;
    margin: auto; 
    padding: 20px; 
    color: black;
    background: white;
    border-radius: 10px; 
    box-shadow: 0 0 50px rgba(0,255,128,0.9); 
}

/* Contact Section Styling */


.contact-content {
    display: flex;  /* Use flexbox to layout map and form side by side */
    margin: auto;
    padding: 20px;
}

.map-container {
    flex: 1;  /* Each takes up equal space */
    box-sizing: border-box;  /* Ensure padding and borders are included in the element's total width and height */
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container {
    flex: 1;  /* Each takes up equal space */
    box-sizing: border-box;  /* Ensure padding and borders are included in the element's total width and height */
    height: 400px;
    width: 95%;
    padding: 20px;
    border-radius: 8px;
    background-color: #303040; /* Light background for the form */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    box-sizing: border-box;  /* Ensure padding and borders are included in the element's total width and height */
    height: 400px;
    width:95%;
    border-radius: 8px;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;  /* only vertical resizing allowed */
}

.textmessage{
    height: 150px;
}

.form-container button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #0056b3;
}

/* Modal container (background overlay) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black overlay */
    backdrop-filter: blur(4px); /* subtle blur effect */
}

/* Modal content box */
.modal-content {
    background-color: #f4f6f9; /* light neutral background */
    color: #222; /* dark readable text */
    margin: 8% auto;
    padding: 20px 25px;
    border-radius: 10px;
    width: 40%; /* 40% of the viewport width */
    min-width: 300px; /* prevents too narrow on small screens */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

/* Headings */
.modal-content h2, 
.modal-content h3 {
    margin-top: 0;
    color: #003366; /* deep blue for contrast */
    text-align: center;
}

/* Form elements */
.modal-content label {
    display: block;
    margin-top: 10px;
    color: #333;
    font-weight: 500;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 6px 10px;
    margin-top: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.2em;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}
.close-btn:hover {
    color: #c00;
}

/* Close button */
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}


.listresultsbody{
    overflow: auto;  /* Enables both vertical and horizontal scrolling */
    
}

/* About Us Section */
.aboutus {
    width: 80%;
    text-align: center;
    margin: auto;
}

/* Slideshow */
.slideshow-container {
    max-width: 1000px;
    width: 80%;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.mySlides {
    display: none;
    z-index: -1;
}

.mySlides img {
    width: 600px;
    height: 400px;
    vertical-align: middle;
    object-fit: contain;
    z-index: 0;
}

/* Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 15px;
    margin-top: -22px;
    padding: 16px;
    color: white;
    background-color: lightgrey;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    z-index: 1;
}

/* Position Arrows */
.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

/* Hover Effect for Arrows */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption Text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Slide Number */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.filter-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.filter-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh; /* Prevents modal from overflowing */
    overflow-y: auto; /* Enables scrolling inside modal if content is too tall */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    overflow: auto;
}
.filter-column-options {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}
.filter-column-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    background: #f4f4f4;
    border-radius: 5px;
}
.filter-column-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    text-align: center;
}
/* Column Header */
.filter-column-header {
    font-weight: bold;
    background: #ddd;
    padding: 5px;
    text-align: center;
}

 /* Column Labels */
.filter-column-label {
    padding: 5px;
    background: #f4f4f4;
    border-radius: 5px;
    text-align: left;
    padding-left: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Container for the services */
.services-container {
    display: flex;
   /* max-width: 800px; /* Adjust based on your preference */
    margin: auto;
   flex-wrap: wrap;  /* Allows items to wrap onto the next line when they overflow */
   gap: 10px;  /* Optional: Adds space between the items */
}

/* Each service box */
.service-item {
    flex: 1 1 300px;  /* Allow buttons to grow and shrink, minimum size of 300px */
    align-items: center;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 5px;
}



/* Service Header */
.service-item h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
}

/* Service Paragraph */
.service-item p {
    margin: 0;
    color: #666;
    font-size: 1em;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-container {
  display: flex;
  margin: 10px;
  width: 90%;
  justify-content: space-between;
  align-items: center;
  gap: 1rem; /* spacing between the two blocks */
  flex-wrap: wrap; /* allows wrapping when screen is small */
}

.search-container > div {
  flex: 1; /* both take up equal width */
  min-width: 300px; /* below this, theyll stack */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.search-bar {
    width: 40%; /* Search bar width is 50% of container */
    min-width: 160px;
    margin: 2px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.field-bar {
    width: 15%; /* Search bar width is 50% of container */
    min-width: 80px;
    margin: 2px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.centeredtext{
    width:10%;
    margin: auto;
    font-size: 14px;
    align-items: center;
}

/* Buttons */
.bluebutton {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.2s, transform 0.1s;
}
.bluebutton:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}


.search-button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

body { font-family: Arial, sans-serif; background-color: #f4f4f4; }

.form-group {
    width: 100%;
    padding: 2px;
    display: flex;               /* Arrange label and input horizontally */
    align-items: center;
}

.form-group textarea {
    width: 50%;                  /* Adjust textarea width */
    padding: 2px;
    box-sizing: border-box;
    resize: vertical;  /* only vertical resizing allowed */
}

.form-group label {
    width: 50%;                  /* Label now takes 50% of the space */
    text-align: right;           /* Align label text to the right */
    padding-right: 10px;         /* Add some space between label and input */
}

.form-group input {
    width: 40%;                  /* Reduce input width to 40% */
    padding: 5px;
    border: 1px solid #ccc;
}

/* If the user does not have edit permission, the input is replaced with a readonly div */
.form-group .readonly-field {
    width: 40%;                  /* Same width as input field */
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;   /* Light background to differentiate from input */
    text-align: left;            /* Ensure the text aligns left inside readonly div */
    box-sizing: border-box;      /* Ensure padding is inside the width */
}
form {margin-block-end: 0px;}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 20% 70%;
  column-gap: 10px;
  row-gap: 8px;
}

/* Components table scrollable */
.components-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 91%;
}

.component-block {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.components-section table {
  width: 100%;
  border-collapse: collapse;
}
.components-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.components-table th, .components-table td {
  border: 1px solid #ddd;
  padding: 0.4rem;
  text-align: left;
}

.components-section th, .components-section td {
  border: 1px solid #ccc;
  padding: 3px;
  text-align: left;
}
.toggle-btn {
  width: 100%;
  text-align: left;
  font-weight: bold;
  background: #f0f0f0;
  border: none;
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-btn:hover {
  background: #e2e2e2;
}

.toggle-btn.active {
  background: #d0d0d0;
}
.add-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.add-btn:hover {
  background: #0056b3;
}
.form-grid label {
  text-align: right;
  font-weight: 600;
}

.components-table td {
    padding: 0;
    margin-top: 0px;
}

.component-qty {
    padding: 2px 4px; /* or 0 if you want no padding */
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 90%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;  /* only vertical resizing allowed */
}

/* Tabs */
.tabs {
  margin-top: 20px;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* Tabs */
.tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}
.tab-btn.active { background: #007bff; color:white; }

/* Each tab content scrollable if many rows */
.tab-content {
  display: none;
  max-height: 300px; /* adjustable */
  overflow-y: auto;
}
.tab-content.active {
  display: block;
}

/* Submit button fixed bottom center */
.submit-fixed {
  position: sticky;
  bottom: 0;
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
}

.table-container { margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: small;}
table, th, td { width:auto; border: 1px solid black; }
th, td { white-space:nowrap; padding: 2px; text-align: left; height: 12px; color: black; }
.image-container {position: relative;}
.image {width: 250px; height: 250px; object-fit: contain;}
.icon {width: 30px; height: 30px; object-fit: contain;}
.modal, .editcontainer  {
align-items: center;
display: none; 
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}

.itemeditor  { 
    color: black;
    display: grid; 
    grid-template-columns: 60% 40%;
    background-color: white;
    margin: auto;
    padding: 20px;
    max-width: 1000px;
    text-align: center;
    border-radius: 10px;
    position: relative;
    gap:20px;
}

.readonly-field {
    margin: 0;
    padding: 5px 0;
    line-height: 1.2;
    text-align: left;
    height: 30px;
    display: inline-block;
    width: 90%; /* Adjust based on your layout needs */
    padding: 8px 10px;
    border: 1px solid #ccc; /* Light border like input field */
    border-radius: 4px; /* Rounded corners like inputs */
    background-color: #f9f9f9; /* Light background to differentiate it from normal text */
    font-size: 14px; /* Adjust font size */
    color: #333; /* Text color */
    box-sizing: border-box; /* Ensure padding and border are within the width */
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}
 
.selected {
    border: 2px solid red;
}

.dropZone{
    border: 2px dashed #888; 
    padding: 40px; 
    text-align: center;
    color: #555;
    border-radius: 5px;
    margin-bottom: 10px;
}
.selectFilesBtn{
    padding: 10px 20px; 
    margin-bottom: 10px; 
    background-color: #007BFF; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer;
}
                        
