/* Custom Styles */

:root {
  --font-size: 16px;
  --primary: #154872;
  --accent: #2dbeaa;
  --text-color: #554b4e;
  --background: #ffffff;
  --gray-bg: #f3f3f3;
  --dark-blue: #16354f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Container max-width */
.container {
  max-width: 1200px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #26a896;
}

/* Toast Notification Styles */
.toast {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-icon.success {
  color: #10b981;
}

.toast-icon.error {
  color: #ef4444;
}

.toast-message {
  flex: 1;
  color: #1f2937;
  font-size: 14px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease-in forwards;
}

/* Form Focus States */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 190, 170, 0.1);
}

/* Button Hover Effects */
button {
  transition: all 0.3s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 190, 170, 0.2);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

/* Link Hover Effects */
a {
  transition: all 0.3s ease;
}

/* Carousel Specific Styles */
#carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-item {
  flex: 0 0 auto;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-item {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .carousel-item {
    width: 33.333%;
  }
}

/* Carousel container improvements */
.carousel-container {
  position: relative;
  overflow: hidden;
}

/* Ensure carousel items maintain proper spacing */
.carousel-item > div {
  margin: 0.5rem;
}

/* Carousel button styles - prevent movement on hover */
button[onclick="previousSlide()"],
button[onclick="nextSlide()"] {
  cursor: pointer;
}

button[onclick="previousSlide()"]:hover,
button[onclick="nextSlide()"]:hover {
  transform: translateY(-50%) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

button[onclick="previousSlide()"]:active,
button[onclick="nextSlide()"]:active {
  transform: translateY(-50%) !important;
}
