/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}


body {

  margin: 0;

  padding: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(139, 92, 246, .10),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(59, 130, 246, .07),
      transparent 35%
    ),
    #080b12;

  color: #f5f3ff;

  font-family: Arial, sans-serif;

}


button,
input,
select {

  font: inherit;

}


/* =========================================================
   NAVBAR
========================================================= */

.custom-navbar {

  width: 100%;

  padding: 10px 22px;

  background: #111827;

  border-bottom:
    1px solid
    rgba(139, 92, 246, .30);

}


.nav-container {

  width: 100%;

  margin: 0;

  padding: 0;

  display: flex;

  align-items: center;

  gap: 30px;

}


.navbar-brand {

  color: #ffffff;

  text-decoration: none;

  font-size: 19px;

  font-weight: 700;

}


.auth-nav {

  display: flex;

  align-items: center;

  gap: 50px;

  margin-left: auto;

}


.auth-nav a {

  color: #cbd5e1;

  text-decoration: none;

  font-size: 13px;

  font-weight: 600;

}


.auth-nav a:hover {

  color: #ffffff;

}


.wallet-balance {

  color: #4ade80;

  font-size: 13px;

  font-weight: 700;

}


.navbar-toggler {

  display: none;

  margin-left: auto;

  padding: 6px 8px;

  border: 0;

  background: transparent;

  color: #ffffff;

  font-size: 22px;

  cursor: pointer;

}


/* =========================================================
   PAGE
========================================================= */

.page {

  width:
    min(
      1100px,
      calc(100% - 32px)
    );

  margin: 0 auto;

  padding: 50px 0 80px;

}


/* =========================================================
   HERO
========================================================= */

.hero {

  margin-bottom: 32px;

}


.hero-tag,
.eyebrow,
.modal-tag {

  margin: 0 0 10px;

  color: #a78bfa;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;

}


.hero h1 {

  margin: 0;

  color: #f8fafc;

  font-size:
    clamp(
      30px,
      5vw,
      44px
    );

  line-height: 1.1;

}


.hero-text {

  max-width: 600px;

  margin: 15px 0 0;

  color: #94a3b8;

  font-size: 15px;

  line-height: 1.6;

}


/* =========================================================
   FORM CARD
========================================================= */

.form-card {

  overflow: hidden;

  background: #111827;

  border:
    1px solid
    rgba(139, 92, 246, .22);

  border-radius: 12px;

  box-shadow:
    0 15px 40px
    rgba(0, 0, 0, .25);

}


.form-section {

  padding: 30px;

  border-bottom:
    1px solid
    #263449;

}


.section-heading {

  display: flex;

  align-items: flex-start;

  gap: 14px;

  margin-bottom: 24px;

}


.section-number {

  flex:
    0 0
    36px;

  width: 36px;

  height: 36px;

  display: flex;

  align-items: center;

  justify-content: center;

  border:
    1px solid
    rgba(139, 92, 246, .35);

  border-radius: 8px;

  background:
    rgba(139, 92, 246, .10);

  color: #c084fc;

  font-size: 12px;

  font-weight: 800;

}


.section-heading h2 {

  margin: 0;

  color: #f8fafc;

  font-size: 19px;

}


.section-heading p {

  margin: 5px 0 0;

  color: #94a3b8;

  font-size: 13px;

  line-height: 1.5;

}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 20px;

}


.field {

  display: flex;

  flex-direction: column;

  gap: 8px;

}


.field label {

  color: #cbd5e1;

  font-size: 13px;

  font-weight: 700;

}


.field input {

  width: 100%;

  height: 46px;

  padding: 0 13px;

  border:
    1px solid
    #334155;

  border-radius: 7px;

  outline: none;

  background: #0f172a;

  color: #ffffff;

  font-size: 14px;

}


.field input::placeholder {

  color: #64748b;

}


.field input:focus {

  border-color: #8b5cf6;

  box-shadow:
    0 0 0 2px
    rgba(139, 92, 246, .10);

}


/* =========================================================
   GENERATE AREA
========================================================= */

.generate-area {

  padding: 24px 30px;

  background: #0f172a;

}


.generate-button {

  width: 100%;

  height: 50px;

  border:
    1px solid
    #8b5cf6;

  border-radius: 7px;

  background: #8b5cf6;

  color: #ffffff;

  cursor: pointer;

  font-size: 14px;

  font-weight: 700;

}


.generate-button:hover {

  background: #7c3aed;

  border-color: #7c3aed;

}


