/*!
 * FlyTools — <project/module-name>
 * @version    1.0.1
 * @file       <style.css>
 * @link       https://flytools.com.br
 * @copyright  © 2025 FlyTools (flytools.com.br)
 * @license    Proprietary — All rights reserved.
 * @summary    <brief description of what this file does>
 *
 * Este código é de propriedade da FlyTools e não pode ser copiado,
 * modificado ou distribuído sem autorização expressa.
 * Última atualização: 2025-09-01
 */

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/*
 * COLORS
 */
:root {
  --primary-color: #112c51;
  --secondary-color: #0368b1;
  --text-dark: #112c51;
  --text-light: #f1f1f1;
  --text-muted: #666;
  --text-gray: #6c757d;
  --border-light: #e9ecef;
  --bg-light: #f1f1f1;
  --bg-dark: #212529;
  --bg-gradient-header: linear-gradient(to right, var(--primary-color), var(--text-muted), var(--text-muted));
  --filter-purple: rgba(10, 24, 61, 0.5);
}

/*
 * GERAL
 */
body, html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

body > section:not(.submenu) {
  flex: 1 0 auto;
}

p {
  font-size: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
}

.btn {
  background: var(--primary-color);
}

.btn:hover, .btn:active, .btn:hover:active {
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn-light {
  background: white;
}

.bg-primary {
  background: var(--primary-color) !important;
}

.bg-secondary, .btn-secondary {
  background: var(--secondary-color) !important;
}

.progress-bar {
  background: var(--secondary-color);
}

/*
 * HEADER
 */
header {
  background: var(--primary-color);
  border-bottom: 2px solid transparent;
  border-image: var(--bg-gradient-header);
  border-image-slice: 1;
}

header + * {
  margin-top: 80px;
}

header nav {
  margin: 5px 0px;
}

.navbar-nav .btn-header {
  border: none;
  border-radius: 28px;
  background-color: rgba(0, 108, 182, 0.25);
  font-size: 18px;
  font-weight: 400;
  padding: 0.6rem 1rem;
}

.navbar-nav * {
  color: var(--text-light);
}

.navbar-nav .btn-header svg {
  margin-right: 5px;
}

.navbar-nav .btn-header:hover, .navbar-nav .btn-header:active, .navbar-nav .btn-header:hover:active {
  background-color: rgba(0, 108, 182, 0.5);
}

.navbar-nav .btn-header:not(.dropdown-toggle) {
  padding: 0.42rem 1.3rem 0.42rem 1rem;
}

.navbar-nav .btn-header.dropdown-toggle {
  padding: 0.42rem 1.8rem 0.42rem 1rem;
}

.navbar-nav .clock {
  color: var(--text-light);
  font-size: 18px;
  font-weight: 100;
  padding: 0.375rem 0px;
}

.dropdown-menu {
  width: 100%;
  border-radius: 0px 0px 14px 14px;
  background: var(--primary-color);
}

.dropdown-menu li {
  background: var(--primary-color);
}

.dropdown-menu li a {
  padding: 0.75rem 1.3rem;
}

.dropdown-menu li a:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

/*
 * SUBMENU / PAGE TITLE
 */
section.submenu nav {
  padding: 40px 0px;
  border-radius: 0px 0px 28px 28px;
  background: var(--primary-color);
  background-image: url(../images/banner.png);
  background-position: center;
  background-repeat: repeat-x;
  background-size: contain;
  background-blend-mode: darken;
}

.submenu h1 {
  display: block;
  color: var(--text-light);
  width: 100%;
  margin: 0px !important;
  margin-top: 12px !important;
}

.submenu .breadcrumb {
  margin: 0px !important;
}

.submenu .breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
}

.submenu .breadcrumb a:hover {
  color: var(--text-light);
}

.submenu .breadcrumb .active {
  color: var(--text-muted);
}

