/* main.css */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.6;
}

/* Login Section */
#login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

#btn-login {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

/* Main App Section */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* User Info Bar */
#user-info {
  background-color: #343a40;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  z-index: 1001;
  height: 2.1rem;
  /* Higher than the menu */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#user-info span {
  font-size: 1.1rem;
}

#btn-logout {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btn-logout:hover {
  background-color: #c82333;
}

/* Navigation Menu */
#menu {
  background-color: #495057;
  position: fixed;
  top: 2.1rem;
  height: 2.1rem;
  /* Adjust based on the height of #user-info */
  left: 0;
  width: 100%;
  z-index: 1000;
}

#menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

#menu ul li {
  flex: 1;
  text-align: center;
  height: 2rem;
  padding: 0.2rem;
  border-right: 1px solid #6c757d;
}

#menu ul li:last-child {
  border-right: none;
}

#menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  display: block;
  transition: background-color 0.3s ease;
}

#menu ul li a:hover {
  background-color: #6c757d;
}

/* Content Section */
#content {
  flex: 1;
  padding: 20px;
  margin-top: 1.5rem;
  /* Adjust this value based on the combined heights of #user-info and #menu */
}

/* Basic Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #343a40;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 600px) {

  /* User Info: Stack vertically for narrow screens */
  #user-info {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Navigation: Stack menu items vertically */
  #menu ul {
    flex-direction: column;
  }

  #menu ul li {
    border-right: none;
    border-bottom: 1px solid #6c757d;
  }

  #menu ul li:last-child {
    border-bottom: none;
  }

  /* Adjust padding for content on smaller devices */
  #content {
    padding: 15px;
  }

  /* Increase button touch areas */
  #btn-login,
  #btn-logout {
    padding: 15px;
    font-size: 1.1rem;
  }
}

.hidden {
  display: none !important;
}

body {
  font-family: Arial, sans-serif;
  color: #111;
  margin: 2em;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  display: inline;
  margin-right: 1em;
}

table {
  /*border-collapse: collapse;*/
  margin-top: 1em;
  width: 600px;
  font-size: 0.8rem;
}

table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;
  padding: 0.5em;
}


tr:nth-child(odd) {
  background-color: lightyellow;
}

tr:nth-child(even) {
  background-color: khaki;
}

tfoot th,
thead th {
  background-color: #eee;
  text-align: left;
  font-size: small;
  white-space: nowrap;
}

thead:nth-child(1) th {
  background-color: #ddd;
}

label {
  font-weight: 100;
}

.form-control {
  padding: 4px;
  border-radius: 3px;
  min-width: 100px;
  margin: 3px 6px;
}

#context {
  width: 100%;
}

.numeric-cell {
  text-align: right;
}

fieldset {
  padding: 1rem 2rem 2rem;
}

button {
  background-color: #23b950;
  /* Base background color */
  color: #fff;
  /* White text */
  border: none;
  /* No border */
  padding: 10px 20px;
  /* Adequate padding for a larger click area */
  border-radius: 5px;
  /* Rounded corners */
  font-size: 1rem;
  /* Readable text size */
  cursor: pointer;
  /* Pointer cursor on hover */
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  /* Subtle shadow for depth */
}

button:hover {
  background-color: #0056b3;
  /* Darker shade on hover */
  transform: translateY(-2px);
  /* Slight lift effect */
}

button:active {
  background-color: #004494;
  /* Even darker when active */
  transform: translateY(0);
  /* Return to original position */
}

fieldset ul {
  padding-left: 2rem;
}

label {
  font-weight: bold;
}

/* WebKit Browsers (Chrome, Safari) */
.notes-cell::-webkit-scrollbar {
  width: 14px;
  /* Increase width for vertical scrollbar */
  height: 14px;
  /* Increase height for horizontal scrollbar */
}

.notes-cell::-webkit-scrollbar-track {
  background: #e0e0e0;
  /* Lighter color for track */
  border-radius: 10px;
}

.notes-cell::-webkit-scrollbar-thumb {
  background-color: #888;
  /* More visible contrast */
  border-radius: 10px;
  border: 3px solid #e0e0e0;
  /* Creates padding around thumb */
}

.notes-cell::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  /* Darker on hover for better visibility */
}

.notes-cell {
  min-width: 380px;
  padding: 2px;

  scrollbar-width: auto;
  /* Options: auto, thin, none */
  scrollbar-color: #888 #e0e0e0;
  /* thumb color followed by track color */
}

.form-group label {
  display: inline-block;
  width: 150px;
}

.form-actions {
  margin-top: 12px;
  margin-left: 150px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  padding-top: 90px;
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
  margin: 0 0 25px 0;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}