@tailwind base;
@tailwind components;
@tailwind utilities;
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Fallback styles in case Tailwind doesn't load */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Activity thumbnail images - ensure perfect square cropping */
.activity-thumbnail {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
}

/* Activity image link containers */
.activity-image-link {
  display: inline-block;
}

/* Activity image container with fixed dimensions */
.activity-image-container {
  width: 170px;
  height: 108px;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Activity landscape images */
.activity-image-landscape {
  width: 100%;
  height: 100%;
  object-fit: fill;
  cursor: pointer;
  transition: opacity 0.2s;
}

.activity-image-landscape:hover {
  opacity: 0.8;
}

/* Placeholder for missing images */
.activity-image-placeholder {
  width: 170px;
  height: 108px;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, #99f6e4, #5eead4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d9488;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Calendar Styles */
.calendar-popup {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.calendar-day-cell {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day-header {
  font-weight: 600;
  color: #6b7280;
}

/* Calendar button hover effects */
.calendar-nav-button:hover {
  background-color: #f3f4f6;
}

/* Ensure calendar stays above other elements */
.calendar-container {
  z-index: 1000;
}

/* Animation for calendar appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-animate-in {
  animation: fadeIn 0.2s ease-out;
}