@media (max-width: 991.98px) {
  section.submenu nav {
    padding: 0px;
    margin-bottom: -20px !important;
  }
}

/*
 * AIRLINE STATS / USER STATS
 */
.card-stat {
  border: none;
  border-radius: 1rem;
  min-height: 120px;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

.card-stat * {
  color: var(--text-light);
}

.bg-overlay {
  background-color: var(--primary-color);
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url(../images/banner.png);
  background-position: center;
  background-repeat: repeat-x;
  background-size: contain;
  background-blend-mode: darken;
}

@media (max-width: 991.98px) {
  .card-stat .card-title {
    font-size: 20px !important;
  }
}

/*
 * MAIN BANNER
 */
.main-banner {
  border: none;
  border-radius: 1.5rem;
  height: 400px;
  overflow: hidden;
  color: var(--text-light);
}

.main-banner * {
  color: var(--text-light);
}

.main-banner a {
  color: var(--text-dark);
}

.main-banner .col-lg-6:first-child {
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
}

div:has(>.card-stat) {
  border: 3px solid var(--primary-color);
  padding: 2px;
  background: transparent;
  border-radius: 1rem;
}

.card-stat {
  background: var(--secondary-color);
  padding: none !important;
}

.card-stat div h5 {
  font-size: 2rem !important;
  font-weight: 100 !important;
}

.main-banner-content {
  background: var(--secondary-color);
}

.main-banner-image {
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  min-height: 400px;
}

@media (max-width: 991.98px) {
  .main-banner .col-lg-6:first-child {
    border-radius: 1.5rem 1.5rem 0 0 !important;
  }
  .main-banner-image {
    border-radius: 0 0 1.5rem 1.5rem !important;
  }
  .main-banner {
    height: 600px;
  }
}

/*
 * CARDS STATS COM EFEITO GLASS
 */
.stage {
  position: relative;
  overflow: hidden;
}

.stage .content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

.glass {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)),
    rgba(255, 255, 255, .02);
  border-right: 1px solid rgba(255, 255, 255, .15);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 5px 12px rgba(255, 255, 255, .05);
  backdrop-filter: blur(1px) saturate(110%);
  -webkit-backdrop-filter: blur(1px) saturate(110%);
  border-radius: inherit;
  pointer-events: none;
  transition: width 10s linear;
  z-index: 999;
}

/*
 * ANIMAÇÃO DO MAIN BANNER
 */
