/*
 * UI consistency rules for compact icon action buttons used in table rows.
 * Keeps edit/delete controls visually homogeneous across modules.
 */

.table .btn-group .btn.btn-warning,
.table .btn-group .btn.btn-danger,
.table .btn-group a.btn.btn-warning,
.table .btn-group a.btn.btn-danger {
  width: 32px;
  height: 32px;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.table .btn-group .btn.btn-xs,
.table .btn-group a.btn.btn-xs {
  min-width: 32px;
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1;
}

.table .btn-group .btn i.fa,
.table .btn-group .btn i.glyphicon {
  width: 14px;
  font-size: 14px;
  text-align: center;
}

.table .btn-group a.btn.fa {
  font-size: 14px;
  line-height: 1;
  padding: 0 8px;
}

/*
 * Global visual baseline: breadcrumb + tabs + tab panels
 * Applied across modules to keep a coherent modern style.
 */
.content-header .breadcrumb {
  background: #f4f8fc;
  border: 1px solid #d4dee8;
  border-radius: 999px;
  padding: 6px 12px;
}

.content-header .breadcrumb > li + li:before {
  color: #7f93a6;
}

.content .nav-tabs {
  border-bottom: 1px solid #c7d7e6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}

.content .nav-tabs > li {
  float: none;
  margin-bottom: 0;
}

.content .nav-tabs > li > a {
  border: 1px solid #c8d8e8;
  background-color: #eff6fc;
  color: #2f4d64;
  border-radius: 10px 10px 0 0;
  padding: 9px 14px;
  margin-right: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.content .nav-tabs > li > a:hover,
.content .nav-tabs > li > a:focus {
  background-color: #e3eff9 !important;
  border-color: #9ebbd4;
  color: #123f5d;
}

.content .nav-tabs > li.active > a,
.content .nav-tabs > li.active > a:focus,
.content .nav-tabs > li.active > a:hover {
  background-color: #dcecf9;
  color: #103d59;
  border-color: #95b8d4;
  border-bottom-color: #dcecf9;
  box-shadow: none;
  font-weight: 700;
}

.content .tab-content {
  border: 1px solid #d4dee8;
  border-top: 0;
  background-color: #e7f2fb;
  padding: 12px;
  border-radius: 0 0 10px 10px;
}

/*
 * Modernized AdminLTE box and data table baseline used by list modules
 * such as Pilots, Users, Inventory and others.
 */
.content .box {
  border: 1px solid #d4dee8;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(11, 30, 50, 0.08);
  overflow: hidden;
}

.content .box .box-header.with-border {
  border-bottom: 1px solid #d4dee8;
  background: #f8fbff;
  padding: 12px 14px;
}

.content .box .box-body {
  background: #ffffff;
  padding: 12px;
}

.content .box .btn.btn-primary {
  border-radius: 999px;
  border-color: #0f5a88;
  background: #0f5a88;
  font-weight: 700;
  padding: 8px 13px;
}

.content .table.table-bordered {
  border-color: #dbe5ef;
}

.content .table.table-bordered > thead > tr > th,
.content .table.table-bordered > tbody > tr > td {
  border-color: #e6edf4;
}

.content .table > thead > tr > th {
  background: #f4f9fe;
  color: #465868;
  font-weight: 700;
}

/*
 * Global form baseline inspired by the Flight detail form.
 * Keeps labels, fields and form sections consistent across modules.
 */
.content form .form-group {
  margin-bottom: 12px;
}

.content form .form-group > label,
.content form label.control-label {
  color: #3f556b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.content form .form-control,
.content form select.form-control,
.content form textarea.form-control {
  border: 1px solid #cfdceb;
  border-radius: 10px;
  background: #fbfdff;
  color: #2a3f53;
  box-shadow: none;
  min-height: 36px;
}

.content form textarea.form-control {
  min-height: 72px;
  resize: vertical;
}

.content form .form-control:focus,
.content form select.form-control:focus,
.content form textarea.form-control:focus {
  border-color: #8db2d1;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 90, 136, 0.12);
}

.content form .form-control[readonly],
.content form .form-control[disabled] {
  background: #f2f6fa;
  color: #6f8397;
}

.content form .help-block {
  color: #71879b;
  font-size: 12px;
  margin-top: 4px;
}

.content form .box.box-info > .box-header.with-border,
.content form .box.box-solid > .box-header.with-border {
  background: #f4f9fe;
}

.content form .box .box-title {
  color: #244158;
  font-weight: 700;
}

.content form .btn.btn-primary,
.content form .btn.btn-success {
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 14px;
}

.content form .btn.btn-default,
.content form .btn.btn-warning {
  border-radius: 999px;
}

.content form .select2-container--default .select2-selection--single {
  border: 1px solid #cfdceb;
  border-radius: 10px;
  min-height: 36px;
  background: #fbfdff;
}

.content form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #2a3f53;
  line-height: 34px;
}

.content form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px;
}

/*
 * Global modal baseline aligned with the new form language.
 */
.modal-content {
  border: 1px solid #d4dee8;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(11, 30, 50, 0.18);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(90deg, #0f5a88, #2a739f);
  color: #ffffff;
  border-bottom: 1px solid #0d4f77;
  padding: 12px 14px;
}

.modal-header .modal-title {
  color: #ffffff;
  font-weight: 700;
}

.modal-header .close {
  color: #ffffff;
  opacity: 0.95;
  text-shadow: none;
}

.modal-body {
  background: #eef5fb;
  padding: 14px;
}

.modal-footer {
  background: #ffffff;
  border-top: 1px solid #dbe6f1;
  padding: 10px 12px;
}

.modal .form-group {
  margin-bottom: 10px;
}

.modal .form-group > label,
.modal label.control-label {
  display: block;
  color: #3f556b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

.modal .form-control,
.modal select.form-control,
.modal textarea.form-control {
  border: 1px solid #cfdceb;
  border-radius: 10px;
  background: #fbfdff;
  color: #2a3f53;
  box-shadow: none;
  min-height: 36px;
}

.modal textarea.form-control {
  min-height: 72px;
}

.modal .form-control:focus,
.modal select.form-control:focus,
.modal textarea.form-control:focus {
  border-color: #8db2d1;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 90, 136, 0.12);
}

.modal .btn.btn-primary,
.modal .btn.btn-success {
  border-radius: 999px;
  border-color: #0f5a88;
  background: #0f5a88;
  font-weight: 700;
  padding: 8px 14px;
}

.modal .btn.btn-default,
.modal .btn.btn-warning,
.modal .btn.btn-secondary {
  border-radius: 999px;
}

@media (max-width: 991px) {
  .content-header .breadcrumb {
    border-radius: 12px;
    padding: 8px 10px;
  }

  .content .nav-tabs > li > a {
    padding: 8px 11px;
    font-size: 13px;
  }
}

.login-page {
  background:
    radial-gradient(circle at top left, rgba(57, 131, 181, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(13, 52, 91, 0.28), transparent 36%),
    linear-gradient(135deg, #eef5fb 0%, #d9e8f4 48%, #f6fbff 100%);
  min-height: 100vh;
}

.flightlog-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.flightlog-auth-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 0.9fr);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(182, 205, 225, 0.9);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(15, 44, 72, 0.22);
  overflow: hidden;
}

.flightlog-auth-card__hero {
  padding: 42px 40px;
  background: linear-gradient(160deg, #0f5a88 0%, #164c71 58%, #12364d 100%);
  color: #ffffff;
  position: relative;
}

.flightlog-auth-card__hero::after {
  content: '';
  position: absolute;
  right: -68px;
  bottom: -68px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.flightlog-auth-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.flightlog-auth-card__brand-mark {
  position: relative;
  z-index: 1;
  margin: 18px 0 10px;
}

.flightlog-auth-card__brand-mark-image {
  display: block;
  width: min(100%, 340px);
  max-height: 300px;
  height: auto;
  object-fit: contain;
}

.flightlog-auth-card__title {
  margin: 22px 0 8px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
}

.flightlog-auth-card__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #dcecf8;
}

.flightlog-auth-card__copy {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.flightlog-auth-card__security {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 25, 37, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.flightlog-auth-card__panel {
  padding: 34px 32px;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f9fd 100%);
}

.flightlog-auth-card__panel-title {
  margin: 0 0 8px;
  color: #1e3d56;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.flightlog-auth-card__panel-copy {
  margin: 0 0 18px;
  color: #5f7487;
  font-size: 14px;
  line-height: 1.6;
}

.flightlog-auth-card__alert {
  border-radius: 12px;
  margin-bottom: 16px;
}

.flightlog-auth-branding {
  position: relative;
  z-index: 1;
}

.flightlog-auth-branding--client {
  margin-top: 24px;
}

.flightlog-auth-branding--owner {
  margin-top: 28px;
}

.flightlog-auth-branding__image {
  display: block;
  max-width: 100%;
  height: auto;
}

.flightlog-auth-branding__image--client {
  width: min(100%, 180px);
  max-height: 120px;
  object-fit: contain;
}

.flightlog-auth-branding__image--owner {
  max-height: 54px;
  object-fit: contain;
}

.flightlog-auth-branding__placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.flightlog-auth-branding__placeholder small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.flightlog-auth-branding__placeholder-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.flightlog-auth-form__group {
  margin-bottom: 16px;
}

.flightlog-auth-form__group > label {
  display: block;
  margin-bottom: 6px;
  color: #355068;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.flightlog-auth-form__input {
  position: relative;
}

.flightlog-auth-form__input > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f879b;
  font-size: 15px;
}

.flightlog-auth-form__input .form-control {
  min-height: 46px;
  padding: 11px 14px 11px 42px;
  border-radius: 14px;
  border: 1px solid #c9d8e6;
  background: #ffffff;
  box-shadow: none;
}

.flightlog-auth-form__input .form-control:focus {
  border-color: #7ba7c7;
  box-shadow: 0 0 0 3px rgba(15, 90, 136, 0.14);
}

.flightlog-auth-form__submit {
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

.flightlog-auth-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.flightlog-auth-form__secondary,
.flightlog-auth-form__submit-inline {
  flex: 1 1 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.flightlog-auth-card__footer {
  margin-top: 18px;
  text-align: center;
}

.flightlog-auth-card__footer a {
  color: #0f5a88;
  font-weight: 700;
}

@media (max-width: 860px) {
  .flightlog-auth-card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .flightlog-auth-card__hero,
  .flightlog-auth-card__panel {
    padding: 28px 24px;
  }

  .flightlog-auth-form__actions {
    flex-direction: column;
  }

  .flightlog-auth-card__title {
    font-size: 28px;
  }

  .flightlog-auth-card__subtitle {
    font-size: 18px;
  }
}

/* DataTables sort-arrow fix: dataTables.bootstrap.min.css renders sort icons
   with the 'Glyphicons Halflings' font (Bootstrap 3), which this app no
   longer loads (FontAwesome-only icon stack) — the icon space was reserved
   but the glyph itself never painted. Re-point the same :after rules at the
   FontAwesome glyphs already loaded everywhere else in the app. */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  font-family: FontAwesome !important;
}
table.dataTable thead .sorting:after {
  content: "\f0dc" !important;
}
table.dataTable thead .sorting_asc:after {
  content: "\f0de" !important;
}
table.dataTable thead .sorting_desc:after {
  content: "\f0dd" !important;
}

