/* Global Reset: Remove all default margins, paddings, and box-sizing inconsistencies */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure consistent font size and smooth scrolling */
html {
  font-size: 16px; /* Root font size for easy rem calculations */
  scroll-behavior: smooth;
}

/* Body Styling: Use a clean font and neutral background */
body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  background-color: #FFFFFF; /* Light background */
  height: 100vh;  color: #212529; /* Bootstrap's default text color */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Links */
a {
  text-decoration: none;
  color: #0d6efd; /* Bootstrap primary color */
}
a:hover {
  text-decoration: underline;
}

/* Buttons: Consistent appearance across browsers */
button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* Container padding for consistent spacing across sections */
.container {
  padding: 15px;
}

/* Form Styling */
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ced4da; /* Light gray border */
  width: 100%;
  margin-bottom: 10px;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: #0d6efd; /* Bootstrap primary blue */
  outline: none;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.25); /* Slight blue glow */
}

/* Button Styling */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
  background-color: #0d6efd;
  color: #fff;
}
.btn-primary:hover {
  background-color: #0b5ed7;
  transform: scale(1.02); /* Slight zoom on hover */
}

/* Alerts */
.alert {
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1rem;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .container {
      padding: 10px;
  }

  h2 {
      font-size: 1.5rem;
  }
}



/* Basic toast styles */
.toast {
  position: fixed;
  top: 20px; /* Positioning from the bottom */
  right: 20px;  /* Positioning from the right */
  padding: 15px 20px; /* Padding for the toast */
  border-radius: 5px;  /* Rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
  opacity: 0; /* Start invisible for animation */
  transition: opacity 0.5s, transform 0.5s; /* Transition for fade-in effect */
  transform: translateY(20px); /* Start slightly below */
  z-index: 1000; /* On top of other elements */
}

/* Success toast styles */
.toast-success {
  background-color: #4caf50; /* Green background */
  color: white; /* White text */
}

/* Error toast styles */
.toast-error {
  background-color: #f44336; /* Red background */
  color: white; /* White text */
}

/* Show the toast */
.toast.show {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Move to original position */
}

/* Optional: Add a fade-out effect */
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Add this class to fade out the toast */
.toast.hide {
  animation: fadeOut 0.5s forwards; /* Fade out animation */
}