.main-banner-content p,
.main-banner-content h1,
.main-banner-content a.btn {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in h1 {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animate-in p.mb-1 {
  transition-delay: 0.0s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animate-in p.lead {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animate-in a.btn {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/*
 * FOOTER
 */
.footer {
  position: static;
  width: 100%;
}

.footer-corner-element {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 100px;
  background-color: #0d2a4d;
  color: white;
  cursor: pointer;
  z-index: 999;
}

.footer-corner-element-icon {
  position: absolute;
  bottom: 0px;
  right: 10px;
  cursor: pointer;
}

.footer-corner-element-icon i {
  position: absolute;
  bottom: -10px;
  right: -10px;
  color: var(--text-light) !important;
  font-size: 2.5rem;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .footer-latam {
    padding-right: 20px;
  }
}

.footer a {
  color: var(--text-dark);
  text-decoration: none;
}

.footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  z-index: 99;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  display: none;
}

.back-to-top i {
  color: white !important;
}

/*
 * LOGO CAROUSEL
 */
.logo-carousel img {
  max-height: 100px;
  object-fit: contain;
  padding: 1rem;
  filter: brightness(0);
  transition: filter 0.3s;
}

.logo-carousel img:hover {
  filter: none;
}

/*
 * TABLES
 */
.responsive-table {
  overflow-x: auto;
  width: 100%;
}

.responsive-table thead *{
  text-align: center !important;
}

.responsive-table::-webkit-scrollbar {
  height: 8px;
}

.responsive-table::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.responsive-table::-webkit-scrollbar-track {
  background-color: var(--bg-light);
}

table {
  margin: 0px !important;
}

.table * {
  border: none;
}

.table thead {
  background: var(--primary-color);
}

.table-striped {
  --bs-table-striped-bg: var(--bg-light);
}

table th {
  color: var(--text-light);
  font-weight: 400;
  font-size: 20px;
}

table * {
  color: black;
  text-decoration: none;
  font-size: 18px;
}

table a {
  font-weight: 600;
}

table a:hover {
  color: var(--secondary-color);
}

.bold {
  font-weight: bold;
}

table img {
  height: 32px;
  width: 32px;
  border-radius: 100%;
  margin: -5px 0px !important;
  object-fit: cover;
}

img.rounded {
  border: 1px solid #cccccc;
  height: 22px;
  width: 22px;
  border-radius: 100% !important;
}

table i {
  font-size: 20px;
  color: var(--primary-color);
}

.table-rounded {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

.table-rounded thead th:first-child {
  border-top-left-radius: 0.5rem;
}

.table-rounded thead th:last-child {
  border-top-right-radius: 0.5rem;
}

/*
 * DASHBOARD SIDEBAR
 */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: var(--primary-color);
  color: var(--text-light);
  transition: all 0.3s;
  background-image: url(../images/banner.png);
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  background-blend-mode: darken;
  padding-top: 88px;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 9;
}

#sidebar ~ #content {
  margin-left: 200px;
}

@media (max-width: 991.98px) {
  #sidebar ~ #content {
    margin-left: 0;
  }
}

#sidebar.active ~ #content {
  margin-left: 0;
}

#sidebar .h6 {
  color: var(--text-light);
}

#sidebar.active {
  margin-left: -200px;
}

.custom-menu {
  position: fixed;
  top: 15px;
  left: 10px;
  z-index: 10;
  background: var(--primary-color);
}

.custom-menu button {
  background: var(--primary-color);
  border: none;
  padding: 5px 10px;
}

.custom-menu button:hover {
  background: var(--secondary-color);
}

#sidebar h1 {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 20px;
}

#sidebar h1 .logo {
  color: #fff;
  display: block;
  padding: 10px 30px;
  background: var(--primary-color);
}

#sidebar ul.components {
  padding: 0;
}

#sidebar ul li {
  font-size: 16px;
}

#sidebar ul li > ul {
  margin-left: 10px;
}

#sidebar ul li > ul li {
  font-size: 14px;
}

#sidebar ul li a {
  padding: 10px 20px;
  display: block;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar ul li a:hover {
  color: #fff;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
}

#sidebar ul li.active > a {
  background: transparent;
  color: #fff;
}

#sidebar ul li.active > a:hover {
  background: var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
}

@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    z-index: 9;
    left: 0;
    top: 0;
    margin-left: -200px;
    margin-top: 0px;
    padding-top: 70px;
    height: 100%;
  }
  #sidebar.active {
    margin-left: 0;
  }
}

#sidebar .custom-menu {
  display: inline-block;
  position: absolute;
  top: 20px;
  right: 0;
  margin-right: -35px;
  transition: 0.3s;
}

#sidebar .custom-menu .btn.btn-primary {
  background: var(--primary-color);
  border-color: transparent;
  position: relative;
  color: var(--text-light);
  padding: 0px;
  width: 30px;
  height: 30px;
}

.bg-wrap {
  width: 100%;
  position: relative;
  z-index: 0;
}

.bg-wrap:after {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  background: #000;
  opacity: .3;
}

.bg-wrap .user-logo .img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
  margin-bottom: 10px;
  background-position: center;
  background-size: contain;
  background-color: var(--secondary-color);
}

.bg-wrap .user-logo h3 {
  color: #fff;
  font-size: 18px;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 22px;
  right: 12px;
  transform: translateY(-50%);
}

