:root {
  --primary-color: #1e90ff;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --error-color: #e74c3c;
  --nav-bg: #fff;
  --nav-active: #1e90ff;
  --nav-button-bg: transparent;
  --nav-button-hover: #f0f0f0;
  --sidebar-bg: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

html, body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, Roboto, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  margin:0;
  height:100%;
  /* overflow:auto; */
  /* overflow:hidden; */
  overflow-y:auto;
  overflow-x:hidden;
  /* display:flex; */
  /*overscroll-behavior: none; /* prevents body scroll */
}
#app {
  height:calc(100vh - 70px);
  margin-top:70px;
  width:100vw;
  /* overflow:auto; */
  /*Skeleton safe*/
  opacity: 0;
  transition: opacity 0.25s ease;
}



.hidden{display:none;}
ul {
  list-style: none;
}



.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  min-width: 200px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.notification-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.notification-item:hover {
  background: var(--bg-color);
}






.message {
  padding: 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message.error {
  background: var(--error-color);
  color: #fff;
}


/*holds all comments*/
.comments-container{
  display:block;
  padding:4px;
}
/*foreach row of comments*/
.comment-row{
  display:block;
  padding-top:5px;
  padding-bottom:5px;
}
.individual-comment-container {
  padding:10px 10px 5px 10px;
  border-radius:6px;
  background-color:rgba(0,0,0,0.05);
}
.individual-comment-container ol {
  display:flex;
  gap:5px;
  list-style:none;
  margin:0;
  padding:0;
}
.comment-avatar {
  display:block;
  
}
.comment-avatar img {
  border-radius: 50%;
  position:relative;
  height:50px;
  width:50px;
}
.comment {
  width:100%;
}
.comment-name-row {
  display:flex;
  flex: 1 1;
  justify-content: space-between;
  padding-bottom:5px;
}
.commenter-name{
  text-decoration:none;
  cursor:pointer;
  color: #3d3d3d;
  font-size:14px;
}
.commenter-name:hover {
  text-decoration: none;
  cursor: pointer;
  color: rgb(1, 80, 145);
}
.comment-manage{
  align-items:center;
}
.comment-text-container{
  display:flex;
}
.comment-text {
  white-space:break-spaces;
  font-size:small;
}
.comment-time{
  white-space:nowrap;
  margin-left:auto;
}
.comment-icon{
  font-size:18px;
  cursor: pointer;
  padding-left:5px;
  color:#666;
}
.comment-icon:hover{
  color:rgb(193, 33, 33);
}
.comment-icon:active{
  color:red;
}
.icon-active {
  color:#28a745!important;
}
.icon-flagged {
  color:#ae2402!important;
}

.comment-badge {
  position:relative;
  top:-15px;
  left:15px;
  padding:2px 5px;
  background-color: #75cd1cc8;
  color:white;
  font-size:10px;
  font-weight:lighter;
  border-radius:8px;
  text-align:center;
}



/******************
*     SNACKBAR    *
*******************/

#snackbar-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* Base snackbar style */
.snackbar {
  min-width: 250px;
  max-width: 400px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(0);
}

.snackbar button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-left: 12px;
  opacity: 0.8;
}
.snackbar button:hover { opacity: 1; }

