/* Modern Responsive WuCMS Theme */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --bg: #f8fafc;
  --text: #222;
  --border: #e5e7eb;
  --radius: 0.5rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.logo { font-weight: bold; font-size: 1.5rem; color: var(--primary); text-decoration: none; }
.main-nav a, .footer-nav a { color: var(--text); text-decoration: none; margin: 0 0.75rem; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover, .footer-nav a:hover { color: var(--primary-dark); }
.site-main { padding: 2rem 0; min-height: 60vh; }
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: 0.95rem; margin-top: 3rem; }
@media (max-width: 768px) {
  .flex-between { flex-direction: column; align-items: stretch; gap: 1rem; }
  .main-nav, .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
  .site-main { padding: 1rem 0; }
  .site-header { position: static; }
}
/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); padding: 0.6rem 1.2rem; font-size: 1rem; cursor: pointer; transition: all 0.2s; text-decoration: none; font-weight: 500; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(0); }
.dismiss-btn { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: #999; padding: 0; width: 2rem; height: 2rem; line-height: 1; }
.dismiss-btn:hover { color: #333; }
/* Forms */
input, select, textarea { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; font-size: 1rem; margin-bottom: 1rem; width: 100%; font-family: inherit; transition: border-color 0.2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
label { font-weight: 500; margin-bottom: 0.4rem; display: block; color: #555; }
textarea { resize: vertical; min-height: 100px; }
/* Cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.03); position: relative; }
.card h1, .card h2, .card h3 { margin-top: 0; }
/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
th { background: #f1f5f9; font-weight: 600; }
@media (max-width: 768px) {
  table { font-size: 0.9rem; }
  th, td { padding: 0.5rem; }
}
/* Alerts */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 4px solid; }
.alert-success { background: #d1fae5; color: #065f46; border-left-color: #10b981; }
.alert-error { background: #fee2e2; color: #991b1b; border-left-color: #ef4444; }
.alert p { margin: 0; }
/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); background: #fff; }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
/* Utilities */
.text-center { text-align: center; }
.text-muted { color: #666; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
/* Responsive images */
img { max-width: 100%; height: auto; }
