/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header styles */
h1, h2 {
    color: #ffffff;
    text-align: center;
    margin: 5px 0;
}

/* Form styles */
form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="type"],
input[type="datetime-local"],
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
select {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
}
button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* Message styles */
.message {
    text-align: center;
    margin: 20px 0;
}

.footer {
    background: black;
    text-align: center;
    margin: 15px 0;
    font-size: 0.9em;
    color: white;
    padding: 5px 0 5px 0;
    width: 100%;
}

nav {
    background: linear-gradient(270deg, #6cb448 0%, #1594a5 100%);
    height: 80px;
    width: 100%;
  }
  label.logo {
    color: white;
    font-size: 25px;
    line-height: 80px;
    padding: 0 10px;
    font-weight: bold;
  }
  nav ul {
    float: right;
    margin-right: 20px;
  }
  nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
  }
  nav ul li a {
    color: white;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: unset;
    text-decoration: none;
  }
  /* By default, hide all Font Awesome icons in the navigation */
  nav .fa, nav .fas {
    display: none;
  }
  ul li a.active {
    background-color: #ffffff;  /* Example: blue background */
    color: #1795a3;               /* White text color */
    font-weight: bold;          /* Bold text */
    margin-left: 10px;
  }
  /* Show the icons only on screens smaller than 890px */
  @media (max-width: 890px) {
    nav .fa, nav .fas {
      display: inline-block;  /* Makes the icons visible */
      font-size: 16px;  /* Optional: adjust size for smaller screens */
      padding-left: 5px;  /* Optional: adjust padding */
    }
  }
  .checkbtn {
    font-size: 22px;
    color: white;
    float: right;
    line-height: 40px;
    margin: 20px;
    cursor: pointer;
    display: none;
  }
  #check {
    display: none;
  }
  @media (max-width: 1050px) {
    label.logo {
      padding-left: 30px;
    }
    nav ul li a {
      font-size: 16px;
    }
  }
  /* Responsive media query code for small screen */
  @media (max-width: 890px) {
    .checkbtn {
      display: block;
    }
    label.logo {
      font-size: 18px;
    }
    ul {
      position: fixed;
      width: 100%;
      height: auto;
      background: #2c3e50;
      top: 80px;
      left: -100%;
      text-align: left;
      transition: all .5s;
      z-index: 9999;
    }
    nav ul li {
      display: block;
      margin: 25px 0;
      line-height: 30px;
    }
    nav ul li a {
      font-size: 16px;
    }
    nav i {
        color: white;
        display: inline-block;
        padding-left: 5px;
      }
    a:hover,
    a.active {
      background: none;
      color: #0082e6;
    }
    #check:checked~ul {
      left: 0;
    }
  }
  section {
    background: url("bg.jpg") no-repeat;
    background-size: cover;
    height: calc(100vh - 130px);
  }

/* Header section styles */
.header-section {
    background: linear-gradient(270deg, #6cb448 0%, #1594a5 100%); /* Background color for the header */
    color: white; /* Text color */
    padding: 15px; /* Padding around the header */
    display: flex; /* Flexbox for alignment */
    align-items: center; /* Center items vertically */
}

.header-section h1 {
    margin-left: 10px; /* Space between icon and header */
}

/* Additional styles can be added below */
/* Container for the table to enable scrolling */
.table-container {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling */
    margin-top: 20px; /* Space above the table */
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse; /* Collapse table borders */
    min-width: 800px; /* Minimum width to avoid collapsing columns too much */
    background-color: #fff; /* White background */
    
}

/* Table header, rows, and other styles remain the same */
.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

.data-table th {
    background-color: #1594a5;
    color: #fff;
}

.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.data-table tr:hover {
    background-color: #e9ecef;
}

.data-table td {
    color: #333;
}

.data-table th {
    text-align: center;
}
/* Popup container style */
.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    list-style-type: none;
    background-color: #1694a3; /* Original teal color */
    color: white;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 350px; /* Adjusting size for a more compact look */
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    opacity: 0; /* Initial opacity for fade-in effect */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in transition */
    text-align: center; /* Center the text horizontally */
}

/* When popup is active */
.popup.active {
    display: block;
    opacity: 1; /* Fully visible */
}

/* Close button styling */
.close-btn {
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6961; /* Subtle red hover effect */
}

/* Error message text */
#errorMessages {
    margin: 10px;
    line-height: 1.5;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    height: 100%;            /* Ensure it fills the entire popup height */
}

/* Optional: Add a subtle fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Apply animation on popup */
.popup.active {
    animation: fadeIn 0.5s ease;
}

/* below applied for chart */
.container {
  display: flex;
  flex-wrap: wrap;
}

.column {
  flex: 0 0 24.5%;
  max-width: 25%;
  padding: 5px 5px 0 5px;
  margin: 10px 0 0 5px;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
}

/* Optional alternating background colors */
.column:nth-child(even) {
  background-color: #ffffff;
}

@media (max-width: 1024px) {
  .column {
    flex: 0 0 48%;
    max-width: 100%;
  }
}

/* Responsive behavior: stack columns on smaller screens */
@media (max-width: 768px) {
  .column {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 10px 0 0 0px;
  }
}