/* Snackbar types (light theme) */
.snackbar.success { background: #4caf50; color: #fff; }
.snackbar.info    { background: #2196f3; color: #fff; }
.snackbar.warning { background: #ff9800; color: #fff; }
.snackbar.alert,
.snackbar.error   { background: #f44336; color: #fff; }

/* Dark theme */
@media (prefers-color-scheme: dark) {
  .snackbar.success { background: #388e3c; color: #e0f2f1; }
  .snackbar.info    { background: #1976d2; color: #e3f2fd; }
  .snackbar.warning { background: #f57c00; color: #fff3e0; }
  .snackbar.alert,
  .snackbar.error   { background: #d32f2f; color: #ffebee; }
}

@media (max-width: 600px) {
  .comment-avatar img {
    border-radius: 50%;
    position:relative;
    height:30px;
    width:30px;
  }
  .commenter-name{
    text-decoration:none;
    cursor:pointer;
    color: #3d3d3d;
    font-size:0.8rem;
  }

  .comment-text {
    white-space:break-spaces;
    font-size:small;
  }
  .comment-time{
    display:none;
    white-space:nowrap;
    margin-left:auto;
  }
}

/*loading placeholder*/
/* Shared shimmer and base */
#skeleton {
  position: fixed;
  inset: 80px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: flex-start;
  background: #f3f3f3;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.skeleton-wrapper,
.skeleton-feed,
.skeleton-profile,
.skeleton-logbook,
.skeleton-activity {
  width: 100%;
  max-width: 1200px;
  opacity:0.9;
}
.skeleton-user-box {
  position: relative;
  overflow: hidden;
}

.skeleton-line,
.skeleton-header,
.skeleton-block,
.skeleton-avatar,
.skeleton-map,
.skeleton-info,
.skeleton-profile-header,
.skeleton-profile-stats,
.skeleton-profile-awards,
.skeleton-logbook,
.skeleton-chart {
  background: #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  width: 150px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Feed skeleton */
.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.skeleton-line {
  height: 25px;
  border-radius: 6px;
  margin: 8px 0;
}
.skeleton-lines {
  flex: 1;
}
.skeleton-line.short {
  width: 60%;
}
.skeleton-card{
  padding-bottom:50px!important;
}
.skeleton-block {
  height: 250px;
  border-radius: 8px;
  margin-top: 10px;
}
/* Activity skeleton */
.skeleton-activity {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skeleton-map {
  height: 50vh;
  border-radius: 12px;
}
.skeleton-info {
  height: 60px;
}
.skeleton-chart {
  height: 150px;
}
.skeleton-profile-header{
  height: 166px;
  border-radius: 7px;
  margin: 8px 20px;
}
.skeleton-profile-stats{
  height: 260px;
  border-radius: 6px;
  margin: 8px 20px;
}
.skeleton-profile-awards{
  height: 290px;
  border-radius: 6px;
  margin: 8px 20px;
}
.skeleton-logbook-content {
  height: 75vh;
  border-radius: 6px;
  margin: 8px 20px;
}

/*service worker banner*/
.update-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 9999;
  font-size: 0.95rem;
}
.update-banner button {
  background: #0a84ff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.update-banner button:hover {
  background: #006edc;
}

a {
  text-decoration:none;
  cursor:pointer;
  color: #035ede;
}
a:hover{
  color: rgb(209, 115, 6);
}

a:active{
  color: rgb(0, 50, 92);
}
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  /* Semi-transparent dark overlay to improve contrast */
  .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45); /* darkens light video */
    z-index: 2;
  }
  
  .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    color: #f1f1f1; /* softer than pure white */
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff; /* keep heading bright */
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e5e5e5; /* slightly dimmer than heading */
  }
  
/* Primary CTA button */
.btn.primary {
    background: linear-gradient(135deg, #007bff, #00b4ff);
    color: #fff;
    padding: 1rem 2.8rem;
    border-radius: 50px; /* pill-shaped */
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
  }
  
  .btn.primary:hover {
    background: linear-gradient(135deg, #0062cc, #0094cc);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.6);
  }
  
  /* Secondary login link */
  .btn.link {
    display: block;
    font-size: 0.95rem;
    color: #ddd;
    text-decoration: none;
    margin-top: 10px;
  }
  
  .btn.link:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  


  
  /* HOW IT WORKS SECTION */
  
/* Steps */
.how-it-works {
    background: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
  }
  
  .how-it-works h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: #222;
  }
  
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
  }
  
  .step {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .step:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  
  .step .icon {
    margin-bottom: 20px;
    color: #007bff; /* your accent color */
  }
  
  .step .icon i {
    font-size: 3rem;
  }
  


  /* Live Map teaser */
  .live-map {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #001f3f, #003f7f);
    color: #fff;
    gap: 40px;
  }
  
  .live-map-content {
    flex: 1 1 400px;
    text-align: center;
  }
  
  .live-map-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .live-map-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #e0e0e0;
  }
  
  .live-map-preview {
    flex: 1 1 400px;
    text-align: center;
  }
  
  .live-map-preview img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }
  .now-flying {
    margin-top: 40px;
    text-align: center;
  }
  
  .now-flying h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
  }
  
  .ticker {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
    scrollbar-width: none; /* Firefox */
  }
  
  .ticker::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  .pilot {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 30px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  
  .pilot:hover {
    transform: scale(1.05);
  }
  
  .pilot img {
    border-radius: 50%;
    height: 32px;
    width: 32px;
    object-fit: cover;
  }
  
  .pilot .flag {
    border-radius: 4px;
    width: 24px;
    height: 18px;
  }
  
  


  /*  BOTTOM */
  /* CTA strip */
.cta-strip {
    background: #111; /* dark contrast */
    color: #eee;
    text-align: center;
    padding: 80px 20px;
  }
  
  .cta-strip h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .cta-strip p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
  }
  
  /* Buttons reused from hero */
  .cta-strip .btn.primary {
    margin-bottom: 15px;
  }
  .cta-strip .btn.link {
    color: #aaa;
  }
  .cta-strip .btn.link:hover {
    color: #fff;
  }
  
  /* Footer */
  .site-footer {
    background: #000;
    color: #777;
    text-align: center;
    padding: 20px 15px;
    font-size: 0.9rem;
  }
  
  .site-footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
  }
  .site-footer a:hover {
    color: #fff;
    text-decoration: underline;
  }
  /*HOME BUNDLED*/
  .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  /* Semi-transparent dark overlay to improve contrast */
  .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45); /* darkens light video */
    z-index: 2;
  }
  
  .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    color: #f1f1f1; /* softer than pure white */
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff; /* keep heading bright */
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e5e5e5; /* slightly dimmer than heading */
  }
  
