/* Primary and secondary colors */
:root {
  --primary-color: #1e3765;
  --secondary-color: #22b57f;
  --third-color: #ff5050;
  --fourth-color: #8db4d5;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;900&display=swap");

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 300px;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.backtohome {
  text-decoration: none !important;
  font-weight: 600;
  padding-top: 15px;
  color: var(--secondary-color);
}

.backtohome a:link {
  text-decoration: none;
  color: var(--secondary-color);
}

a:visited {
  text-decoration: none;
  color: var(--secondary-color);
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

a:active {
  text-decoration: none;
  color: var(--secondary-color);
}

.backtohome_span {
  color: var(--primary-color);
}

h2 {
  text-align: center;
}

input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 3px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Your CSS styles here */

/* Styling for the logo */

.logo img {
  max-height: 40px;
  /* Adjust the maximum height as needed */
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #ffffffe3;
  /* Set off-white background color */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  /* Add drop shadow effect */
  width: 80%;
  /* Set navigation bar width to 80% */
  margin: 0 auto;
  /* Center-align the navigation bar */
}

/* Styling for menu items as buttons */
.menu ul {
  list-style: none;
  display: flex;
}

.menu li {
  margin-right: 10px;
}

/* Apply margin to the first two menu items */
.menu li:first-child,
.menu li:nth-child(4) {
  margin-left: 50px;
  /* Adjust the margin as needed */
}

.menu a {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--primary-color);
  /* Set secondary color as background */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  /* Add drop shadow effect */
  transition: background-color 0.3s, box-shadow 0.3s;
}

.menu a:hover {
  background-color: var(--secondary-color);
  /* Darker shade on hover */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
  /* Enhanced drop shadow on hover */
}

/* Styling for the logout link */
.menu .logout_btn {
  color: white;
  background-color: var(--third-color);
  /* Set primary color as background */
  border: 1px solid var(--third-color);
  /* Add border */
  padding: 6px 15px;
  /* Adjust padding */
  border-radius: 5px;
  /* Add border radius */
  display: flex;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.menu .logout_btn:hover {
  background-color: var(--primary-color);
  /* Darker shade on hover */
  border-color: var(--secondary-color);
  /* Darker border on hover */
}

.menu .logout_btn {
  margin-right: 10px !important;
  /* Add spacing between icon and text */
}

.cvp_menu {
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  color: #ffffff;
  background-color: var(--primary-color);
  /* Set off-white background color */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  /* Add drop shadow effect */
  width: 80%;
  /* Set navigation bar width to 80% */
  margin: 0 auto;
  /* Center-align the navigation bar */
}

.icon_right_margin {
  margin-right: 10px !important;
  /* Add spacing between icon and text */
}

.container {
  padding: 20px;
  width: 50% !important;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  /* Allows table to scroll horizontally on small screens */
}

table {
  width: 100%;
  /* Makes the table take up the full container width */
  border-collapse: collapse;
  /* Removes space between table borders */
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  text-align: left;
  padding: 8px;
}

th {
  background-color: #f2f2f2;
}

@media screen and (max-width: 600px) {

  th,
  td {
    padding: 12px;
    /* Larger padding for smaller screens for better readability */
  }
}

/* Additional styles for the records */
#data-table a:link,
a:visited {
  text-decoration: none;
  color: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: var(--secondary-color);
}

#searchInput {
  padding: 8px;
  /* Adjust padding */
  width: 30%;
  margin-right: 5%;
  text-align: center;
  color: var(--third-color);
}

#searchButton {
  padding: 8px;
  /* Adjust padding */
  width: 10%;
  margin-top: 0px;
}

.fa_icon {
  margin-left: 5px;
}

.pagination {
  background-color: var(--primary-color);
}

.pagination a {
  text-decoration: none;
  color: white;
}

.pagination a:visited {
  text-decoration: none;
  color: white;
}

.cert_no_column {
  width: 10% !important;
  text-align: center;
}

.inspection_date_column {
  width: 15% !important;
  text-align: center;
}

