html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 12px;
}

html {
  height:100vh;
  width:100vw;
  overflow:scroll;
}

.submit-btn:disabled {
  background-color: #ccc; /* Light grey */
  color: #666; /* Darker grey text */
  cursor: not-allowed; /* Show "not-allowed" cursor */
  opacity: 0.6; /* Slight transparency */
}

body {
  height: calc(100vh - 30px);
  width: calc(100vw - 50px);
  margin-top: 80px;
  padding: 5px 25px;
  font-family: Arial, sans-serif;
}

header img {
  height: 80px;
  margin-left: 40px;
}

header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  /* box-shadow: 0 0 25px 0 black; */
}

header * {
  display: inline;
}

header li {
  margin: 20px;
}

header li a {
  color: black;
  text-decoration: none;
  font-size: 20px;
}

form {
  display: inline-block;
}

h1, h2 {
  text-align: center;
}

p {
  text-align: left;
}

select, input {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 5px;
}
#results, #preferences, #recommendations, #recommendationFilter {
  margin-top: 20px;
  padding: 10px;
  background-color: #f0f0f0;
}

.tab-pane {
  min-width: 100%;  /* Ensures that the content takes at least the full width of its container */
}

.nav-tabs {
  margin-bottom: 20px; /* Space between tabs and content */
}

.tab-content {
  width: 100%;
  background-color: #f8f9fa; /* Light background for the tab content area */
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #dee2e6; /* Matches Bootstrap's default styling */
  align-items: center;
}

#mainContent {
  width: 80%;
  margin: auto;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 16px;
}

/* Form styling within the preferences tab */
.form-label, label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold; /* Ensures labels are prominently visible */
}

.form-control, .form-select {
  display: block;
  width: 100%; /* Ensures the control takes full width */
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  box-sizing: border-box; /* Includes padding and border in the width */
}

.form-group {
  width: 100%; /* Ensures the group takes full width */
  margin-bottom: 15px;
}

/* Results and plots styling */
#results, .plot-container {
  margin-top: 0px;
  padding: 5px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.plot-container {
  width: 100%;
  min-height: 600px; /* Adjust based on the size you want for your plots */
  padding: 5px;
}

.main-svg {
  width: 100%;
  height: auto;
}

#results h2 {
  color: #333;
  font-size: 20px;
}

.input-form {
  width: 100%;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* General container and tab styling */
.container {
  padding: 20px;
  margin: auto;
  width: 70%;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  align-items: center;
}

input[type="checkbox"] {
    width: auto; /* Prevents the checkbox from being full width */
    margin-top: 5px; /* Aligns checkbox better with its label */
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #0056b3;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}
th {
  background-color: #f2f2f2;
}

#recommendationTable table {
  width: 100%;
  table-layout: fixed;
}

#recommendationTable table th, #recommendationTable table td {
  line-height: 1.0;  /* Adjust this to control the row height */
  padding: 10px;
}

.auth-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 30%;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  margin: auto;
}

.tab-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.tab-container button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #ddd;
  cursor: pointer;
  font-size: 16px;
}

.tab-container button.active {
  background: #007bff;
  color: white;
  font-weight: bold;
}

.form-container {
  display: none;
}

.form-container.active {
  display: block;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}

.success-message {
  color: green;
  font-size: 14px;
  margin-top: 10px;
}

.vote-btn {
  font-size: 20px;
  padding: 5px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.vote-btn:hover {
  opacity: 0.7;
}

.vote-btn.active {
  background: #007bff;
  color: white;
  border-radius: 5px;
}