* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #000;
  font-size: 15px;
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}
   /* Nav */
   .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    padding: 20px 0;
    font-size: 13px;
}
/* Navbar Container */
.navbar {
color: #333;
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 10px;
}

/* Navbar Links */
.navbar a {
color: #333;
text-decoration: none;
padding: 10px 15px;
}
/* Styling for Main Nav */
.main-nav {
display: flex;
align-items: center;
gap: 20px;
}

.main-nav .logo{
  width:100px;
}

/* Logo */
.logo {
  width: 120px;  /* Set logo width */
  height: auto;  /* Maintain aspect ratio */
  margin-right: 20px; /* Space between logo and menu */
}
    /* Dropdown Menu */
    .dropdown {
      position: relative;
      display: inline-block;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      min-width: 150px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      z-index: 1;
    }
    .dropdown-content a {
      color: #333;
      padding: 5px 10px;
      display: block;
      text-align: left;
    }
    .dropdown-content a:hover {
      background-color: #ced4da;
    }
    /* Show Dropdown on Hover */
    .dropdown:hover .dropdown-content {
      display: block;
    }
    /* Sub-Sub Menu for Link 1, Link 2, Link 3 */
    .dropdown-submenu {
      position: relative;
    }
    .dropdown-submenu .submenu-content {
      display: none;
      position: absolute;
      left: 100%;
      top: 0;
      background-color: white;
      min-width: 150px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      z-index: 1;
    }
    .dropdown-submenu:hover .submenu-content {
      display: block;
    }
    /* Responsive */
@media (max-width: 600px) {
.navbar {
flex-direction: column;
align-items: flex-start;
  }
}
.main-menu .menu-item {
  position: relative;
  display: inline-block;
}
.submenu,
.dropdown-content,
.submenu-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.menu-item:hover > .dropdown-content,
.submenu-item:hover > .submenu-content {
  display: block;
}
.submenu a,
.dropdown-content a,
.submenu-content a {
  color: #333;
  padding: 5px 10px;
  display: block;
  text-decoration: none;
}
.submenu-item {
  display: block;
  text-align: left;
  padding: 5px 0;
}

/* Showcase */
.showcase {
  width: 100%;
  min-height: 100vh; /* Ensures the showcase fills the viewport */
  background-color: skyblue;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}


.showcase h2, .showcase p {
  margin-bottom: 10px;
}

.showcase .btn {
  margin-top: 20px;
}

/* Footer */
.footer {
  background: #f2f2f2;
  color: #616161;
  font-size: 12px;
  padding: 20px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer div {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer div i {
  margin-right: 10px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
}

.footer li {
  margin-right: 30px;
  margin-bottom: 20px;
}

@media(max-width: 700px) {
  .menu-btn {
    display: block;
  }

  .menu-btn:hover {
    opacity: 0.5;
  }

  .main-nav ul.right-menu {
    margin-right: 50px;
  }

  .main-nav ul.main-menu {
    display: block;
    position: absolute;
    top:0;
    left: 0;
    background: #f2f2f2;
    width: 50%;
    height: 100%;
    border-right: #ccc 1px solid;
    opacity: 0.9;
    padding: 30px;
    transform: translateX(-500px);
    transition: transform 0.5s ease-in-out;
  }

  .main-nav ul.main-menu li {
    padding: 10px;
    border-bottom: #ccc solid 1px;
    font-size: 14px;
  }

  .main-nav ul.main-menu li:last-child {
    border-bottom: 0;
  }

  .main-nav ul.main-menu.show {
    transform: translateX(-20px);
  }

  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .xbox .content p {
    display: none;
  }

  .xbox .content h2 {
    margin-bottom: 20px;
  }

  .carbon .content {
    width: 85%;
  }

  .links .links-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 500px) {
  .home-cards {
    grid-template-columns: 1fr;
  }

  .links .links-inner {
    grid-template-columns: 1fr;
  }

  .links .links-inner ul {
    margin-bottom: 20px;
  }
}



/*TABLE*/
.table-container {
  width: 80%;
  max-width: 1000px;
  margin: 20px auto; /* Add some margin for spacing */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto; /* Prevent vertical scroll */
  width: 100%;
}

table {
  width: 180%;
  border-collapse: collapse;
  table-layout: fixed; /* Fixed table layout */
  background-color: hsl(0, 0%, 100%);
}

thead {
  background-color: #245bff;
  color: rgb(131, 203, 255);
  font-weight: bold;
  text-align:center;
}

thead th {
  padding: 12px 15px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid #ffffff;
}

tbody tr {
  border-bottom: 1px solid #eee;
}

tbody tr:hover {
  background-color: #ffe7c5;
}

tbody td {
  padding: 12px 15px;
  text-align: center;
  white-space: nowrap;
}

.status-label, .irata-level-label {
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
display: inline-block;
margin-top: 4px;
}
/*part status*/
.offshore {
background-color: #007bff;
color: white;
}
.on_duty {
background-color: #28a745;
color: white;
}
.off {
background-color: #dc3545;
color: white;
}
/* part irata level*/
.level-1 {
background-color: #ffcc00;
color: black;
}
.level-2 {
background-color: #ff9900;
color: black;
}
.level-3 {
background-color: #ff6600;
color: black;
}
.admin {
background-color: #cc0000;
color: white;
}

.button-container {
  margin: 20px 0;
}

.add-row-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
}

.add-row-btn:hover {
  background-color: #0056b3;
}

/*LAST UPDATE*/
.last-updated {
color: #6c757d;
}

/* Styles for fixed column */
.fixed-column {
position: sticky;
left: 0;
background-color: #ffffff;
z-index: 2;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
font-weight: bold;
}

.fixed-column:hover{
background-color: #f8cda7;
}

tbody td.fixed-column {
  font-weight: normal; /* Normal font weight for fixed column in body */
}

/* Modal styles */
.modal {
display: none; 
position: fixed; 
z-index: 9999; 
padding-top: 100px; 
left: 0;
top: 0;
width: 100%; 
height: 100%; 
overflow: auto;
background-color: rgb(0,0,0); 
background-color: rgba(0,0,0,0.4); 
}

.modal-content {
background-color: #fff;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 400px;
border-radius: 8px;
}

.modal-header, .modal-footer {
display: flex;
justify-content: space-between;
align-items: center;
}

.modal-header {
font-size: 1.25em;
font-weight: bold;
}

.modal-footer {
margin-top: 20px;
}

.close {
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}

.close:hover,
.close:focus {
color: black;
}

.modal input {
width: 100%;
padding: 8px;
margin: 5px 0;
border: 1px solid #ccc;
border-radius: 4px;
}

.modal button {
padding: 10px 15px;
border: none;
border-radius: 4px;
background-color: #007bff;
color: #fff;
cursor: pointer;
}

.modal button:hover {
background-color: #0056b3;
}

/* EDITABLE POPUP*/
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
