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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
}

/* (removed) legacy hero-video sizing to prevent conflicts with wrapper */

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Logo styling */
.logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
}

.logo-link {
  display: flex;
  align-items: center;
}

/* Responsive hero video wrapper with intrinsic aspect ratio */
.hero-video-wrapper {
  position: relative;
  width: 100%;
  /* Maintain ~16:9 and cap at 400px height, scale down on smaller screens */
  height: min(56.25vw, 400px);
  max-height: 400px;
  background-color: #000;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 15%;
  left: 5%;
}

/* Hero title styling */
.hero-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}


/* Form validation styling */
.was-validated .form-control:valid {
    border-color: #198754;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* Alert styling */
.alert {
    border-radius: 0.375rem;
}

/* Responsive text sizing */
@media (max-width: 768px) {
    /* Keep video filling the wrapper; do not override its height */
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Clickable card styling */
a.text-decoration-none .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

a.text-decoration-none:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

a.text-decoration-none:hover {
    text-decoration: none !important;
}

a.text-decoration-none:hover .card-title {
    color: #0d6efd !important;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
      -webkit-appearance: none;
       margin: 0;
}

input[type=number] {
      -webkit-appearance: textfield;
      -moz-appearance: textfield;
      appearance: textfield;
}

.progress-bar-25 {
    width: 25%;
    background-color: gray;
    color: #fff;
    text-align: center;
}
.progress-bar-50 {
    width: 50%;
    background-color: gray;
    color: #fff;
    text-align: center;
}
.progress-bar-75 {
    width: 75%;
    background-color: gray;
    color: #fff;
    text-align: center;
}
.progress-bar-100 {
    width: 100%;
    background-color: gray;
    color: #fff;
    text-align: center;
}

.card-background {
  background-color: #046A38;
  color: white;
}
.card-border {
    border: 2px solid #046A38;
}

.ai-border {
    border: 2px solid #33cccc;
}




.ai-insight-box {
    background: #E7F6F4; /* Soft teal-green hint */
    border-left: 8px solid #00796B; /* Strong accent spine */
    padding: 16px 20px;
    border-radius: 6px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.ai-summary-box {
    background: #E7F6F4; /* Soft teal-green hint */
    border-left: 8px solid #00796B; /* Strong accent spine */
    padding: 16px 20px;
}

/* Occupancy Density Score Dots */
.density-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

.density-dot-green {
    background-color: #28a745;
}

.density-dot-yellow {
    background-color: #ffc107;
}

.density-dot-red {
    background-color: #dc3545;
}

.prompt-text {
  white-space: pre-line;
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  text-indent: 0;
}

/* Login and Register Page Styles */
.login-container,
.register-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
}

.login-card,
.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.register-card {
    max-width: 550px;
}

.login-header,
.register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
}

.login-header h2,
.register-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.75rem;
}

.login-header p,
.register-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-body,
.register-body {
    padding: 2.5rem;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating-custom input,
.form-floating-custom select {
    height: 58px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding-left: 3.5rem !important;
    padding-right: 1rem;
    transition: all 0.3s ease;
}

.form-floating-custom input[type="password"],
.form-floating-custom input[type="text"][id*="Password"] {
    padding-right: 3.5rem !important;
}

.form-floating-custom input:focus,
.form-floating-custom select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    padding-left: 3.5rem !important;
}

.form-floating-custom input[type="password"]:focus,
.form-floating-custom input[type="text"][id*="Password"]:focus {
    padding-right: 3.5rem !important;
}

.form-floating-custom .input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    z-index: 5;
    font-size: 1.1rem;
    pointer-events: none;
}

.form-floating-custom label {
    padding-left: 3.5rem;
    z-index: 1;
}

.btn-login,
.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    height: 58px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.password-toggle:hover {
    color: #764ba2;
}

.back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}