@media (max-width: 991.98px) {
  #sidebarCollapse span {
    display: none;
  }
}

/*
 * DASHBOARD CONTENT
 */
#content {
  width: 100%;
  padding: 0;
  min-height: 100vh;
  transition: all 0.3s;
}

/*
 * LOGIN CONTENT
 */
.login-container {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -88px;
}

.login-container .left-panel {
  background:
    linear-gradient(to right, var(--filter-purple), var(--filter-purple)),
    url('../images/login.jpeg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px;
  min-height: 100vh;
  margin-left: -12px;
  position: relative;
}

.login-container .left-panel .content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100%;
}

.login-container .left-panel h1 {
  color: white;
}

.login-container .right-panel {
  background-color: white;
  padding: 40px 20px 40px 40px;
  margin-top: 180px;
  border-radius: 8px;
  height: calc(100vh - 200px) !important;
  overflow-y: auto;
}

@media (max-width: 991.98px) {
  .login-container .right-panel {
    padding-top: 0px;
    height: auto !important;
  }
}

.login-container .btn-login:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.login-container .true-login-logo {
  width: 150px;
  margin-bottom: 30px;
}

/*
 * ANIMAÇÃO DE CARREGAMENTO DE NÚMEROS
 */
.number-load {
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  min-width: 3ch;
  text-align: right;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-variant-numeric: tabular-nums;
  -moz-font-feature-settings: "tnum";
  -webkit-font-feature-settings: "tnum";
  font-feature-settings: "tnum";
}

.number-load.sm {
  font-size: 1rem;
}

.number-load.md {
  font-size: 2rem;
}

.number-load.lg {
  font-size: 3rem;
}

.number-load[data-loading="true"] {
  filter: blur(0.3px) saturate(1.05);
  transition: filter 200ms ease;
}

/*
 * PÁGINA STAFF
 */
.pilot-profile {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pilot-profile:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pilot-profile a {
  text-decoration: none;
  color: var(--text-dark);
}

.pilot-profile img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f8f9fa;
  margin-bottom: 1rem;
  margin: 0 auto;
}

.pilot-profile .pilot-avatar {
  font-size: 140px;
  color: #ccc;
  margin-bottom: 1rem;
}

.pilot-profile h4 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pilot-profile h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.pilot-profile .contact {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.pilot-profile .description {
  font-size: 0.85rem;
  color: #666;
}

/*
 * PÁGINA BASE
 */
.base-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-light);
}

.base-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.base-card, .base-card .card-body {
  padding: 0px !important;
  margin: 0px !important;
}

.base-card .rank-image {
  height: 20px;
  width: auto;
}

/*
 * PÁGINA RANKS
 */
.rank-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-light);
}

.rank-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.rank-card .rank-image {
  height: 20px;
  width: auto;
}

.rank-card .card-body {
  margin-bottom: -10px !important;
}

#scrollspy {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  padding: 0.5rem 0;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  z-index: 1020;
}

@media screen and (max-height: 910px) {
  #scrollspy {
    position: relative;
    top: 0;
    transform: none; /* remove o deslocamento vertical */
  }
}

#scrollspy .nav-link {
  color: #444;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

#scrollspy .nav-link:hover {
  background: rgba(25, 118, 210, 0.08);
  color: var(--primary-color);
}

#scrollspy .nav-link.active {
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
}

#scrollspy .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.4);
}

.scrollspy-example {
  scroll-behavior: smooth;
  padding-right: 1rem;
  overflow-y: auto;
}

:where(h1, h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: 100px;
}

/*
 * PÁGINA DE INFO DE VOOS, PILOTOS E BASES
 */
.flight-info .card, .pilot-info .card, .base-info .card {
  border-radius: 0;
}

.flight-info .header-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  background-color: var(--primary-color);
}

