body {
  font-size: .875rem;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */
 
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

/*Spacer for behind the top bar */
.sidebar-spacer {
    height: 60px;
    width: 100%;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 50px);
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    padding-top: 0;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .85rem;
  text-transform: uppercase;
}


#main-sidebar .card,
#main-sidebar .card-header,
#main-sidebar .card-body {
    background-color: transparent !important;
    border: none !important;
}

#main-sidebar .card-header {
    border-bottom: none !important;
}


/*
 * Content
 */

[role="main"] {
  padding-top: 5rem; /* Space for fixed navbar */
}

@media (min-width: 768px) {
  [role="main"] {
    padding-top: 48px; /* Space for fixed navbar */
  }
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.btn-toolbar .btn-lg {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

/* The '?' icons */
.icon-button svg {
    width: 28px;
    height: 28px;
    display: block;
}
#helpModal .modal-dialog {
    max-width: 700px;
}


/* Display Tab */

#display-tab-container .tab-content,
#chart-content {
    background-color: #f8f9fa;
    border: none;
}

#display-content .tab-pane,
#chart-content .tab-pane {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    margin-bottom: 1rem;
}


/* GitHub Icon Styling */
.github-icon {
    width: 24px;
    height: auto;
    fill: #24292f;
}

.github-link-style:hover .github-icon {
    fill: #007bff; 
}


/* Icon Button Styling */
.icon-button {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #17a2b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.icon-button:hover {
    background: #17a2b8;
    color: #fff;
}

/* Loading Spinner Styles */
.spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: 10px auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
    opacity: 0.3;
    animation: blink 1s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.hidden {
    display: none !important;
}

/* Display Container Styles */
.card-display-container {
  width: 600px;
  height: 620px;
  border: solid black;
  margin: 30px;
  top: 10px;
  left: 10px;
  z-index: 0;
}

.card-block-display {
  height: 92%;
}


 .display-freeform-container {
  display: grid;
}