/* =========================================================
   GENERATED DOCUMENT
========================================================= */

.generated-document {

  display: none;

  margin-top: 35px;

  padding: 28px;

  background: #111827;

  border:
    1px solid
    rgba(139, 92, 246, .22);

  border-radius: 12px;

  box-shadow:
    0 15px 40px
    rgba(0, 0, 0, .25);

}


.generated-document.show {

  display: block;

}


/* =========================================================
   DOCUMENT HEADER
========================================================= */

.document-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;

}


.document-header h2 {

  margin: 0;

  color: #f8fafc;

  font-size: 22px;

}


.edit-button {

  padding: 9px 15px;

  border:
    1px solid
    #475569;

  border-radius: 7px;

  background: transparent;

  color: #cbd5e1;

  cursor: pointer;

  font-size: 12px;

  font-weight: 700;

}


.edit-button:hover {

  border-color: #8b5cf6;

  color: #c084fc;

  background: transparent;

}


/* =========================================================
   PDF / BEDSPREAD DOCUMENT
========================================================= */

.pdf {

  position: relative;

  width: 100%;

  margin: 0 auto;

  overflow: visible;

  line-height: 0;

  background: #ffffff;

}


.pdf > img {

  display: block;

  width: 100%;

  height: auto;

}


/* =========================================================
   GENERATED DOCUMENT VALUES
========================================================= */

.pdf-value {

  position: absolute;

  z-index: 2;

  height: auto;

  min-height: 3.2%;

  margin: 0;

  padding: 1px 0 0;

  overflow: visible;

  color: #2f5f77;

  pointer-events: none;

  white-space: normal;

  overflow-wrap: anywhere;

  word-wrap: break-word;

  word-break: break-word;

  display: block;

  font-family: Arial, sans-serif;

  font-size:
    clamp(
      12px,
      1.45vw,
      20px
    );

  font-weight: 700;

  line-height: 1.15;

  text-align: center;

  vertical-align: top;

  letter-spacing: 0;

}


/* =========================================================
   DOWNLOAD AREA
========================================================= */

.download-area {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-top: 24px;

  padding: 20px;

  border:
    1px solid
    #263449;

  border-radius: 9px;

  background: #0f172a;

}


.download-area h3 {

  margin: 0;

  color: #f8fafc;

  font-size: 16px;

}


.download-area p {

  margin: 6px 0 0;

  color: #94a3b8;

  font-size: 13px;

}


.download-button {

  min-width: 150px;

  height: 44px;

  padding: 0 18px;

  border:
    1px solid
    #8b5cf6;

  border-radius: 7px;

  background: #8b5cf6;

  color: #ffffff;

  cursor: pointer;

  font-size: 13px;

  font-weight: 700;

}


.download-button:hover {

  background: #7c3aed;

  border-color: #7c3aed;

}


/* =========================================================
   DOWNLOAD MODAL
========================================================= */

.download-modal {

  position: fixed;

  inset: 0;

  z-index: 1000;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

}


.download-modal.show {

  display: flex;

}


.modal-overlay {

  position: absolute;

  inset: 0;

  background:
    rgba(8, 11, 18, .82);

}


.modal-box {

  position: relative;

  z-index: 2;

  width:
    min(
      100%,
      460px
    );

  padding: 30px;

  background: #111827;

  border:
    1px solid
    rgba(139, 92, 246, .30);

  border-radius: 12px;

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, .45);

}


.modal-close {

  position: absolute;

  top: 14px;

  right: 16px;

  width: 30px;

  height: 30px;

  padding: 0;

  border: 0;

  background: transparent;

  color: #94a3b8;

  cursor: pointer;

  font-size: 24px;

  line-height: 30px;

}


.modal-close:hover {

  color: #ffffff;

}


.modal-tag {

  margin:
    0 0 10px;

  color: #a78bfa;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;

}


.modal-box h2 {

  margin: 0;

  color: #f8fafc;

  font-size: 22px;

  line-height: 1.2;

}


.modal-text {

  margin:
    10px 0 24px;

  color: #94a3b8;

  font-size: 14px;

  line-height: 1.6;

}


.download-options {

  display: grid;

  gap: 12px;

}


.format-button {

  width: 100%;

  min-height: 58px;

  padding: 10px 14px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-content: center;

  gap: 4px;

  border:
    1px solid
    #334155;

  border-radius: 7px;

  background: #0f172a;

  color: #f8fafc;

  cursor: pointer;

  text-align: left;

  transition:
    border-color .2s ease,
    background .2s ease,
    color .2s ease;

}


