* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body, html {
  height: 100%;
}

.container {
  display: flex;
  height: 100vh;
}

.left-panel {
  flex: 1;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.left-panel h1 {
  margin-bottom: 30px;
  font-size: 2em;
}

.password-container {
  position: relative;
  width: 250px;
  margin-bottom: 20px;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  padding: 10px 40px 10px 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1em;
  color: #888;
}

.login-button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
}

.login-button:hover {
  background-color: #0056b3;
}

.login-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  position: relative;
}

/* Tooltip styling */
.login-button:disabled:hover::after {
  content: "Acknowledge Disclaimer";
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

/* Arrow for tooltip */
.login-button:disabled:hover::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  pointer-events: none;
}

.help-button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  margin-right: 10px; /* Add margin to the right instead of top */
}

.help-button:hover {
  background-color: #0056b3;
}

.button-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 10px; /* Move the top margin to the container */
}

.error-message {
  color: red;
  margin-top: 10px;
}

.landing-page {
  flex: 1;
  background-image: url('../image/Dashboard Background.jpg');
  background-size: cover;
  background-position: center;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 50px;
}

.landing-page-content {
  position: relative;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 600px;
}

.landing-page-content h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #222;
}

.landing-page-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.iframe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  z-index: 9999;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.sidebar {
  position: relative;
  width: 240px;
  height: 100%;
  background-color: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Add toggle button styles */
.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #6c5ce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 101;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.sidebar-toggle:hover {
  background-color: #5649c0;
}

.sidebar.minimized .sidebar-toggle {
  transform: translateY(-50%) rotate(180deg);
}

.sidebar.minimized {
  width: 80px;
  padding: 20px 10px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #6c5ce7;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  margin-right: 10px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.sidebar.minimized .sidebar-title {
  display: none;
}

.sidebar-subtitle {
  font-size: 12px;
  color: #888;
  transition: opacity 0.3s ease;
}

.sidebar.minimized .sidebar-subtitle {
  display: none;
}

.nav-items {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: #333;
}

.nav-item:hover {
  background-color: #f5f5f7;
}

.nav-item.active {
  background-color: #6c5ce7;
  color: white;
}

.nav-icon {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.sidebar.minimized .nav-text {
  display: none;
}

.sidebar-divider {
  height: 1px;
  background-color: #eee;
  margin: 15px 0;
}

.sidebar-footer {
  margin-top: auto;
}

.main-content {
  flex: 1;
  height: 100%;
  transition: margin-left 0.3s ease;
}

.main-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Style for the acknowledge button */
.acknowledge-button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 150px;
}

.acknowledge-button:hover {
  background-color: #0056b3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 70%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modal-disclaimer-content {
  max-height: 600px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.modal-content h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #222;
}

.modal-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

.disclaimer-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8em;
  color: #777;
  cursor: pointer;
  padding: 5px;
  display: none; /* Hidden by default */
}

.disclaimer-status:hover {
  text-decoration: underline;
  color: #555;
}