.flight-info .header-image img, .pilot-info .header-image img, .base-info .header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-info .header-image {
  position: relative;
  overflow: hidden;
  height: 300px;
  width: 300px;
  background-color: var(--primary-color);
  border-radius: 100%;
  margin: 0 auto;
  border: 5px solid var(--primary-color);
}

.flight-info .header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  color: white;
}

.flight-info .header-overlay .dot-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.flight-info .header-overlay .dot-indicators .dot {
  height: 8px;
  width: 8px;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
}

.flight-info .header-overlay .dot-indicators .dot.active {
  background-color: white;
}

.flight-info .info-row, .pilot-info .info-row, .base-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 991.98px) {
  .flight-info .info-row,
  .pilot-info .info-row,
  .base-info .info-row {
    flex-wrap: wrap; /* permite quebrar em várias linhas */
  }

  .flight-info .info-row > *,
  .pilot-info .info-row > *,
  .base-info .info-row > * {
    flex: 1 1 50%;   /* ocupa 50% da linha → máximo 2 itens por linha */
    max-width: 50%;
  }
}

.flight-info .info-row:last-child, .pilot-info .info-row:last-child, .base-info .info-row:last-child {
  border-bottom: none;
}

.flight-info .info-row .label, .pilot-info .info-row .label, .base-info .info-row .label {
  color: var(--text-gray);
  font-size: 0.85rem;
}

.flight-info .info-row .label *, .pilot-info .info-row .label *, .base-info .info-row .label * {
  color: var(--text-gray);
  font-size: 0.85rem !important;
}

.flight-info .info-row .value, .pilot-info .info-row .value, .base-info .info-row .value {
  font-weight: 500;
}

.flight-info .section-header, .pilot-info .section-header, .base-info .section-header {
  background-color: var(--primary-color);
  padding: 0.75rem 1rem;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.flight-info .section-content, .pilot-info .section-content, .base-info .section-content {
  padding: 0.5rem 1rem;
}

.flight-info .icon-circle {
  background-color: #0d6efd;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
}

.flight-info .text-muted-icon {
  color: var(--primary-color);
  margin-left: 5px;
}

.flight-info .text-orange {
  color: var(--secondary-color);
}

.flight-info .small-text {
  font-size: 0.8rem;
}

.flight-info .flight-route-card {
  background-color: #e9e9e9;
  padding: 1.5rem;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}


.flight-info .airport-info {
  text-align: center;
  flex: 1;
}

.flight-info .airport-code {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

@media (max-width: 1200px) {
  .flight-info .airport-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
  }
}

.weather-data * {
  font-size: 14px !important;
  line-height: 8px !important;
}

.flight-info .airport-name {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.flight-info .airport-timezone {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.flight-info .airplane-icon-container {
  background-color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
  flex-shrink: 0;
  padding: 5px;
}

.flight-info .airplane-icon {
  color: var(--secondary-color);
  font-size: 2rem;
}

.flight-info .pass {
  color: green;
}

.flight-info .fail {
}

.flightlog {
  max-height: 400px;
  overflow-y: auto;
}

/*
 * PÁGINA STAFF
 */
.staff-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-light);
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.staff-card .profile-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.staff-card .card-body {
  margin-bottom: -10px !important;
}

/*
 * PÁGINA ROSTER
 */
.pilot-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-light);
}

.pilot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pilot-card .profile-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.pilot-card .rank-image {
  height: 20px;
  width: auto;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 2px solid white;
}

/*
 * CARD AWARD
 */
.award-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 1px solid var(--border-light);
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.award-card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.award-card.h-100 {
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  padding-bottom: 40px;
}

.award-card .card-body {
  flex: 1 1 auto !important;
}

.award-card .card-footer {
  position: absolute;
  bottom: 0px;
  margin-top: auto !important;
  width: 100%;
}

/*
 * CARD PROFILE
 */