.format-button strong {

  color: #f8fafc;

  font-size: 13px;

  font-weight: 700;

}


.format-button span {

  color: #64748b;

  font-size: 12px;

  font-weight: 400;

}


.format-button:hover {

  border-color: #8b5cf6;

  background: #151d2e;

}


.format-button:hover strong {

  color: #c084fc;

}


.format-button:hover span {

  color: #94a3b8;

}


/* =========================================================
   BOARDING PASS PROFILE MANAGEMENT
========================================================= */

.flight-management {

  display: grid;

  grid-template-columns:
    260px minmax(0, 1fr);

  gap: 24px;

  width: 100%;

  margin-top: 35px;

  align-items: start;

}

/* =========================================================
   LEFT PROFILE PANEL
========================================================= */

.flight-profiles-panel {

  width: 100%;

  min-width: 0;

  padding: 0;

  background: transparent;

  border: 0;

  box-shadow: none;

}


.created-flights {

  display: flex;

  flex-direction: column;

  gap: 10px;

  width: 100%;

  padding: 0;

  margin: 0;

}


/* =========================================================
   EACH SAVED BOARDING PASS
========================================================= */

.created-flight-item {

  display: flex;

  align-items: center;

  gap: 8px;

  width: 100%;

  padding: 0;

  margin: 0;

}


/* =========================================================
   BOARDING PASS PROFILE BUTTON
========================================================= */

.created-flight-profile {

  flex: 1;

  min-width: 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  padding: 14px 15px;

  border:
    1px solid
    #263449;

  border-radius: 9px;

  background: #111827;

  color: #f8fafc;

  cursor: pointer;

  text-align: left;

  transition:
    border-color .2s ease,
    background .2s ease;

}


.created-flight-profile:hover {

  border-color: #8b5cf6;

  background: #151d2e;

}


/* =========================================================
   PROFILE NAME + TRACKING
========================================================= */

.created-flight-profile > div {

  min-width: 0;

}


.created-flight-profile strong {

  display: block;

  color: #f8fafc;

  font-size: 13px;

  font-weight: 700;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}


.created-flight-profile small {

  display: block;

  margin-top: 4px;

  color: #64748b;

  font-size: 10px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}


.created-flight-profile > span {

  flex-shrink: 0;

  color: #a78bfa;

  font-size: 10px;

  font-weight: 700;

}


/* =========================================================
   DELETE BUTTON
========================================================= */

.created-flight-item .delete-flight-btn {

  flex:
    0 0
    auto;

  width: auto;

  min-width: auto;

  padding: 10px 12px;

  border:
    1px solid
    #263449;

  border-radius: 7px;

  background: #111827;

  color: #94a3b8;

  cursor: pointer;

  font-size: 11px;

  font-weight: 700;

  white-space: nowrap;

}


.created-flight-item .delete-flight-btn:hover {

  border-color: #ef4444;

  background:
    rgba(239, 68, 68, .08);

  color: #f87171;

}


/* =========================================================
   RIGHT PROFILE CONTENT
========================================================= */

.flight-profile-content {

  width: 100%;

  min-width: 0;

  padding: 0;

  background: transparent;

  border: 0;

  box-shadow: none;

}


/* =========================================================
   CREATE BOARDING PASS VIEW
========================================================= */

.flight-create-view {

  display: none;

  width: 100%;

  min-height: 1px;

  padding: 0;

  margin: 0;

  background: transparent;

  border: 0;

  box-shadow: none;

}


/* =========================================================
   SELECTED BOARDING PASS VIEW
========================================================= */

.selected-flight-view {

  display: none;

  width: 100%;

  padding: 28px;

  background: #111827;

  border:
    1px solid
    rgba(139, 92, 246, .22);

  border-radius: 12px;

  box-shadow:
    0 15px 40px
    rgba(0, 0, 0, .25);

}


/* =========================================================
   SELECTED BOARDING PASS HEADER
========================================================= */

.selected-flight-header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;

  padding-bottom: 20px;

  border-bottom:
    1px solid
    rgba(148, 163, 184, .12);

}


.selected-flight-header h2 {

  margin: 0 0 7px;

  color: #f8fafc;

  font-size: 23px;

  line-height: 1.2;

}


.selected-flight-header .eyebrow {

  margin-bottom: 8px;

}


.selected-flight-tracking {

  margin: 0;

  color: #64748b;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: .5px;

}


