/*
TAG example p {}
CLASS example .class {}
ID example #id {}
TAG + CLASS example p.class {}
TAG + ID example p#id {}
TAG + CLASS + ID example p.class#id {}
*/

/* Entire page */
body {
  font-family: Arial, sans-serif;
  display: flex;
  background-color: #f5f5f5;
  color: #333;
  /*border:#333 2px solid;*/
  margin: 0;
}

/* Backgrounds for each page */

.index-page .content {
  background: linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)), url('/Server-Home-Page-Background-Image.png') no-repeat center center;
  background-size: 110%;
  background-position: center 40%;
  background-position: right 40%;
}

/* Main window (not including sidebar) */
.content {
  flex: 1;
  background-repeat: no-repeat;
  background-position: centre;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: #ffffff;
  /*border:#ffe600 2px solid;*/
  padding: 0px;
  margin-left: 0px;
}

.top-header {
  background-color: #d1d1d100;
  text-align: center;
  /*box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);*/
  padding: 5px 0px 5px 0px;
  /*margin-top: 0px;*/
}

h1 {
  font-size: 54px;
  font-weight: bold;
  color: #FF671A;
  background-color: #e4e4e4;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: calc(100% - 400px);
  padding: 10px 100px 10px 100px;
  border:solid;
  border-radius: 10px;
  border-color: #bbbbbb;
  border-width: 2px;
  margin: 15px 250px 5px 250px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 34px;
  font-weight: bold;
  text-align: center;
  color: #000000;
  width: 100%;
}

h3 {
  font-size: 24px;
  font-weight: normal;
  text-align: left;
  color: #000000;
}

/* Paragraph Style */
p {
  font-size: 24px;
  font-weight: normal;
  text-align: left;
  color: #000000;
  line-height: 1.6;
  max-width: 1300px; /* keep readable on wide screens */
  margin-top: 10;
  margin-left: 20px;
}

/* Ruakura Logo in main window */
.main-logo {
  width: 300px;
  height: auto;
  /*border:#ff0000 2px solid;*/
  margin-top: 20px;
  margin-bottom: 10px;
  margin-left: 0px;
}

/* User login window */
.form-group {
  background-color: #ffffff;
  display: flex;
  gap: 10px;
  align-items: left;
  flex-wrap: wrap;
  min-width: 100px;
  max-width: 250px;
  padding: 10px 10px 10px;
  border-radius: 7px;
  /*border:#00aeff 10px solid;*/
  margin-left: 100px;
  margin-right: 425px;
  margin-top: 0px;
  margin-bottom: 40px;
}

/* LHS Button & Link Styles */
.nav-button {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  background-color: #11cc00;
  color: white;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  box-sizing: border-box;
  box-shadow: 0 1px 0 #0e9c00;
  position: relative;
  gap: 20px;
  max-width: 200px;
  width: 100%;
  padding: 12px;
  /*border:#ff00bf 5px dashed;*/
  border-radius: 5px;
}

.nav-button:hover {
  background: linear-gradient(to bottom, #0aa700, #087000);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(1px);
  top: 2px;
}

.nav-button:active {
  background: linear-gradient(to bottom, #0aa700, #087000);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(2px);
}

.nav-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

button.nav-button {
  appearance: none;
}

/* Highlighted Active Button */
.nav-button.highlight {
  background: linear-gradient(to bottom, #007f00, #005f00);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: none;
}

/* Dropdown button & Link Styles */
.dropdown-button {
  font-size: 16px;
  font-weight: bold;
  background-color: #11cc00;
  color: white;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  box-sizing: border-box;
  box-shadow: 0 1px 0 #0e9c00;
  position: relative;
  gap: 20px;
  max-width: 200px;
  width: 100%;
  display: inline-block;
  padding: 12px;
  /*border:#bbff00 5px dashed;*/
  border-radius: 5px;
  &:not(:disabled):hover {
    background: linear-gradient(to bottom, #0aa700, #087000);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(2px);
  }
}

.dropdown-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

button.dropdown-button {
  appearance: none;
}

/* Highlighted Active Button */
.dropdown-button.highlight {
  background: linear-gradient(to bottom, #007f00, #005f00);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: none;
}

#addSelect {
  border-color: #000000;
  border-width: 2px;
}

#updateSelect {
  border-color: #000000;
  border-width: 2px;
}

#deleteSelect {
  border-color: #000000;
  border-width: 2px;
}

#exportSelect {
  border-color: #000000;
  border-width: 2px;
}

/* System Status Styling */
.system-status {
  font-size: 22px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
  margin-left: 100px;
}

.system-status h2 {
  margin-top: 0;
  text-decoration: underline;
}

.system-status .online {
  color: green;
  font-weight: bold;
}

.system-status .offline {
  color: red;
  font-weight: bold;
}

/* Area around all content in main window */
.menu-panel {
  display: grid;
  grid-template-columns: auto auto;
  gap: 50px;
  column-gap: 50px;                    /* Adjusts space between buttons on LHS and buttons on RHS */
  align-items: centre;
  background-color: #ffffff;
  overflow: visible;
  box-sizing: border-box;
  max-width: 1000px;
  max-height: fit-content;
  padding: 100px 10% 100px 9%;     /* Adjusts menu content from top and left of screen */
  /*border:#00cc00 10px solid;*/
  border-radius: 10px;
  border-color: #bbbbbb;
  border-style: solid; 
  border-width: 2px;
  margin: 60px auto 60px auto;
}

/* Buttons on left hand side of screen in main window */
.button-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 200px;
  max-width: 200px;
  /*border:#fffb00 7px solid;*/
}

/* Area around all dropdown boxes and X button */
.action-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 1;
  width: 100%;
  /*border:#0400ff 7px dashed;*/
}

/* Area around each individual combination of button and dropdown box */
.dropdown-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1; /* Ensure it is above the background */
  width: 410px; /* 200 width of button and dropdown + 10 width of gap */
  /*border:#000000 2px dashed;*/
}

.dropdown-btn-group .nav-button {
  flex-shrink: 0; /* Prevent the button from shrinking */
  width: 200px;
  /*border:#ff0000 7px dashed;*/ /* Area around Add / Update / Delete / Export buttons */
}

/* Area around each individual drop-down box */
.dropdown-btn-group select {
  flex-shrink: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  background-color: #ffffff;
  width: 200px;
  max-width: 100%;
  padding: 10px;
  border-radius: 5px;
  /*border:#1100ff 5px dashed;*/
}

select {
  box-sizing: border-box;
  width: 100px;
  max-width: 100%;
  padding: 100px;
}





/* ********** SEARCH PARTS PAGE ********** */

/* Search Parts Layout */
.filter-search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #ecececdd;
  justify-content: left;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  max-width: 1540px;
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  margin: 10px auto 10px auto;
}

.filter-search-panel input {
  font-size: 16px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#ip-ItemNum {
  width: 3%;
}

#ip-Supplier {
  width: 6%;
}

#ip-PartNum {
  width: 12%;
}

#ip-Descr {
  width: 28%;
}

#ip-RuaCode {
  width: 7%;
}

#ip-Cost {
  width: 6%;
}

#ip-LocBay {
  width: 7.5%;
}

#ip-LocLev {
  width: 7%;
}


/* Results Table */
.results-table {
  background: #ecf7ff;
  overflow-x: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 1500px;
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto 40px auto;
}

table {
  border-collapse: collapse;
  font-size: 16px;
  width: 100%;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

thead {
  background-color: #f5f5f5;
}

/* ********** SEARCH PARTS PAGE ********** */