/* General Styles */
body {
  background-color: #f8f9fa;
}

/* Navbar Styles */
.custom-navbar {
  background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: #ffffff !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

#connectWallet {
  border: 2px solid #ffffff;
  padding: 0.375rem 0.75rem !important;
  transition: all 0.3s ease;
}

#connectWallet:hover {
  background-color: #ffffff;
  color: #4b6cb7 !important;
}

/* Dropdown Styles */
.dropdown-menu {
  background-color: #182848;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dropdown-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item:not(:last-child) {
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
}

.dropdown-item:not(:first-child) {
  margin-top: 0.25rem;
}

/* Aircraft Diagram Styles */
#aircraft-diagram {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.pilot,
.co-pilots,
.flight-attendants,
.passengers {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.co-pilots {
  justify-content: space-around;
}

.flight-attendants {
  justify-content: space-between;
}

.passengers {
  flex-wrap: wrap;
  justify-content: space-around;
}

.position-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 10px 10px;
}

.position-circle.filled {
  background-color: #ddd;
}

.position-circle.pilot {
  background-color: blue;
}

.position-circle.co-pilot {
  background-color: green;
}

.position-circle.flight-attendant {
  background-color: yellow;
}

.position-circle.passenger {
  background-color: red;
}

.position-circle.user {
  border: 3px solid #gold;
  font-weight: bold;
}

@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 50vh;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 0;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1,
.hero-content p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Feature Icons */
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Aircraft Diagram */
#aircraft-diagram {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.level {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.position {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid black;
  margin: 0 20px;
}

/* Position-specific styles */
.pilot-level .position {
  margin: 0;
}

.copilot-level .position {
  margin-left: 158px;
  margin-right: 170px;
}

.attendant-level {
  position: relative;
  justify-content: center;
}

.attendant-level .position {
  margin: 0 40px;
  position: relative;
}

.attendant-level .position:nth-child(1) {
  left: -90px;
}
.attendant-level .position:nth-child(2) {
  left: -32px;
}
.attendant-level .position:nth-child(3) {
  right: -28px;
}
.attendant-level .position:nth-child(4) {
  right: -85px;
}

/* Position colors */
#pilot {
  background-color: blue;
}
.copilot {
  background-color: green;
}
.attendant {
  background-color: yellow;
}
.passenger {
  background-color: red;
}

/* Table Styles */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

/* Modal Styles */
.modal-dialog-large {
  max-width: 80%;
  width: 80%;
  height: 80vh;
  margin: 1.75rem auto;
}

.modal-dialog.modal-video {
  max-width: 640px;
  margin: 1.75rem auto;
}

.modal-content.modal-video-content {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-body.video-container {
  padding: 0;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-header,
.modal-footer {
  background-color: #ffffff;
  position: relative;
  z-index: 1060;
}

.modal-footer.flex-column {
  align-items: flex-start;
}

/* Video Styles */
.howitworks-video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Custom Close Button Styles */
.custom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1070;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.custom-close:hover {
  opacity: 1;
}

/* Concord Token Styles */
#concordAddress {
  font-family: monospace;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 4px;
  display: break-all;
}

#tokenAddressText {
  margin-right: 5px;
}

#copyAddressIcon:hover {
  color: #007bff;
}

#concordBalanceDisplay {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

#withdrawConcordButton:disabled {
  cursor: not-allowed;
}

/* Message Styles */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

/* Utility Classes */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.hidden {
  display: none !important;
}

/* Responsive Styles */
@media (min-width: 992px) {
  #menu {
    display: flex;
    flex-direction: row;
  }

  #menu .nav-item {
    margin-right: 15px;
  }

  #menu .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }

  #menu .dropdown:hover .dropdown-menu {
    display: block;
  }

  #menu .dropdown-item {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  #menu .dropdown-item:hover {
    background-color: #f1f1f1;
  }

  .modal-content.modal-video-content {
    width: 95%;
  }

  .modal-body.video-container {
    height: 400px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  #aircraft-diagram {
    max-width: 1000px;
  }

  .position-circle {
    width: 60px;
    height: 60px;
  }

  .co-pilots {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  .flight-attendants {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .passengers {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .level {
    margin-bottom: 60px;
  }

  .position {
    width: 60px;
    height: 60px;
  }

  .pilot-level .position {
    margin: 0;
  }

  .copilot-level {
    justify-content: space-between;
    width: 60%;
    margin: 0 auto;
  }

  .copilot-level .position {
    margin: 0;
  }

  .attendant-level {
    width: 80%;
    margin: 0 auto;
    justify-content: space-between;
  }

  .attendant-level .position {
    margin: 0;
  }

  .attendant-level .position:nth-child(1),
  .attendant-level .position:nth-child(2),
  .attendant-level .position:nth-child(3),
  .attendant-level .position:nth-child(4) {
    position: static;
    left: auto;
    right: auto;
  }

  .passenger-level {
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .passenger-level .position {
    margin: 10px;
  }
}

@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .table {
    font-size: 0.875rem;
  }

  .table td {
    padding: 0.5rem;
  }

  .position {
    width: 40px;
    height: 40px;
  }

  .copilot-level .position {
    margin: 0 60px;
  }

  .attendant-level .position {
    margin: 0 20px;
  }

  .passenger-level .position {
    margin: 0 10px;
  }

  .attendant-level .position:nth-child(1) {
    left: -10px;
  }
  .attendant-level .position:nth-child(2) {
    left: 10px;
  }
  .attendant-level .position:nth-child(3) {
    right: 10px;
  }
  .attendant-level .position:nth-child(4) {
    right: -10px;
  }

  .modal-dialog.modal-video {
    margin: 0.5rem;
    max-width: 95%;
  }

  .modal-content.modal-video-content {
    width: 100%;
  }

  .modal-body.video-container {
    height: auto;
  }

  .howitworks-video {
    max-height: calc(100vh - 120px);
  }

  .custom-close {
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .metamask-redirect-button {
    display: none;
  }

  .position-circle {
    width: 40px;
    height: 40px;
    font-size: 0.8em;
  }

  .co-pilots,
  .flight-attendants {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .position {
    width: 30px;
    height: 30px;
  }

  .attendant-level .position {
    margin: 0 10px;
  }

  .passenger-level .position {
    margin: 0 5px;
  }

  .level {
    margin-bottom: 20px;
  }

  .level::before {
    height: 20px;
  }

  .attendant-level .position:nth-child(1) {
    left: -53px;
  }
  .attendant-level .position:nth-child(2) {
    left: -20px;
  }
  .attendant-level .position:nth-child(3) {
    right: -15px;
  }
  .attendant-level .position:nth-child(4) {
    right: -50px;
  }
}

@media (max-width: 320px) {
  .copilot-level .position {
    margin: 0 30px;
  }
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 800px !important;
  }
}