/* =========================================================
   NEW BOARDING PASS BUTTON
========================================================= */

.new-flight-btn {

  flex-shrink: 0;

  padding: 10px 15px;

  border:
    1px solid
    #475569;

  border-radius: 7px;

  background: transparent;

  color: #cbd5e1;

  cursor: pointer;

  font-size: 12px;

  font-weight: 700;

}


.new-flight-btn:hover {

  border-color: #8b5cf6;

  color: #c084fc;

  background: transparent;

}


/* =========================================================
   BOARDING PASS PROFILE DETAILS
========================================================= */

.flight-profile-details {

  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 1px;

  margin-bottom: 28px;

  overflow: hidden;

  border:
    1px solid
    #263449;

  border-radius: 9px;

  background: #263449;

}


.flight-detail-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  min-height: 52px;

  padding: 12px 15px;

  background: #0f172a;

}


.flight-detail-row span {

  color: #64748b;

  font-size: 11px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .5px;

}


.flight-detail-row strong {

  color: #f8fafc;

  font-size: 13px;

  font-weight: 700;

  text-align: right;

  word-break: break-word;

}


/* =========================================================
   BOARDING PASS CONTROL SECTION
========================================================= */

.flight-control-section {

  padding: 22px 0;

  border-top:
    1px solid
    rgba(148, 163, 184, .12);

}


.flight-control-heading {

  display: flex;

  align-items: flex-start;

  gap: 12px;

  margin-bottom: 17px;

}


.flight-control-heading .section-number {

  width: 30px;

  height: 30px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 7px;

  background:
    rgba(139, 92, 246, .12);

  border:
    1px solid
    rgba(139, 92, 246, .25);

  color: #c084fc;

  font-size: 11px;

  font-weight: 800;

}


.flight-control-heading h3 {

  margin: 0 0 5px;

  color: #f8fafc;

  font-size: 16px;

}


.flight-control-heading p {

  margin: 0;

  color: #64748b;

  font-size: 12px;

  line-height: 1.5;

}


/* =========================================================
   BOARDING PASS STATUS CONTROL
========================================================= */

.flight-status-control {

  display: flex;

  align-items: center;

  gap: 10px;

}


.flight-status-control select {

  flex: 1;

  height: 44px;

  padding: 0 12px;

  border:
    1px solid
    #334155;

  border-radius: 7px;

  outline: none;

  background: #0f172a;

  color: #f8fafc;

  cursor: pointer;

  font-size: 12px;

}


.flight-status-control select:focus {

  border-color: #8b5cf6;

  box-shadow:
    0 0 0 3px
    rgba(139, 92, 246, .10);

}


.flight-status-control select option {

  background: #0f172a;

  color: #f8fafc;

}


.flight-action-btn {

  flex-shrink: 0;

  height: 44px;

  padding: 0 16px;

  border:
    1px solid
    #8b5cf6;

  border-radius: 7px;

  background: #7c3aed;

  color: #ffffff;

  cursor: pointer;

  font-size: 12px;

  font-weight: 700;

}


.flight-action-btn:hover {

  background: #8b5cf6;

}


/* =========================================================
   WATERMARK ACTION
========================================================= */

.flight-watermark-action {

  width: 100%;

}


.flight-watermark-action button {

  min-height: 44px;

  padding: 10px 16px;

  border:
    1px solid
    #8b5cf6;

  border-radius: 7px;

  background: #7c3aed;

  color: #ffffff;

  cursor: pointer;

  font-size: 12px;

  font-weight: 700;

}


.flight-watermark-action button:hover {

  background: #8b5cf6;

}


/* =========================================================
   BOARDING PASS DOCUMENT ACTIONS
========================================================= */

.boarding-pass-document-actions {

  display: flex;

  align-items: center;

  gap: 12px;

  width: 100%;

}


.boarding-pass-document-actions
#profileDownloadBtn {

  flex: 1;

}


.boarding-pass-document-actions
.flight-watermark-action {

  flex: 1;

}


.boarding-pass-document-actions
.flight-watermark-action button {

  width: 100%;

}


/* =========================================================
   BOARDING PASS TRACKING
========================================================= */

.flight-tracking-box {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 17px;

  border:
    1px solid
    #263449;

  border-radius: 9px;

  background: #0f172a;

}


.flight-tracking-box span {

  display: block;

  margin-bottom: 6px;

  color: #64748b;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1px;

}


