/* Custom Ticket System Styles - Navy Blue/Cream Theme */

/* Theme Colors */
:root {
  --theme-cream: #FFFFFF;
  --theme-cream-dark: #EADBC8;
  --theme-cream-light: #F8F4ED;
  --theme-tan: #DAC0A3;
  --theme-accent: #102C57;
  --theme-accent-hover: #0a1e3d;
  --theme-text: #222222;
  --theme-border: #9CA3AF;
}

/* Page Background */
html {
  font-size: 18px;
}

body {
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--theme-cream);
  color: var(--theme-text);
}

/* Form elements with light gray borders */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  border: 2px solid var(--theme-border) !important;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

/* Focus states for form elements */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--theme-accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 44, 87, 0.2);
}

/* Date select fields (Rails date_select helper generates multiple selects) */
select[name*="date"],
select[name*="(1i)"],
select[name*="(2i)"],
select[name*="(3i)"] {
  border: 2px solid var(--theme-border) !important;
}

/* Ensure textareas have consistent styling */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* Larger labels for better readability */
label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  display: inline-block;
  color: var(--theme-text);
}

/* Larger button text */
button,
input[type="submit"],
input[type="button"] {
  font-size: 1rem;
}

/* Larger text in tables */
table {
  font-size: 1rem;
}

/* Larger navigation text */
nav a,
nav button {
  font-size: 1rem !important;
}

/* Ensure flash messages are readable */
.flash-message,
.notice,
.alert {
  font-size: 1rem;
}

/* Primary accent button utility class */
.btn-primary {
  background-color: var(--theme-accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--theme-accent-hover);
}

/* Theme utility classes */
.bg-theme-cream {
  background-color: var(--theme-cream) !important;
}

.bg-theme-cream-dark {
  background-color: var(--theme-cream-dark) !important;
}

.bg-theme-cream-light {
  background-color: var(--theme-cream-light) !important;
}

.bg-theme-tan {
  background-color: var(--theme-tan) !important;
}

.text-theme-accent {
  color: var(--theme-accent) !important;
}

.bg-theme-accent {
  background-color: var(--theme-accent) !important;
}

.bg-theme-accent-hover:hover {
  background-color: var(--theme-accent-hover) !important;
}

.border-theme {
  border-color: var(--theme-border) !important;
}

.text-theme-text {
  color: var(--theme-text) !important;
}

/* Checkbox/radio accent color */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--theme-accent);
}

/* Selection styling */
::selection {
  background-color: rgba(16, 44, 87, 0.3);
  color: var(--theme-text);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme-cream-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--theme-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent);
}
