html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensure full viewport height */
}

/* Ensure all navbar links (including dropdown toggles) use the same color */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    color: #fff !important;
}

/* Login modal styling to match old UI with green border matching buttons */
.login-modal .modal-content {
  border: 6px solid var(--bs-success);
  border-radius: .5rem;
}

.login-modal .modal-body {
  padding: 1.5rem 1.5rem;
  background-color: #fff;
}

.login-modal .form-control {
  padding: .75rem 1rem;
}

.login-modal .btn-login {
  padding: .6rem 1rem;
}

/* Signup view container to match the screenshot with green border */
.signup-card {
  border: 6px solid var(--bs-success); /* same green as buttons */
  border-radius: .5rem;
  background-color: #fff;
}

/* Forgot password view container with the same green border */
.reset-card {
  border: 6px solid var(--bs-success);
  border-radius: .5rem;
  background-color: #fff;
}

/* Extra bottom padding for main content so it never crowds the footer */
main[role="main"] {
  padding-bottom: 2rem;
}

main.flex-grow-1 {
  flex: 1 0 auto; /* take remaining space above footer */
}

/* On narrow screens add a bit more room */
@media (max-width: 576px) {
  main[role="main"] {
    padding-bottom: 5rem;
  }
}

/* Ensure the register card has extra bottom space, especially on mobile */
.signup-card {
    margin-bottom: 3rem;
}

@media (max-width: 576px) {
    .signup-card {
        margin-bottom: 6rem;
    }
}

/* Optional: a little space above the footer on all pages */
.footer {
  margin-top: 1.5rem;
  flex-shrink: 0;
  /* Optional styling */
  /* position: static; */
}

/* Override absolute/fixed footer on tablets (iPad) and smaller */
@media (max-width: 1024px) {
  .footer {
    position: static !important;   /* take footer out of absolute positioning */
    left: auto; right: auto; bottom: auto; width: 100%;
  }

  /* legacy spacing for absolute footer is not needed when static */
  body {
    margin-bottom: 0;
  }

  /* add some breathing room above the footer on small screens */
  main[role="main"] {
    padding-bottom: 4rem;
  }
}

/* Tee Sheet container */
.teesheet-card {
  border: 6px solid var(--bs-success);
  border-radius: .5rem;
  background-color: #fff;
}

/* Status backgrounds - very light colors for readability */
.tee-status-open     { background-color: #eef9f0; } /* light green */
.tee-status-blocked  { background-color: #fdeeee; } /* light red */
.tee-status-online   { background-color: #fff8e6; } /* light yellow */
.tee-status-reserved { background-color: #eef4ff; } /* light blue */

/* Placeholder area styling */
.tee-results-placeholder {
  border: 2px dashed #ced4da;
  border-radius: .5rem;
  background: #f8f9fa;
}

@media (max-width: 576px) {
  /* Ensure controls have some breathing room on mobile */
  #teeSheetControls .form-label {
    margin-bottom: .35rem;
  }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Existing additions below (keep prior custom styles) */
.card.tee-dirty {
    outline: 2px solid #ffc107;
    outline-offset: -2px;
    position: relative;
}
.card.tee-dirty::after {
    content: 'Unsaved';
    position: absolute;
    top: .35rem;
    right: .5rem;
    background: #ffc107;
    color: #212529;
    font-size: .65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: .5px;
}

/* Status background classes */
.tee-status-open    { background-color: #f8fff9; }
.tee-status-blocked { background-color: #fdeeee;; }
.tee-status-online  { background-color: #e6f4ff; }
.tee-status-reserved{ background-color: #fff4e6; }

/* Light peach for hold status */
.tee-status-hold {
    background-color: #ffe5cc !important;
}
.text-peach {
    color: #e6954b !important;
}
/* Hide elements for search filtering */
.search-hidden {
    display: none !important;
}

.tee-updated-flash { animation: teeFlash 0.9s ease-out; }
@keyframes teeFlash {
  0%   { box-shadow: 0 0 0 0 rgba(0,150,0,0.6); }
  50%  { box-shadow: 0 0 8px 4px rgba(0,150,0,0.35); }
  100% { box-shadow: 0 0 0 0 rgba(0,150,0,0); }
}

/* Quill editor layout and spacing to prevent overlap */
.quill-block { margin-bottom: 1.5rem; }

.quill-editor {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .375rem;
  min-height: 260px;            /* ensure enough height */
  background-color: #fff;
}

/* Style Quill internals so borders stack neatly */
.quill-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .375rem .375rem 0 0;
}
.quill-editor .ql-container.ql-snow {
  border: 0;
  border-radius: 0 0 .375rem .375rem;
  min-height: 200px;            /* editor pane height */
  overflow: auto;               /* avoid content spilling into next section */
}

/* Course description block: make text slightly smaller than default */
.branding-description {
    font-size: 0.95rem; /* tweak base size */
    line-height: 1.4;
}

/* Optional: constrain width if needed */
.branding-block {
    max-width: 900px;
    margin: 0 auto;
}

/* Quill outputs semantic headings; scale them down for this area */
.branding-description h1 {
    font-size: 1.5rem;
}

.branding-description h2 {
    font-size: 1.35rem;
}

.branding-description h3 {
    font-size: 1.2rem;
}

.branding-description h4 {
    font-size: 1.1rem;
}

.branding-description h5 {
    font-size: 1rem;
}

.branding-description h6 {
    font-size: 0.95rem;
}

/* Paragraphs and lists slightly smaller too */
.branding-description p,
.branding-description li {
    font-size: 0.95rem;
}

/* Quill alignment classes still respected */
.branding-description .ql-align-center {
    text-align: center;
}

.branding-description .ql-align-right {
    text-align: right;
}

/* Branding component overrides */
.branding-logo {
    width:190px;
    height:190px;
    object-fit:contain; /* keep aspect ratio without cropping */
    display:block;
}

.branding-description {
    font-size:1.25rem; /* 25% larger than default 1rem */
    line-height:1.45;
}

/* Optional: scale down very large headings coming from editor so overall block stays balanced */
.branding-description h1 { font-size:1.75rem; }
.branding-description h2 { font-size:1.55rem; }
.branding-description h3 { font-size:1.4rem; }
.branding-description h4 { font-size:1.3rem; }
.branding-description h5 { font-size:1.25rem; }
.branding-description h6 { font-size:1.15rem; }