.card-profile {
  background-color: var(--bg-dark) !important;
  border-radius: 0.5rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-profile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.profile-pic {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(100%);
  border: 2px solid #495057;
}

.badge-custom-orange {
  background-color: #ff6f00;
  color: #000;
  font-weight: bold;
  padding: 0.4em 0.8em;
}

/*
 * CAMPO DE SENHA
 */
.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

/* Estilos para o Loader */
#loader {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 44, 81, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  margin-left: -30px;
  border: 3px solid var(--primary-color);
  border-top: 8px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*
 * MAP
 */
.map-container {
  width: 100%;
  height: 100%;
  margin-top: 0px;
  padding-top: 8px;
}

#page-header {
  position: absolute;
  top: 0px;
  width: 100%;
  margin: 0 auto;
}

#page-header #loading {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin-top: 98px;
  z-index: 999999 !important;
}

#page-header #loading span {
  color: var(--text-light);
  background: #25293c;
  padding: 2px 10px;
  border-radius: 10px;
  animation: blinker 3s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#loading.hidden {
  display: none !important;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #070c37;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #070c37;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #070c37;
}

/* FLOATING CONTROLS */
* {
  font-family: sans-serif;
}

#mapbox {
  width: 100%;
  height: 100%;
}

#map-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999999 !important;
  position: absolute;
  right: 30px;
  top: 98px;
}

#map-controls button {
  background-color: #070c37;
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  height: 40px;
  width: 40px;
  box-shadow: 0 2px 4px darkslategray;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 100%;
  margin-bottom: 10px;
}

#map-controls button svg {
  margin-top: -12.5px;
}

#map-controls button:hover {
  background-color: #2f3249;
}

/* DETALHES DO VOO */
#map-details {
  background: var(--primary-color);
  width: 350px;
  height: calc(100% - 208px);
  position: absolute;
  left: 10px;
  top: 98px;
  border-radius: 10px !important;
  transition: 0.5s cubic-bezier(.36,-0.01,0,.77);
  z-index: 999999;
}

#map-details * {
  overflow-x: hidden !important;
  color: var(--text-light);
}

@media only screen and (min-width: 600px) {
  #map-controls {
    display: none;
  }
  #map-details {
    width: calc(100% - 60px);
  }
}

@media only screen and (min-width: 768px) {
  #map-controls {
    display: flex;
  }
  #map-details {
    width: 400px;
  }
}

@media only screen and (min-width: 1200px) {
  #map-controls {
    display: flex;
  }
  #map-details {
    width: 350px;
  }
}

#map-details.hidden {
  display: block;
  margin-left: -500px;
}

#map-details header {
  height: 55px;
  padding: 10px 10px 0 10px;
  overflow: none;
}

#map-details header #info {
  color: white;
}

#map-details header #info #flight_number {
  font-size: 18px;
  font-weight: bold;
}

#map-details header #info #fleet_type {
  color: #ccc;
  background: #2f3349 !important;
  border-radius: 25%;
  font-size: 14px;
  font-weight: normal;
  padding: 3px;
  margin-left: 5px;
}

#map-details header #info #airline_name {
  color: #aaa;
  font-size: 14px;
  display: block;
  margin-top: -5px;
}

#map-details header button {
  background: none;
  width: 25px;
  height: 35px;
  padding: 5px;
  color: white;
  border: none;
  font-size: 20px;
  box-shadow: 0 1px 2px darkslategray;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 100%;
  position: absolute;
  right: 5px;
  top: 5px;
  overflow: hidden;
}

#map-details header button svg {
  margin-top: -5px;
}

#map-details main {
  overflow-y: auto;
  max-height: calc(100vh - 168px);
  border-radius: 0 0 10px 10px;
  margin-top: 0px;
}

#map-details main #aircraft-image-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

#map-details main #aircraft-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* INFORMAÇÕES DO VOO */
#flight-info {
  color: white;
  position: relative;
}

#flight-info .box {
  position: relative;
  height: auto;
}

