/* ChristWay Church Reporting Portal — Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#cwr-root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #eef1f5;
  --border: rgba(0, 0, 0, 0.1);
  --blue: #1a3a5c;
  --green: #3b6d11;
  --amber: #854f0b;
  --red: #a32d2d;
}

#cwr-root * { box-sizing: border-box; }

#cwr-root input,
#cwr-root select,
#cwr-root textarea {
  transition: border-color 0.15s;
}

#cwr-root input:focus,
#cwr-root select:focus,
#cwr-root textarea:focus {
  border-color: #1a3a5c !important;
  box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.1);
  outline: none;
}

#cwr-root button:focus-visible {
  outline: 2px solid #1a3a5c;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  #cwr-root .sidebar {
    width: 200px !important;
  }
}

@keyframes cwr-spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar */
#cwr-root ::-webkit-scrollbar { width: 6px; height: 6px; }
#cwr-root ::-webkit-scrollbar-track { background: transparent; }
#cwr-root ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
#cwr-root ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