.equip_type_column {
  width: 15% !important;
  text-align: center;
}

.inspection_place_column {
  width: 20% !important;
  text-align: center;
}

.ref_standard_column {
  width: 10% !important;
  text-align: center;
}

.maker_date_column {
  width: 10% !important;
  text-align: center;
}

.edit_column {
  width: 2% !important;
  color: white;
  text-align: center;
}

.delete_column {
  width: 2% !important;
  color: white;
  text-align: center;
}

.edit-button {
  color: var(--primary-color) !important;
  text-align: center;
}

.delete-button {
  color: var(--third-color) !important;
  text-align: center;
}

/* Width for larger screen sizes */
@media screen and (min-width: 1200px) {
  .container {
    width: 50%;
    margin: 0 auto;
  }
}

/* Width for larger screen sizes */
@media screen and (min-width: 1200px) {
  .container_charts {
    width: 50% !important;
    margin: 0 auto;
  }
}

/* styles for edit page */

.edit_headline {
  border: 1px solid --secondary-color;
  border-radius: 8px;
  padding: 10px;
  background-color: #22b57f;
  color: #ffffff;
}

.edit-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f5f8ff;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
  border-radius: 8px;
  animation: fadeIn 0.5s ease-in-out;
}

.edit-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.edit-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.edit-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.edit-form button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-form button:hover {
  background-color: var(--secondary-color);
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .edit-form {
    max-width: 100%;
    padding: 10px;
    box-shadow: none;
    border-radius: 0;
  }

  .edit-form input {
    margin-bottom: 8px;
  }
}

/* Delete popup Styling */

/* Your existing styles */

/* Additional styles for the confirmation popup */
.confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirmation-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.confirmation-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.confirmation-button.confirm {
  background-color: var(--primary-color);
  color: white;
}

.confirmation-button.confirm:hover {
  background-color: var(--third-color);
}

.confirmation-button.cancel {
  background-color: #ccc;
  color: black;
}

.confirmation-button.cancel:hover {
  background-color: var(--secondary-color);
}

/* styles for add record page */

.add_headline {
  border: 1px solid --secondary-color;
  border-radius: 8px;
  padding: 10px;
  background-color: #22b57f;
  color: #ffffff;
}

.add-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  /* background-color: #f5f8ff; */
  box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
    rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
  border-radius: 8px;
  animation: fadeIn 0.5s ease-in-out;
}

.add-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.add-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.add-form input {
  width: 100%;
  /* padding: 8px; */
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.add-form button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-form button:hover {
  background-color: var(--secondary-color);
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .add-form {
    max-width: 100%;
    padding: 10px;
    box-shadow: none;
    border-radius: 0;
  }

  .add-form input {
    margin-bottom: 8px;
  }
}

/* Login Pop-Up */

/* Additional styles for the custom popup */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  color: #fbfbfb;
  background-color: var(--third-color);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1000;
}

.popup p {
  margin: 0;
  text-align: center;
}

/* username on top right */

.username {
  background-color: #ffffff;
  color: var(--secondary-color);
  border-radius: 50px;
  padding: 6px 12px 6px 12px;
  margin-top: -5px;
}

.nav_h3 {
  font-family: "Poppins", sans-serif;
  text-align: center !important;
  font-weight: 600;
  text-align: center;
}

/* Additional styles for the custom verification result box */
.verification-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
}

.invalid {
  background-color: #ffdddd;
  border: 1px solid #ff7f7f;
}

.error_label {
  text-align: center;
}

/* .verification-details {
  text-align: left;
}

.verification-details h3 {
  margin-bottom: 10px;
}

.verification-details form {
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.verification-details label {
  font-weight: bold;
}

.verification-details input {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.cert_details_box {
  background-color: #ececec29;
  width: 50%;
  border-radius: 25px;
}
.details_form {
  text-align: center;
}
.details_form label {
  background-color: #ffffff;
  text-align: center;
}
.details_form input {
  background-color: #ffffff;
  text-align: center;
}

.details_heading {
  text-align: center;
} */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;900&display=swap");