/* Primary CTA button */
.btn.primary {
    background: linear-gradient(135deg, #007bff, #00b4ff);
    color: #fff;
    padding: 1rem 2.8rem;
    border-radius: 50px; /* pill-shaped */
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
  }
  
  .btn.primary:hover {
    background: linear-gradient(135deg, #0062cc, #0094cc);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.6);
  }
  
  /* Secondary login link */
  .btn.link {
    display: block;
    font-size: 0.95rem;
    color: #ddd;
    text-decoration: none;
    margin-top: 10px;
  }
  
  .btn.link:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  


  
  /* HOW IT WORKS SECTION */
  
/* Steps */
.how-it-works {
    background: #f8f9fa;
    padding: 80px 20px;
    text-align: center;
  }
  
  .how-it-works h2 {
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: #222;
  }
  
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
  }
  
  .step {
    background: white;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .step:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  
  .step .icon {
    margin-bottom: 20px;
    color: #007bff; /* your accent color */
  }
  
  .step .icon i {
    font-size: 3rem;
  }
  


  /* Live Map teaser */
  .live-map {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #001f3f, #003f7f);
    color: #fff;
    gap: 40px;
  }
  
  .live-map-content {
    flex: 1 1 400px;
    text-align: center;
  }
  
  .live-map-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .live-map-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #e0e0e0;
  }
  
  .live-map-preview {
    flex: 1 1 400px;
    text-align: center;
  }
  
  .live-map-preview img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  }
  .now-flying {
    margin-top: 40px;
    text-align: center;
  }
  
  .now-flying h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
  }
  
  .ticker {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
    scrollbar-width: none; /* Firefox */
  }
  
  .ticker::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  .pilot {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 30px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  
  .pilot:hover {
    transform: scale(1.05);
  }
  
  .pilot img {
    border-radius: 50%;
    height: 32px;
    width: 32px;
    object-fit: cover;
  }
  
  .pilot .flag {
    border-radius: 4px;
    width: 24px;
    height: 18px;
  }
  
  


  /*  BOTTOM */
  /* CTA strip */
.cta-strip {
    background: #111; /* dark contrast */
    color: #eee;
    text-align: center;
    padding: 80px 20px;
  }
  
  .cta-strip h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  .cta-strip p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
  }
  
  /* Buttons reused from hero */
  .cta-strip .btn.primary {
    margin-bottom: 15px;
  }
  .cta-strip .btn.link {
    color: #aaa;
  }
  .cta-strip .btn.link:hover {
    color: #fff;
  }
  
  /* Footer */
  .site-footer {
    background: #000;
    color: #777;
    text-align: center;
    padding: 20px 15px;
    font-size: 0.9rem;
  }
  
  .site-footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
  }
  .site-footer a:hover {
    color: #fff;
    text-decoration: underline;
  }
  

  /*REPORT MODAL*/
  /* Modal container (hidden by default) */
.fslb-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
  justify-content: center;
  align-items: center;
  z-index:999;
}

/* Modal content box */
.fslb-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-height:65vh;
}

/* Close button */
.fslb-modal-close {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.fslb-modal-close:hover {
  color: red;
}

.fslb-quote-comment {
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.6;
  margin: 20px 0;
  padding: 15px 20px;
  color: #333;
  border-left: 5px solid #5a9;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.fslb-quote-comment::before {
  content: '';
  font-size: 2em;
  color: #5a9;
  vertical-align: middle;
  line-height: 0;
  margin-right: 5px;
}
.fslb-quote-comment::after {
  content: '';
  font-size: 2em;
  color: #5a9;
  vertical-align: middle;
  line-height: 0;
  margin-right: 5px;
}
.fslb-quote-comment cite {
  display: block;
  margin-top: 10px;
  text-align: right;
  font-style: normal;
  color: #666;
  font-weight: bold;
  /*background-color:rgba(0,0,0,0.05);*/
}
/* Style for the label */
.dropdown-label {
  font-size: 1em;
  color: #333;
  display: block;
  margin-bottom: 8px;
}

/* Dropdown styling */
.dropdown {
  width: 100%;
  /* max-width: 300px; */
  padding: 10px;
  font-size: 1em;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23999' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 10px 10px;
  cursor: pointer;
  transition: border-color 0.3s;
}

  /* Style on focus and hover */
  .dropdown:hover, .dropdown:focus {
      border-color: #5a9;
      outline: none;
  }
  .btn-primary {
    width:100%;
    padding: 0.75rem;
    background: var(--accent, #007bff);
    border: none;
    border-radius: var(--radius, 8px);
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
    margin-top:20px;
  }
  
  .btn-primary:hover {
    background: var(--accent-hover, #0066d6);
  }
