/* style.css */

/* Root Variables for Consistent Theme */
:root {
  --primary-color: #5C6BC0;
  --primary-color-dark: #3f4fa5;
  --text-light: #e0e0ff;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --card-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Global styles */
html {
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  background-image: url('images/logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-attachment: fixed;
}

/* Header and Footer */
header {
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
}

header h1::after {
  content: "Faith-Based Ride-Share Network for the Christian Community";
  display: block;
  font-size: 1rem;
  margin-top: 10px;
  color: var(--text-light);
}

footer {
  text-align: center;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
}

/* Typography */
h1, h2, h3 {
  margin: 0;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.5rem;
}
.slogan {
  font-size: 1.1rem;
  margin-top: 10px;
  color: var(--text-light);
}

/* Buttons */
.button,
button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.button:hover,
button:hover {
  background-color: var(--primary-color-dark);
}

button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Forms */
label {
  font-size: 1.1em;
  margin-bottom: 5px;
  display: block;
}

input {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Main content section */
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  margin-top: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

/* Square container */
.square {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  max-height: 80vh;
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.login-container form {
  width: 100%;
  max-width: 400px;
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Login Form */
.login-form {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form label {
  font-weight: bold;
}

.login-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.login-form button {
  background-color: var(--primary-color);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: var(--primary-color-dark);
}

.signup-text {
  text-align: center;
  margin-top: 10px;
}

.signup-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

/* Dashboard Styles */
.dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.dashboard-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  width: 300px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.dashboard-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.dashboard-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color-dark);
}

.dashboard-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.dashboard-card .button {
  font-size: 1rem;
  padding: 10px 16px;
}

/* Table styles */
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f1f1f1;
}

/* Benefits Section */
.benefits-section {
  background: #ffffff;
  padding: 60px 20px;
}

.benefits-section h2 {
  text-align: center;
  font-size: 2rem;
  color: #333333;
  margin-bottom: 10px;
}

.benefits-section p.subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #666666;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  background: #f3f3f3;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--card-shadow);
}

.benefit-card h3 {
  font-size: 1.25rem;
  color: #222222;
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 1rem;
  color: #444444;
}

/* Responsive Design */
@media (max-width: 600px) {
  .square,
  .login-container form {
    max-width: 90%;
    padding: 15px;
  }

  .main-content {
    height: auto;
    margin-top: 15px;
  }

  .benefits-section {
    padding: 40px 10px;
  }

  .dashboard {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-card {
    width: 90%;
  }
}

/* Scripture block */
.scripture-text {
  background-color: #fefefe;
  color: #1a237e;
  border-left: 5px solid #3f51b5;
  padding: 15px;
  margin: 20px auto;
  max-width: 90%;
  font-style: italic;
  font-size: 1.1em;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

/* Header and logo */
.header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: #5a67d8;
}

.header-logo img {
  height: 80px;
  margin: 60px 80px;
  float: right;
}

.navbar-logo img {
  width: 60px;
  height: auto;
}

/* Background video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

/* Under Construction Banner */
.construction-banner {
  background-color: #ffcc00;
  color: #000;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  font-family: sans-serif;
  position: sticky;
  top: 0;
  z-index: 9999;
}
 
body.dark {
  background-color: #1f2937;
  color: #f9fafb;
}

body.dark header {
  background-color: #111827;
}

body.dark #map {
  filter: brightness(0.9);
}

body.dark .bg-white {
  background-color: #374151;
  color: #f9fafb;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-marker {
  width: 20px;
  height: 20px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  border: 2px solid white;
}

.status-requested {
  background-color: #f59e0b; /* amber */
}

.status-enroute {
  background-color: #3b82f6; /* blue */
}

.status-completed {
  background-color: #10b981; /* green */
}

.status-offline {
  background-color: #ef4444; /* red */
}

.toast {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease forwards;
  opacity: 0.95;
  max-width: 300px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

body.dark {
  background-color: #1f2937; /* gray-800 */
  color: #f3f4f6; /* gray-100 */
}

.dark .bg-white {
  background-color: #374151 !important; /* gray-700 */
}

.dark .text-black {
  color: #f9fafb !important;
}

.dark input, .dark textarea {
  background-color: #4b5563; /* gray-600 */
  color: #f9fafb;
  border-color: #6b7280;
}

#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}


.terms-link {
  color: #2563eb; /* Tailwind blue-600 */
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.terms-link:hover {
  color: goldenrod;
  text-decoration: none;
}
