/* Login page styles */
.Toastify__toast-container {
  z-index: 9999 !important;
}

.Toastify__toast {
  z-index: 9999 !important;
}
.login-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: #121c42;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  color: white;
  position: relative;
  z-index: 1;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: color 0.2s ease;
  z-index: 1;
}

/* Header styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  height: auto;
  min-height: 5rem;
  flex-shrink: 0;
}

.left-header-section {
  display: flex;
  align-items: flex-start;
}

.right-header-section {
  display: flex;
  align-items: center;
}

.left-logo, .right-logo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.header-separator {
  height: 3rem;
  width: 1.2px;
  background-color: rgb(132, 143, 209);
  margin: 0 1rem;
}

.center-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-primary {
  margin: 0;
  color: #f9b234;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.2;
  display: inline-block;
}

.title-secondary {
  color: white;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
}

/* Main content styles */
.main-content {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.ship-container {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ship-image {
  max-width: 90%;
  height: auto;
}

/* Login form styles */
.login-form-container {
  width: 33%;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  background-color: white;
  border-radius: 0.625rem;
  width: 100%;
  overflow: hidden;
}

.login-header {
  position: relative;
  background-color: #f9b234; /* Changed to yellow background */
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: url('/images/title_bg.png'); /* Add the background image */
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 9rem 100%;
  overflow: hidden;
}

.login-header h2 {
  margin: 0;
  font-size: 1.8rem;
  z-index: 2;
}

.label-with-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.label-with-forgot label {
  color: #333;
  font-weight: 500;
  margin: 0;
}

.repository-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #000;
  z-index: 2;
  text-align: right;
  text-transform: uppercase;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-actions .login-button {
  float: none;
}

.repository-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.login-form form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.fluid-onboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forgot-password {
  color: #0d6efd;
  font-weight: normal;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 0.0625rem solid #ced4da;
  border-radius: 0.3125rem;
  font-size: 1rem;
}

.form-control:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  color: #333;
}

.login-button {
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 0.3125rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  float: right;
}

.login-button:hover {
  background-color: #0b5ed7;
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.switch-dashboard-item {
  position: relative;
}

.switch-dashboard-link {
  color: #565656;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.switch-dashboard-link:hover {
  background-color: rgba(78, 115, 223, 0.1);
}

.dropdown-menu {
  position: absolute;
  overflow: visible !important;
  top: 100%;
  left: 0;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 0.5rem 0;
  min-width: 10rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #212529;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f8f9fa;
}

/* Dashboard Layout Styles */
.dashboard-page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f8fa;
}

.dashboard-content-wrapper {
  display: flex;
  flex: 1;
  padding: 20px;
  gap: 20px;
}

.main-content-area {
  flex: 1;
  min-width: 0;
}

.notification-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* Notification Panel Styles */
.notification-panel {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notification-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  margin: 0;
  font-size: 18px;
  color: #0c2b5b;
}

.notification-header .view-all {
  color: #0d6efd;
  font-size: 14px;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.notification-item {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 6px;
}

.notification-item.success .notification-dot {
  background-color: #198754;
}

.notification-item.warning .notification-dot {
  background-color: #ffc107;
}

.notification-item.info .notification-dot {
  background-color: #0dcaf0;
}

.notification-content {
  flex: 1;
}

.notification-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #333;
}

.notification-date, .notification-time {
  color: #6c757d;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.notification-date svg, .notification-time svg {
  margin-right: 5px;
  font-size: 10px;
}
/* Top Navigation Bar */
.top-navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}

.navbar-brand {
  margin-right: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  margin-right: 8px;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #0c2b5b;
}

.navbar-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 5px;
}

.nav-link {
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: #f5f5f5;
}

.nav-link.active {
  background-color: #0d6efd;
  color: white;
}

.dropdown-container {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-button {
  background-color: #0dcaf0;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.logout-button:hover {
  background-color: #0ba8d4;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
  gap: 5px;
}

.user-role {
  font-size: 12px;
  color: #666;
}

/* Preview Styles */
.preview-container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}

.preview-header {
  background-color: #003087;
  color: white;
  padding: 10px 15px;
  margin: -20px -20px 20px -20px;
}

.preview-header h3 {
  margin: 0;
  font-size: 18px;
}

.preview-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.preview-cell {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

.preview-section {
  margin-bottom: 20px;
}

.preview-section h4 {
  background-color: #003087;
  color: white;
  padding: 10px;
  margin: 0 0 10px 0;
}

.preview-section p {
  margin: 0;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
}

/*User Creation*/
.hierarchy-breadcrumb {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
}

.hierarchy-breadcrumb .btn-link {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

.hierarchy-breadcrumb .btn-link:hover {
  color: #0056b3;
}

.unit-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.unit-button {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unit-button:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
  transform: translateY(-2px);
}

.unit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.unit-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.unit-type {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.selected-unit-info {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  padding: 15px;
  margin-top: 15px;
}

.selected-unit-info h4 {
  margin-top: 0;
  color: #155724;
}

.selected-unit-info p {
  margin: 5px 0;
  color: #155724;
}

.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
  background-color: #f5f5f5;
}

.loading-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #777;
}

.coordinate-input {
  margin-bottom: 1rem;
}

.coordinate-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}

.coordinate-field {
  flex: 1;
  min-width: 60px;
  position: relative;
}

.coordinate-separator {
  font-weight: bold;
  padding: 0 2px;
  align-self: flex-start;
  margin-top: 8px;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  color: #51d1e7;
}

/* Make the direction field a little wider */
.coordinate-field:last-child {
  min-width: 100px;
}

/* For nested dropdowns in the navigation */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
}

.dropdown-submenu-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 10rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  z-index: 1001;
}

.dropdown-submenu-content.active {
  display: block;
}

.search-results-map-container {
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.no-map-message {
  padding: 20px;
  text-align: center;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 20px 0;
}

.map-toggle-button {
  background-color: #4a6491;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-toggle-button:hover {
  background-color: #3a5070;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.statistics-container {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.statistics-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.statistics-header h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
}

.statistics-header p {
  margin: 5px 0;
  font-size: 16px;
  color: #555;
}

.statistics-header p strong {
  color: #2c3e50;
  font-size: 18px;
}

/* Statistics Table */
.statistics-table-wrapper {
  margin: 30px 0;
}

.statistics-table-wrapper h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.statistics-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.statistics-table thead {
  background-color: #f8f9fa;
}

.statistics-table th,
.statistics-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.statistics-table th {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statistics-table td {
  color: #333;
  font-size: 14px;
}

.statistics-table tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.statistics-table tbody tr:last-child td {
  border-bottom: none;
}

/* Combined Chart Container */
.combined-chart-container {
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.combined-chart-container h4 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}