* {
  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;
}


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

  margin: 0 auto;

  padding: 50px 0 80px;
}

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

.custom-navbar {
  width: 100%;
  background: #111827 !important;
  border-bottom: 1px solid rgba(139, 92, 246, .25);
  padding: 10px 22px;
}


/* Navbar container */

.custom-navbar .nav-container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center;
  gap: 30px;
}


/* Brand */

.custom-navbar .navbar-brand {
  color: #f8fafc !important;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  margin: 0;
}


.custom-navbar .navbar-brand:hover {
  color: #c084fc !important;
}


/* Right side */

.custom-navbar .auth-nav {
  display: flex !important;
  align-items: center;
  gap: 50px !important;
  margin-left: auto !important;
}


/* Navigation items */

.custom-navbar .auth-nav .nav-item {
  display: flex;
  align-items: center;
}


/* Navigation links */

.custom-navbar .auth-nav .nav-link {
  color: #cbd5e1 !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0 !important;
  margin: 0 !important;
}


/* Hover */

.custom-navbar .auth-nav .nav-link:hover {
  color: #fff !important;
}


/* Username */

.custom-navbar .auth-nav .username-link {
  color: #f8fafc !important;
}


/* Wallet */

.custom-navbar .auth-nav .wallet-balance {
  color: #86efac !important;
  font-weight: 700;
}


/* =========================================================
USERNAME
========================================================= */

.username-link {
  color: #c084fc !important;

  font-weight: 600;

  text-decoration: none;
}

.username-link:hover {
  color: #e9d5ff !important;
}



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

.hero {
  text-align: left;

  margin-bottom: 35px;
}


.hero-tag,
.eyebrow,
.modal-tag {
  margin: 0 0 10px;

  color: #a78bfa;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;
}


.hero h1 {
  margin: 0;

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

  line-height: 1.05;

  color: #f8fafc;
}


.hero-text {
  max-width: 600px;

  margin: 14px 0 0;

  color: #94a3b8;

  font-size: 15px;

  line-height: 1.6;
}


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

.form-card {
  background: #111827;

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

  border-radius: 12px;

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

  overflow: hidden;
}


