/*
Copyright (c) 2022-2025 IO-Swiss Aero GmbH. All rights reserved.
Use of this source code is governed by the IO-Swiss Aero GmbH
License, that can be found in the LICENSE.md file.
*/

:root {
    --ioax-red: #DA291C;
    --ioax-red-hover: #B81E18;
    --ioax-blue: #0D6EFD;
    --ioax-blue-hover: #0B5ED7;
}

.btn-action {
  background-color: var(--ioax-blue);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  width: auto;             /* Ensure it adapts to label size */
  min-width: unset;        /* Prevent undesired defaults */
  display: inline-flex;    /* For icon + text alignment */
  align-items: center;
  justify-content: center;
}

/* Unified AX1 Button Style */
.btn-ax1 {
    background-color: var(--ioax-blue);         /* match Help button */
    color: #ffffff !important;
    font-family: "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;                /* match Help */
    padding: 8px 20px;                 /* match Help */
    border: none;
    border-radius: 6px;
    box-shadow: none;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
}

.btn-ax1:hover {
    background-color: var(--ioax-blue-hover);
    color: #ffffff !important;
    text-decoration: none !important;
}

.btn-ax1:disabled,
.btn-ax1[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-ax1-blue {
    background-color: #0D6EFD;
    border-radius: 6px;
    border: 2px solid #084298;   /* darker blue for better contrast */
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.4);  /* gives depth */
    color: white;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    vertical-align: middle;
    white-space: nowrap;
}

.btn-ax1-blue:hover,
.btn-ax1-blue:focus {
    background-color: #084298;
    border-color: #061d55;
    box-shadow: 0 3px 8px rgba(8, 66, 152, 0.6);
}

.btn-ax1-red {
    background-color: var(--ioax-red);
    color: white;
    border: none;
}

.btn-ax1-red:hover {
    background-color: var(--ioax-red-hover);
    color: white;
}

.emoji-button {
  align-items: center;
  background-color: #f8f9fa !important;
  border-radius: 0.5px;
  border: 1px solid #ced4da !important;
  color: #212529 !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  justify-content: center;
    line-height: 1;
  padding: 0.4rem 0.6rem;
  transition: background-color 0.2s ease-in-out;
}

.emoji-button:hover {
  background-color: #e2e6ea !important;
  cursor: pointer;
}

.emoji-button-group {
  display: flex;
  gap: 0.75rem; /* space between buttons */
}

/* Make dcc.Loading spinner big and centered */
.centered-spinner > .dash-spinner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 6rem !important;
    height: 6rem !important;
    z-index: 1500;
}

.chart-frame {
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 16px;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Keep the last chart from adding an extra gap at the bottom */
#charts-panel-body .chart-frame:last-child{
    margin-bottom:0;
}

#flight-data-panel-wrapper {
    cursor: pointer;
}

#flight-data-panel-wrapper:hover {
    background-color: #f8f9fa;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

