/* Theme toggle button styles */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: hsl(var(--foreground));
}

.theme-toggle .fa-sun {
  display: none;
}

.theme-toggle .fa-moon {
  display: inline-block;
}

/* Light theme colors */
:root {
  --background: 0 0% 100%;
  --foreground: 233 32% 22%;
  --card: 0 0% 98%;
  --card-foreground: 233 32% 22%;
  --popover: 0 0% 98%;
  --popover-foreground: 233 32% 22%;
  --primary: 199 64% 49%;
  --primary-foreground: 0 0% 100%;
  --secondary: 207 54% 35%;
  --secondary-foreground: 0 0% 100%;
  --muted: 234 8% 69%;
  --muted-foreground: 233 32% 22%;
  --accent: 199 64% 49%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 85% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 234 8% 69%;
  --black: black;
  --input: 234 8% 69%;
  --ring: 199 64% 49%;
  --radius : 15px;
}

/* Dark theme colors */
.dark-theme {
  --background: 233 32% 22%;
  --foreground: 0 0% 100%;
  --card: 234 21% 34%;
  --card-foreground: 0 0% 100%;
  --popover: 234 21% 34%;
  --popover-foreground: 0 0% 100%;
  --primary: 199 64% 49%;
  --primary-foreground: 0 0% 100%;
  --secondary: 207 54% 35%;
  --secondary-foreground: 0 0% 100%;
  --muted: 234 8% 60%;
  --muted-foreground: 0 0% 100%;
  --accent: 199 64% 49%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 85% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 234 8% 69%;
  --input: 234 8% 69%;
  --ring: 199 64% 49%;
}

.dark-theme .theme-toggle .fa-sun {
  display: inline-block;
}

.dark-theme .theme-toggle .fa-moon {
  display: none;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: ease-in-out 0.5s;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.group{
  width: 4rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: hsl(var(--background));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.text-muted-foreground {
  color: hsl(var(--foreground));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.rounded-md {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: calc(var(--radius) + 2px);
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 3px solid hsl(var(black));
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-duration: 150ms;
}

.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}

.hover\:text-primary:hover {
  color: hsl(var(--primary));
}

.focus-visible\:outline-none:focus-visible {
  outline: none;
}

.focus-visible\:ring-2:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.focus-visible\:ring-primary:focus-visible {
  --ring-color: hsl(var(--primary));
}

.focus-visible\:ring-offset-2:focus-visible {
  --ring-offset-width: 2px;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hidden {
  display: none;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.w-8 {
  width: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: background-color 150ms;
}

.btn-primary:hover {
  background-color: hsl(var(--secondary));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  transition: background-color 150ms;
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: var(--radius);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .sm\:text-5xl {
    font-size: 3rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:text-6xl {
    font-size: 3.75rem;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  transition: ease-in-out 1s;
}

.modal-content {
  background-color: hsl(var(--background));
  margin: 15% auto;
  padding: 20px;
  border: 1px solid hsl(var(--border));
  width: 80%;
  max-width: 500px;
  border-radius: var(--radius);
}

.close {
  color: hsl(var(--muted-foreground));
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: hsl(var(--foreground));
  text-decoration: none;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.form-group textarea {
  height: 100px;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.group:hover span {
  animation: slideDown 0.3s ease-out forwards;
}

/* Add this to your existing styles.css file */

.image-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

#image-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: hsl(var(--muted-foreground));
  padding: 10px 0;
  height: 150px;
}

.image-modal-content, #image-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.close-image-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: hsl(var(--foreground));
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-image-modal:hover,
.close-image-modal:focus {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .image-modal-content {
    width: 100%;
  }
}