#page-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

#content-wrap {
  flex: 1;
}

#footer {
  bottom: 0;
  width: 100%;
}

.navbar {
  height: auto;
  white-space: nowrap;
  width: 100vw;
}

/* TODO enable later
.navbar .container {


    max-width: 100%;  //Allows the container to expand up to full width
    margin-left: auto;
    margin-right: auto;
}*/


html[dir="ltr"] * {
  direction: ltr;
}

html[dir="rtl"] * {
  direction: rtl;
  text-align: right;
}

.ignore-rtl {
  direction: ltr !important;
  text-align: left !important;
}

.align-top {
  position: absolute;
  top: 0;
}

.align-center-right {
  position: absolute;
  right: 0;
  top: 50%;
}

.align-center-left {
  position: absolute;
  left: 0;
  top: 50%;
}

.align-bottom {
  position: absolute;
  bottom: 0;
}

.btn-group>label:first-of-type {
  border-top-left-radius: 0.25rem !important;
  border-bottom-left-radius: 0.25rem !important;
}

html[dir="rtl"] input.form-check-input {
  position: relative;
  margin-left: 0px;
}

html[dir="rtl"] label.form-check-label {
  display: inline;
}

.margin-auto-parent {
  width: 100%;
  display: flex;
}

.margin-center {
  margin: 0 auto;
}

#pdf-canvas {
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.384);
  width: 100%;
}

.fixed-shadow-canvas {
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.384);
  width: 100%;
}

.shadow-canvas {
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.384);
}

.hidden {
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}

input[data-autocompleted] {
  background-color: transparent !important;
}

.btn-tooltip {
  position: absolute !important;
  display: none;
  padding: 7px;
  background-color: rgba(0, 29, 41, 0.9);
  border-radius: 3px;
  font-size: 12px;
  color: whitesmoke;
  animation: fadeup 0.15s linear;
  z-index: 10000;
}

@keyframes fadeup {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modern UI Enhancements */

/* Card Styling */
.card, .bg-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .bg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Button Styling */
.btn-primary {
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Navbar Glassmorphism */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Dark mode support for glassmorphism */
[data-theme="dark"] .navbar {
    background-color: rgba(33, 37, 41, 0.9) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Input Fields */
.form-control, .form-select {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.1) !important;
    border-color: var(--bs-primary);
}

/* Loading Spinner Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