.flight-tracking-box strong {

  display: block;

  color: #f8fafc;

  font-size: 14px;

  letter-spacing: .5px;

}


.track-flight-btn {

  flex-shrink: 0;

  padding: 10px 14px;

  border:
    1px solid
    #475569;

  border-radius: 7px;

  background: transparent;

  color: #cbd5e1;

  text-decoration: none;

  font-size: 11px;

  font-weight: 700;

}


.track-flight-btn:hover {

  border-color: #8b5cf6;

  color: #c084fc;

}

/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {


  .custom-navbar {
    padding: 10px 15px;
  }

  .nav-container {
    position: relative;
  }

  .custom-navbar .navbar-toggler {
    display: block;

    margin-left: auto;

    padding: 6px 8px;

    border: 1px solid
      rgba(139, 92, 246, .35);

    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  .custom-navbar .navbar-toggler:focus {
    box-shadow: none;
  }

  .custom-navbar .navbar-toggler span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px 0;

    background: #c084fc;
  }

  .custom-navbar .auth-nav {
    position: absolute;

    top: 50px;

    left: 0;
    right: 0;

    z-index: 9999;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 8px;

    width: 100%;

    margin: 0;

    padding: 10px;

    background: #111827;

    border: 1px solid
      rgba(139, 92, 246, .25);

    border-radius: 8px;
  }

  .custom-navbar .auth-nav.show {
    display: flex !important;
  }

  .custom-navbar .auth-nav .nav-item {
    width: 100%;
  }

  .custom-navbar .auth-nav .nav-link,
  .custom-navbar .auth-nav .wallet-balance {

    display: block;

    width: 100%;

    padding: 10px 12px !important;

    border-radius: 6px;

    background:
      rgba(139, 92, 246, .06);
  }

  .custom-navbar .auth-nav a:hover {
    background:
      rgba(139, 92, 246, .10);
  }

}


  /* =======================================================
     FLIGHT MANAGEMENT
  ======================================================= */

  .flight-management {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-grid {
    gap: 15px;
  }

  .selected-flight-view {
    padding: 24px;
  }

  .selected-flight-header {
    gap: 15px;
  }

  .selected-flight-header h2 {
    font-size: 21px;
  }

  .flight-profile-details {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .flight-detail-row {
    padding: 12px;
  }

  .flight-tracking-box {
    gap: 12px;
  }


/* =========================================================
   MOBILE MODAL
========================================================= */

@media (max-width: 700px) {

  .modal-box {
    width: 100%;

    padding:
      26px 20px;

    border-radius: 10px;
  }


  /* =======================================================
     MOBILE PAGE
  ======================================================= */

  .page {
    width:
      min(
        calc(100% - 20px),
        1100px
      );

    padding:
      35px 0 60px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .form-section {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .generate-area {
    padding:
      20px 22px;
  }

  .generated-document {
    padding: 16px;
  }

  .document-header {
    flex-direction: column;
    align-items: stretch;
  }

  .edit-button {
    width: 100%;
  }

  .download-area {
    flex-direction: column;
    align-items: stretch;
  }

  .download-button {
    width: 100%;
  }


  /* =======================================================
     BOARDING PASS PROFILES
  ======================================================= */

  .flight-management {
    grid-template-columns: 1fr;

    gap: 20px;

    margin-top: 25px;
  }

  .flight-profiles-panel {
    width: 100%;
  }

  .created-flights {
    width: 100%;
  }

  .flight-profile-content {
    width: 100%;
  }

  .selected-flight-view {
    padding: 20px;
  }

  .selected-flight-header {
    flex-direction: column;
    align-items: stretch;
  }

  .new-flight-btn {
    width: 100%;
  }

  .flight-profile-details {
    grid-template-columns: 1fr;
  }

  .flight-status-control {
    flex-direction: column;
    align-items: stretch;
  }

  .flight-status-control select,
  .flight-action-btn {
    width: 100%;
  }

  .flight-tracking-box {
    align-items: stretch;
    flex-direction: column;
  }

  .track-flight-btn {
    width: 100%;
    text-align: center;
  }


  /* =======================================================
     DOCUMENT ACTIONS
  ======================================================= */

  .boarding-pass-document-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .boarding-pass-document-actions
  #profileDownloadBtn {
    width: 100%;
  }

  .boarding-pass-document-actions
  .flight-watermark-action {
    width: 100%;
  }

  .boarding-pass-document-actions
  .flight-watermark-action button {
    width: 100%;
  }

}