input {
  caret-color: red;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  background: #ecf0f3;
  /* display: flex; */
  align-items: center;
  text-align: center;
  justify-content: center;
  place-items: center;
  /* overflow: hidden; */
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.container_one {
  position: relative;
  width: 90%;
  /* height: 500px; */
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
  background: #ecf0f3;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
}

.flex-container {
  display: flex;
}

.flex-child {
  flex: 1;
  /* border: 2px solid rgba(202, 202, 202, 0.418); */
}

.container_sub {
  position: relative;
  width: 600px;
  /* height: 500px; */
  border-radius: 20px;
  padding: 40px;
  box-sizing: border-box;
  background: #ecf0f3;
  box-shadow: 14px 14px 20px #cbced1, -14px -14px 20px white;
}

.brand-logo {
  height: 100px;
  width: 100px;
  background: url("../images/fgi_logo_small.png");
  margin: auto;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 7px 7px 10px #cbced1, -7px -7px 10px white;
}

.brand-title {
  margin-top: 10px;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.inputs {
  text-align: left;
  margin-top: 30px;
}

label,
input,
button {
  /* display: block; */
  width: 100%;
  padding: 0;
  border: none;
  outline: none;
  box-sizing: border-box;
}

label {
  margin-bottom: 4px;
  display: inline-block;
}

.cert_details_box label {
  width: 300px;
  text-align: right;
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  font-weight: 500;
}

.cert_details_box input {
  width: 300px;
  text-align: left;
  display: inline-block;
}

.certid_label {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  width: 300px;
  text-align: center;
  display: inline-block;
  margin: 0px;
  padding: 0px;
  height: 36px;
  border-radius: 50px;
  margin-bottom: 0px;
}

.certid_input {
  width: 200px;
  text-align: center;
  display: inline-block;
  margin: 0px;
  padding: 0px;
  height: 36px;
}

.certid_sub_btn {
  width: 100px;
  text-align: center;
  display: inline-block;
  margin: 0px;
  padding: 0px;
  color: white;
  margin-top: 20px;
  background: var(--secondary-color);
  height: 40px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 6px 6px 6px #cbced1, -6px -6px 6px white;
  transition: 0.5s;
}

label:nth-of-type(2) {
  margin-top: 12px;
}

input::placeholder {
  color: gray;
}

input {
  background: #ecf0f3;
  padding: 10px;
  padding-left: 20px;
  /* height: 50px; */
  font-size: 14px;
  border-radius: 50px !important;
  box-shadow: inset 2px 1px 2px #cbced1, inset -2px -1px 2px white;
}

button {
  color: white;
  margin-top: 20px;
  background: var(--primary-color);
  height: 40px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 6px 6px 6px #cbced1, -6px -6px 6px white;
  transition: 0.5s;
}

button:hover {
  box-shadow: none;
}

h1 {
  position: absolute;
  top: 0;
  left: 0;
}

.grid-container {
  display: grid;
  height: 300px;
  align-content: space-evenly;
  grid-template-columns: auto auto auto;
  gap: 60px;
  background-color: #2195f300;
  padding: 10px;
  /* margin: 0.1%; */
}

.grid-container>canvas {
  height: 300px;
  border-radius: 15px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.grid-container>div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px 0;
  font-size: 30px;
}

.chart_headings {
  font-size: 0.7em;
  color: #464646;
}

.chart_container {
  border-radius: 25px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

@media (max-width: 600px) {
  .chart-container {
    /* Your existing styles for chart containers */
    margin-top: 10%;
    /* Adjust top margin to ensure it doesn't overlap navigation */
  }

  .container_charts {
    width: 100%;
  }

  .grid_container {
    width: 100%;
  }

  .canvas {
    width: 100%;
  }
}

.test {
  background-color: rgb(185, 108, 41);
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {

  .container,
  .container_one,
  .container_charts,
  .login-box,
  .edit-form,
  .add-form,
  .inputs,
  .menu,
  .cvp_menu {
    width: 100%;
    /* Take full width of screen */
    margin: 0;
    /* Remove any margin for full-width elements */
    padding: 0;
    /* Start with no padding and add as needed */
  }

  .menu {
    flex-wrap: wrap;
    /* Allow menu items to wrap to the next line */
  }

  .menu li {
    flex: 0 0 100%;
    /* Make <li> take full width of its container */
    margin: 5px 0;
    /* Add space between stacked items */
    justify-content: center;
    /* Center content for menu items */
  }

  .menu a,
  .logout_btn {
    width: auto;
    /* Auto width for anchor to manage padding and text */
    margin: 5px;
    /* Consistent margin for all anchors */
  }

  input,
  button {
    width: calc(100% - 20px);
    /* Full width minus padding */
    margin: 10px 0;
    /* Space between form elements */
  }

  /* Adjust font sizes for readability on small screens */
  h2,
  .brand-title,
  label,
  input,
  button {
    font-size: 16px;
    /* Adjust font size for mobile view */
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill,
        minmax(150px, 1fr));
    /* Responsive grid */
    gap: 15px;
    /* Smaller gap on mobile */
  }

  /* ... Additional mobile-specific adjustments ... */
}

/* Media query for even smaller screens like smartphones */
@media screen and (max-width: 480px) {
  /* Adjust this section to scale down or change layout for smaller screens */
  /* ... */
}

/* ------------------------------------------ */

/* Base styles for navigation */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #ffffffe3;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  /* Remove fixed width to allow full responsiveness */
}

.menu ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  align-items: center;
}

.menu li {
  padding: 10px;
  /* Padding for touch targets */
}

.menu a {
  text-decoration: none;
  color: white;
  padding: 8px 15px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* ... other styles ... */

/* Media query for mobile devices */
@media screen and (max-width: 768px) {

  /* Collapsed menu with a toggle button */
  .menu {
    flex-direction: column;
    align-items: flex-start;
    /* Align items to the start */
  }

  .menu ul {
    width: 100%;
    flex-direction: column;
    display: none;
    /* Hide menu items by default */
  }

  .menu li {
    width: 100%;
    text-align: left;
  }

  .menu a {
    width: 100%;
    box-sizing: border-box;
    /* Include padding in width calculation */
  }

  /* Toggle button styles */
  .menu-toggle {
    display: block;
    /* Show toggle button */
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    text-align: left;
    cursor: pointer;
  }

  .menu-toggle:after {
    content: "\f0c9";
    /* FontAwesome icon code for 'bars' */
    font-family: "FontAwesome";
    float: right;
  }

  .menu.active ul {
    display: flex;
    /* Show menu items when active */
  }
}

/* Additional JavaScript to handle menu toggle */
/* ... You'll need JavaScript to toggle the menu ... */

.menu-toggle {
  display: none;
  /* Hide by default and show as needed below */
  font-size: 24px;
  /* Adjust size as needed */
  cursor: pointer;
}

/* ... Other styles ... */

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    /* Show the menu toggle */
  }

  .menu ul {
    display: none;
    /* Hide the menu by default */
    width: 100%;
    /* Full width */
    flex-direction: column;
  }

  .menu.active ul {
    display: flex;
    /* Show the menu when active */
  }

  /* ... Additional responsive styling ... */
}

/* ------------------------------------------- */
/* ------------------------------------------- */

.topnav {
  overflow: hidden;
  background-color: #efefef;
}

.topnav a {
  float: left;
  display: block;
  color: var(--primary-color);
  text-align: center;
  padding: 30px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #04aa6d;
  color: white;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }

  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }

  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

.cp_text {
  font-size: 2em;
  text-align: center;
}

.valid_cert {
  color: var(--secondary-color);
}

.exp_cert {
  color: var(--third-color);
}

.export_btn {
  padding: 8px;
  /* Adjust padding */
  width: 10%;
  margin-top: 0px;
  margin-left: 2%;
}

.export_btn a {
  color: white;
  text-decoration: none;
}

@media screen and (max-width: 600px) {
  .remove_on_mobile {
    display: none;
  }
}