/* Theme variables */
:root {
  --primary-color: #ffd0a5;
  --primary-hover-color: #e5bb94;
  --text-color: #000000;
  --background-color: #444444;
  --footer-bg: #f8f9fa;
}

/* General */
body {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: url('../img/deti_robot.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color) !important;
}
.navbar-brand,
.navbar-nav .nav-link {
  color: var(--text-color) !important;
}
.navbar-toggler-icon { filter: invert(1); }

/* Optional hero */
.jumbotron {
  position: relative;
  background: url('../img/hero.jpg') no-repeat center center;
  background-size: cover;
  padding: 6rem 2rem;
  margin-bottom: 2rem;
  border-radius: 0.3rem;
  color: #ffffff;
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem;
  border-radius: 0.3rem;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
}
/* Footer override to match navbar */
.footer {
  background-color: var(--primary-color) !important;
  color: var(--text-color);
}

/* --- FORM VISIBILITY FIXES --- */
form {
  background-color: var(--primary-color) !important; /* brand panel */
  color: var(--text-color) !important;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

form .form-control {
  margin-bottom: 1rem;
  background-color: #ffffff !important;   /* white inputs for contrast */
  color: #111111 !important;              /* dark text */
  border: 1px solid #cfd4dc !important;
  border-radius: 8px;
}

/* Readable placeholders */
.form-control::placeholder {
  color: rgba(0, 0, 0, 0.55) !important;
  opacity: 1;
}

/* Clear focus ring */
.form-control:focus {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px;
  border-color: #2563eb !important;
  box-shadow: none !important;
}

/* Fix WebKit autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
}

/* Buttons */
form .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #111111 !important;
}
form .btn-primary:hover,
form .btn-primary:focus {
  background-color: var(--primary-hover-color) !important;
  border-color: var(--primary-hover-color) !important;
  color: #111111 !important;
}

/* Optional white text utilities for specific blocks (not global) */
.white-text-readable {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
h1.display-4,
h2.text-center {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Scoped white text for About section only */
.about-container { padding: 20px; border-radius: 5px; margin-bottom: 1rem; }
.about-container * {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Navbar brand sizing */
.navbar-brand { color: #000000 !important; font-size: 3rem !important; }
@media (max-width: 576px) {
  .navbar-brand { font-size: 1.5rem !important; }
  .form-control { font-size: 16px; } /* prevents iOS zoom on focus */
}

/* Remove the old global white text hammer:
   (intentionally omitted)
   .container.mt-4 * { color:#fff !important; text-shadow:... }
*/
/* --- FORM TEXT SHARPNESS FIX --- */

/* Remove any inherited text-shadow from inputs, textareas, and their wrappers */
input, textarea, select, .form-control {
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased; /* improves clarity on WebKit */
  -moz-osx-font-smoothing: grayscale;
  color: #111111 !important; /* strong dark text */
  background-color: #ffffff !important; /* white background for max contrast */
}

/* Make placeholders crisp, not semi-transparent or shadowed */
::placeholder {
  color: rgba(0, 0, 0, 0.65) !important; /* mid-gray */
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 400;
}

/* Remove unwanted filters or shadows inside Bootstrap form containers */
.form-floating label,
.form-group label {
  text-shadow: none !important;
  color: #000000 !important;
}

/* If you ever use .white-text-readable globally, prevent it inside forms */
form .white-text-readable {
  color: #111111 !important;
  text-shadow: none !important;
}


/* --- ABOUT PAGE OVERRIDES --- */
.about-container {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-container * {
  color: #000000 !important;
  text-shadow: none !important;
}

.about-container h1,
.about-container h2,
.about-container h3,
.about-container h4 {
  color: #000000 !important;
  font-weight: 600;
}

.about-container .list-group-item {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #e0e0e0;
}

.about-container .card {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #e0e0e0;
}

.about-container a {
  color: #007bff !important;
  text-decoration: underline;
}

.about-container a:hover {
  color: #0056b3 !important;
}

