/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Use Geist font throughout */
body {
  font-family: 'Geist', sans-serif;
}

/* Custom color scheme */
:root {
  --color-background: rgb(248, 245, 240);
  --color-accent: rgb(46, 125, 50);
  --color-accent-hover: rgb(56, 142, 60);
  --color-text: rgb(62, 39, 35);
  --color-text-muted: rgb(102, 79, 75);
}

/* Apply custom colors */
body {
  background-color: var(--color-background);
  color: var(--color-text);
  position: relative;
}

/* Grid pattern with fade to edges */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 50%, transparent 85%);
}

/* Accent color buttons */
.btn-accent {
  background-color: var(--color-accent);
  color: white;
}
.btn-accent:hover {
  background-color: var(--color-accent-hover);
}

/* Override blue accent colors with green */
.bg-blue-600 { background-color: var(--color-accent) !important; }
.bg-blue-500 { background-color: var(--color-accent-hover) !important; }
.hover\:bg-blue-500:hover { background-color: var(--color-accent-hover) !important; }
.hover\:bg-blue-600:hover { background-color: var(--color-accent) !important; }
.text-blue-600 { color: var(--color-accent) !important; }
.text-blue-500 { color: var(--color-accent-hover) !important; }
.hover\:text-blue-500:hover { color: var(--color-accent-hover) !important; }
.hover\:text-blue-600:hover { color: var(--color-accent) !important; }
.border-blue-200 { border-color: rgb(200, 230, 201) !important; }
.bg-blue-50 { background-color: rgb(232, 245, 233) !important; }
.text-blue-800 { color: rgb(27, 94, 32) !important; }
.text-blue-900 { color: rgb(27, 94, 32) !important; }
.ring-blue-500 { --tw-ring-color: var(--color-accent) !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: var(--color-accent) !important; }

/* Override gray text with custom brown */
.text-gray-900 { color: var(--color-text) !important; }
.text-gray-800 { color: var(--color-text) !important; }
.text-gray-700 { color: var(--color-text-muted) !important; }
.text-gray-600 { color: var(--color-text-muted) !important; }

/* Background overrides */
.bg-gray-50 { background-color: var(--color-background) !important; }

/* Up next box styling */
.up-next-box {
  background-image: linear-gradient(to right bottom, rgba(46, 125, 50, 0.1) 0px, rgba(46, 125, 50, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
}

.up-next-box-done {
  background-image: linear-gradient(to right bottom, rgba(46, 125, 50, 0.15) 0px, rgba(46, 125, 50, 0.08) 50%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(46, 125, 50, 0.25);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
}

/* Hide scrollbars while maintaining scroll functionality */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Amber hover for user's own todo items */
.todo-item-self:hover {
  background-color: rgb(253, 230, 138) !important; /* amber-200 */
}