.form-section {
  padding: 30px;

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


.form-section:last-of-type {
  border-bottom: 0;
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  margin-bottom: 24px;
}


.section-heading > span {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 8px;

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

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

  color: #c084fc;

  font-size: 12px;

  font-weight: 800;
}


.section-heading h2 {
  margin: 0 0 5px;

  color: #f8fafc;

  font-size: 19px;
}


.section-heading p {
  margin: 0;

  color: #64748b;

  font-size: 13px;
}


/* =========================
   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;
}


/* =========================
   INPUTS
========================= */

.field input {
  width: 100%;

  height: 46px;

  padding: 0 13px;

  border: 1px solid #334155;

  border-radius: 7px;

  outline: none;

  background: #0f172a;

  color: #f8fafc;

  font-size: 13px;

  transition: 0.2s;
}


.field input::placeholder {
  color: #64748b;
}


.field input:focus {
  border-color: #8b5cf6;

  background: #0f172a;

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


/* =========================
   CLASS SELECT
========================= */

.field select {
  width: 100%;

  height: 46px;

  padding: 0 13px;

  border: 1px solid #334155;

  border-radius: 7px;

  outline: none;

  background: #0f172a;

  color: #f8fafc;

  font-size: 13px;

  cursor: pointer;

  transition: 0.2s;
}


.field select:focus {
  border-color: #8b5cf6;

  background: #0f172a;

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


.field select option {
  color: #f8fafc;

  background: #0f172a;
}


/* =========================
   GENERATE BUTTON
========================= */

.generate-area {
  padding: 24px 30px;

  background: #0f172a;
}


.generate-button {
  width: 100%;

  height: 50px;

  border: 1px solid #8b5cf6;

  border-radius: 7px;

  background: #7c3aed;

  color: #ffffff;

  cursor: pointer;

  font-size: 13px;

  font-weight: 700;

  transition: 0.2s;
}


.generate-button:hover {
  background: #8b5cf6;
}


.generate-button:active {
  transform: translateY(1px);
}


/* =====================================================
   FLIGHT 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;
}


/* =========================
   CREATED FLIGHT BUTTONS
========================= */

.created-flights button {
  display: block;

  width: 100%;

  padding: 14px 15px;

  border: 1px solid #263449;

  border-radius: 9px;

  background: #111827;

  color: #f8fafc;

  cursor: pointer;

  text-align: left;

  transition: 0.2s;
}


.created-flights button:hover {
  border-color: #8b5cf6;

  background: #151d2e;
}


.created-flights button.active {
  border-color: #8b5cf6;

  background: #151d2e;
}


/* =====================================================
   FLIGHT PROFILE CONTENT
===================================================== */

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

  min-width: 0;

  padding: 0;

  background: transparent;

  border: 0;

  box-shadow: none;
}


/* =====================================================
   CREATE FLIGHT VIEW
===================================================== */

.flight-create-view {
  display: none;

  width: 100%;

  min-height: 1px;

  padding: 0;

  margin: 0;

  background: transparent;

  border: 0;

  box-shadow: none;
}


/* =====================================================
   SELECTED FLIGHT 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 FLIGHT 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;
}


/* =====================================================
   CREATE NEW FLIGHT 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;
}


/* =====================================================
   FLIGHT 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;
}


/* =====================================================
   FLIGHT 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;
}


/* =====================================================
   FLIGHT 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;
}


/* =====================================================
   FLIGHT 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;
}


/* =========================
   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
========================= */

.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
========================= */

.pdf {
  position: relative;

  width: 100%;

  margin: 0 auto;

  overflow: visible;

  line-height: 0;

  background: #ffffff;
}


.pdf > img {
  display: block;

  width: 100%;

  height: auto;
}


/*
   Values are created by JavaScript.

   IMPORTANT:
   overflow is visible so the top of letters
   cannot be clipped.
*/

.pdf-value {
  position: absolute;

  z-index: 2;

  height: auto;

  min-height: 3.2%;

  margin: 0;

  padding: 1px 0 0;

  overflow: visible;

  color: #53848b;

  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 0 6px;

  font-size: 16px;

  color: #f8fafc;
}


.download-area p {
  margin: 0;

  color: #64748b;

  font-size: 12px;
}


.download-button {
  flex-shrink: 0;

  padding: 11px 18px;

  border: 1px solid #8b5cf6;

  border-radius: 7px;

  background: #7c3aed;

  color: #ffffff;

  cursor: pointer;

  font-size: 12px;

  font-weight: 700;
}


.download-button:hover {
  background: #8b5cf6;
}


/* =========================
   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(2, 6, 23, .78);

  backdrop-filter: blur(4px);
}


/* =========================
   MODAL BOX
========================= */

.modal-box {
  position: relative;

  z-index: 1;

  width: min(460px, 100%);

  padding: 28px;

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

  border-radius: 12px;

  background: #111827;

  box-shadow: 0 25px 70px rgba(0, 0, 0, .55);
}


.modal-close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 32px;
  height: 32px;

  border: 0;

  border-radius: 7px;

  background: #1e293b;

  color: #94a3b8;

  cursor: pointer;

  font-size: 22px;

  line-height: 1;
}


.modal-close:hover {
  color: #ffffff;

  background: #334155;
}


.modal-box h2 {
  margin: 0 0 8px;

  font-size: 22px;

  color: #f8fafc;
}


.modal-text {
  margin: 0 0 22px;

  color: #64748b;

  font-size: 13px;

  line-height: 1.6;
}


/* =========================
   DOWNLOAD OPTIONS
========================= */

.download-options {
  display: grid;

  gap: 10px;
}


.format-button {
  width: 100%;

  padding: 15px;

  border: 1px solid #334155;

  border-radius: 8px;

  background: #0f172a;

  color: #f8fafc;

  cursor: pointer;

  text-align: left;

  transition: 0.2s;
}


.format-button:hover {
  border-color: #8b5cf6;

  background: #131c31;
}


.format-button strong {
  display: block;

  margin-bottom: 5px;

  color: #c084fc;

  font-size: 13px;
}


.format-button span {
  color: #64748b;

  font-size: 11px;
}


/* =========================
   DATE AND TIME ICONS
========================= */

.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
}


.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 1;

  cursor: pointer;

  width: 20px;

  height: 20px;

  filter: brightness(0) invert(1);
}


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

@media (max-width: 700px) {

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

    padding-top: 35px;
  }


  .hero {
    margin-bottom: 25px;
  }


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


  .form-section {
    padding: 22px;
  }


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


  .generate-area {
    padding: 22px;
  }


  /* =========================
     FLIGHT PROFILES MOBILE
  ========================= */

  .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;
  }


  .generated-document {
    padding: 16px;
  }


  .document-header {
    align-items: flex-start;

    flex-direction: column;
  }


  .edit-button {
    width: 100%;
  }


  .download-area {
    align-items: stretch;

    flex-direction: column;
  }


  .download-button {
    width: 100%;
  }


  .modal-box {
    padding: 26px 20px;
  }

}
