html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
    background: linear-gradient(0deg, rgba(18,18,18,1) 0%, rgba(0,0,0,1) 100%);
    color: #e0e0e0; /* light gray for readability on dark */
}

#bootstrap-overrides {
    color: #e0e0e0;
    border-radius: 1em;
    border-color: rgb(128, 128, 128);

}

#bootstrap-overrides-cards {
    color: #e0e0e0 !important;
    border-color: rgb(128, 128, 128);
    border-radius: 1em;
    background-color: transparent; /* avoid white card backgrounds */
}

#ignore option 
{
    color: black;
}
#reply_container {
    background-color: #0f0f0f;
    border: solid 2px 2px;
}

/* Reverted sticky footer flex behavior to avoid overflow on auth pages */

#bootstrap-overrides .btn {
    border-color: rgb(128, 128, 128);
}

/* Remove bootstrap border-top globally */
.border-top {
    border-top: none !important;
}

/* Make footer text white */
footer.footer,
footer.footer .text-muted,
.footer.text-muted,
footer .text-muted {
    color: #ffffff !important;
}

/* Ensure footer sits at the bottom */
/* Footer uses normal document flow */

/* Centering helpers */
.center-vh {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure generic cards are transparent on dark pages */
/* Subtle outline for sign-in and register cards */
#bootstrap-overrides-cards.card {
    border: 1px solid rgba(255,255,255,0.08) !important; /* subtle outline on dark */
    box-shadow: 0 6px 24px rgba(0,0,0,0.25); /* softer shadow */
}

/* Prevent body overflow issues caused by nested heights */
/* Avoid forcing overflow rules globally */

/* Prevent vertical scroll for compact auth pages */
.auth-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* avoid extra scrollbars */
}

/* Neutral link styling (site-wide) */
a,
.nav-link,
footer a {
    color: #b0b0b0; /* neutral gray link */
    text-decoration: none; /* remove underline */
}
a:hover,
.nav-link:hover,
footer a:hover {
    color: #e5e5e5; /* slightly lighter on hover */
    text-decoration: none;
}

/* Consistent label color on dark backgrounds */
/* Force transparent backgrounds for labels on dark theme */
body label,
body .form-label,
body .col-form-label,
body .form-check-label,
body .input-group-text {
    color: #c9c9c9 !important; /* muted gray for labels */
    background-color: transparent !important; /* no background */
}

/* Explicitly style Identity register page labels (e.g., for="Input_Email") */
body label[for^="Input_"] {
    color: #c9c9c9 !important;
    background-color: transparent !important;
}

/* Bootstrap form-floating labels on dark theme */
.form-floating > label {
    color: #c9c9c9 !important;
    background-color: transparent !important;
}
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #b5b5b5 !important;
    background-color: transparent !important;
}

/* Remove background from form-floating label ::after pseudo-element in all states */
.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
    background-color: transparent !important;
}

/* Validation message colors on dark */
.field-validation-error,
.validation-summary-errors {
    color: #ff6b6b; /* soft red for errors */
}
.field-validation-valid,
.validation-summary-valid {
    color: #8bc34a; /* subtle green when valid */
}

/* Dark-theme inputs */
.form-control,
.form-select,
.form-control:disabled,
.form-select:disabled {
    background-color: rgba(20,20,20,0.9);
    border-color: #3a3a3a;
    color: #e0e0e0;
}
.form-control::placeholder {
    color: #9a9a9a;
}
.form-control:focus,
.form-select:focus {
    background-color: rgba(24,24,24,0.95);
    border-color: #555;
    box-shadow: 0 0 0 0.2rem rgba(85,85,85,0.25);
    color: #ffffff;
}

/* Buttons in dark theme */
.btn-primary {
    background-color: #1f1f1f;
    border-color: #333;
    color: #f0f0f0;
}
.btn-primary:hover {
    background-color: #2a2a2a;
    border-color: #444;
}
.btn-danger {
    background-color: #3a1f1f;
    border-color: #553333;
}
.btn-danger:hover {
    background-color: #4a2a2a;
    border-color: #664444;
}

/* Navbar dark consistency */
.navbar-dark .navbar-nav .nav-link {
    color: #d0d0d0;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}