#flight-info table {
  width: 100%;
  background: var(--primary-color);
  padding: none;
  border-collapse: collapse;
}

#flight-info td {
  border: 2px solid rgba(3, 104, 177, 0.25);
  padding: 10px 5px;
}

#flight-info span {
  display: block;
  text-align: center;
  font-size: 12px;
}

#flight-info span.icao {
  font-size: 28px;
}

#flight-info span.name {
  font-size: 12px;
}

#flight-info span.iata {
  font-size: 14px;
  display: none;
}

#flight-info-aircraft {
  width: 40px;
  height: 40px;
  background-color: #070c37;
  border-radius: 100%;
  position: absolute;
  left: calc(50% - 20px);
  margin-top: 20px;
  z-index: 9999;
  border: 2px solid #2f3349;
  padding: 5px;
  overflow: hidden;
}

.scheduled {
  text-align: center;
}

.scheduled span {
  display: inline !important;
}

#flight-info .text-left {
  text-align: left;
}

#flight-info strong {
  font-weight: bold;
  font-size: 16px !important;
}

#flight-info #track_box {
  width: 100%;
  height: 3px;
  background: #aaa;
  margin-bottom: 25px;
  overflow: visible !important;
}

#flight-info #track {
  height: 100%;
  width: 30%;
  background: var(--secondary-color);
}

#flight-info #track_image {
  width: 25px;
  height: 25px;
  margin-left: 30%;
  margin-top: -16px;
  float: left;
  overflow: hidden;
}

#distance_from_departure {
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
  position: absolute;
}

#distance_to_arrival {
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
  position: absolute;
  right: 10px;
}

#flight-info tr.header, #flight-info tr.header td {
  background: var(--secondary-color);
  border: none;
}

#flight-info tr.header svg {
  width: 30px;
  display: inline-block;
  margin-top: -10px;
  margin-bottom: -12px;
}

#flight-info tr.header span {
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  height: 30px;
  text-align: left;
  margin-left: 10px;
  margin-bottom: -15px;
}

#aircraft-icon {
  width: 30px;
  height: 100%;
  vertical-align: top;
}

#aircraft-icon svg {
  width: 100%;
}

/* MAPBOX */
.mapboxgl-popup-content {
  background: #25293c !important;
  padding: 10px;
  color: white;
  font-size: 16px;
  text-align: center;
  border-radius: 10px;
}

.mapboxgl-popup-content small {
  font-size: 12px;
}

.mapboxgl-popup-tip {
  border-top-color: #25293c;
}

.mapboxgl-popup-content-wrapper {
  width: 89px;
  height: max-content;
  border: 2px solid #BF0404;
  background-color: rgba(243, 207, 207, 0.7);
  border-radius: 18px;
  margin-bottom: 3px;
}

/*
 * TABS
 */
.nav-pills.downloads {
  border-bottom: 1px solid var(--primary-color);
}

.nav-pills.downloads .nav-link {
  background: none;
  color: var(--primary-color);
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  border-bottom: 1px solid white;
}

.nav-pills.downloads .nav-link.active {
  background: rgba(17, 44, 81, 0.1);
  color: var(--primary-color);
  font-weight: bolder;
  font-size: 18px;
  border: 1px solid var(--primary-color);
  border-bottom: 2px solid white;
  margin-bottom: -1px;
  border-radius: 5px 5px 0px 0px;
}

/*
 * CKEDITOR
 */
#editor-container {
  width: 80%;
  max-width: 900px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ck-editor__editable {
  min-height: 300px;
}

.metar-table {
  max-height: 400px;
  overflow-y: auto;
}

.metar-table * {
  font-size: 12px;
}


select.filter-input{
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

select.filter-input.select-like {
  cursor: pointer;
  user-select: none;
}

select.filter-input:focus{
  outline: 2px solid rgba(59,130,246,0.25);
  outline-offset: 2px;
  border-color: #2563eb;
}