
/* Define CSS variables for colors */
/* root define in header */

/* Reset and basic styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

h1{
  color: var(--primary-color);
}

h2 h3{
  color: var(--secondary-color);
}

a{
  text-decoration: none;
  color: lightseagreen;
}

a{
  text-decoration: underline;
}

/* -- inputs --*/
.input-group{
  display: flex;
  flex-direction: column; /* Stack label and input */
  gap: 5px; /* Spacing between label and input */
  margin-bottom: 15px;
}

.input-group label{
  font-weight: 600;
  font-size: 12px;
  color: #333;
}

.input-group input{
  width: 100%; /* Make it responsive */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.input-group input:focus{
  border-color: #007BFF; /* Highlight border on focus */
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.input-group input.error {
  border-color: red;
  background-color: #ffecec;
}

.input-group.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.input-group.inline label {
  min-width: 100px; /* Adjust label width */
}

input[list] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Highlight input on focus */
input[list]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Style datalist options (Only works in Chrome) *
datalist option {
  font-size: 16px;
  padding: 5px;
}*/

/* Ensure datalist dropdown is visible in all browsers */
::-webkit-calendar-picker-indicator {
  display: none !important; /* Hides default dropdown icon in some browsers */
}

/* Optional: Add a hover effect for better UX */
input[list]:hover {
  border-color: var(--secondary-color);
}

/* -- buttons --*/
button.main_button{
  width: 100px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.main_button:hover {
  background-color: var(--secondary-color);
  color: black;
}

button.second_button{
  width: 100px;
  background-color: var(--secondary-color);
  color: black;
  padding: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.second_button:hover {
  background-color: var(--primary-color);
  color: white;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 10px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: red;
}

/* ----  HEADER MENU ------*/

.header {
  display: flex;
  height: 50px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  
  color: var(--secondary-color);
}


.header img {
  height: 40px;
}


.header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.header ul li {
  position: relative;
  margin: 0 10px;
}

.header ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.header ul li a:hover {
  background-color: var(--secondary-color);
  color: black;
}

/* Dropdown styles */
.header ul li.dropdown {
  cursor: pointer;
}

.header ul li.dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--secondary-color);
  list-style: none;
  padding: 10px 0;
  border: 1px solid var(--hover-color);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header ul li.dropdown:hover ul {
  display: block;
}

.header ul li.dropdown ul li {
  margin: 0;
}

.header ul li.dropdown ul li a {
  color: black;
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
}

.header ul li.dropdown ul li a:hover {
  color: white;
  background-color: var(--primary-color);
}


/*------------- FOOTER -------------*/

footer{
  background-color: dimgray;
}
/*------------- POPUP -------------*/

#popup {
  display: none;
  position: fixed;
  width: 30%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ---------------- TABLE ---------------*/
table {
  width: 100%;
  border-collapse: collapse;
}

th{
  color: white;
  background-color: var(--primary-color);
  font-weight: bold;
}

table, th, td {
  border: 1px solid black;
}
th, td {
  padding: 10px;
  text-align: left;
}

td input{
  width: 50px;
  margin: 1px;
}
/* --------------- LEFT MENU------------------*/
.left_menu{
  width: 200px;
  min-height: 100%;
  background-color: var(--secondary-color);
  padding: 10px;
}

/*---------------------- PAGES ---------------------------------------*/

.content{
  display: flex;
  width: 100%;
  height: 100%;
}

.main_content_center{
  width: 80%;
  margin: 0 10%;
  display:block;
  flex-grow: 1;
  padding: 10px;
}

.main_content{
  width: 100%;
  margin: 0 ;
  display:block;
  flex-grow: 1;
  padding: 20px;
}

.center{
  width: 100%;
  text-align: center;
}

.one_line{
  width: 100%;
  display: flex;
}

.half_left{
  width: 45%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin:15px;
  min-height: 200px;
  border-radius: 5px;
  padding: 10px;
}

.half_right{
  width: 45%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-height: 200px;
  margin:15px;
  border-radius: 5px;
  padding: 10px;
}

.third{
  width: 30%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-height: 200px;
  margin:15px;
  border-radius: 5px;
  padding: 10px;
}

.tileHeader{
  display: flex;
  align-items: center; /* Align items vertically */
  justify-content: space-between; /* Push elements to opposite sides */
  width: 100%; /* Ensure it spans the full width */
}

.status{
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 2px solid #007bff;
  cursor: pointer;
  background-color: white;
}

/*white labeling*/
.simulator{
 
  width: 80%;
  height: 100%;
  margin: 20px 10%;
  border: solid 1px #000;
}

/*404*/
#fourHundredFour{
  
  margin: 10px 33%;
  width: 33%;
}

/*login*/
.main_login{
  width: 400px;
  margin: auto;
}


/* ---------------------------Mobile compatibility---------------------- */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  header img {
    margin-bottom: 10px;
  }

  header ul {
    flex-direction: column;
    width: 100%;
  }

  header ul li {
    margin: 5px 0;
  }

  header ul li.dropdown ul {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  header ul li.dropdown ul li a {
    padding: 10px;
  }
}