* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #f5f7f5; color: #333; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #1a5f2a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: #1a5f2a; color: white; padding: 0; }
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; }
.logo { font-size: 20px; font-weight: 700; }
.logo span { font-weight: 400; opacity: 0.85; font-size: 14px; margin-left: 8px; }
nav.menu { background: #144920; padding: 0 24px; }
nav.menu ul { list-style: none; display: flex; gap: 4px; }
nav.menu li a { display: block; color: white; padding: 10px 16px; font-size: 14px; }
nav.menu li a:hover, nav.menu li a.active { background: #1a5f2a; text-decoration: none; }

/* Footer */
.site-footer { background: #1a5f2a; color: #ccc; text-align: center; padding: 16px; font-size: 13px; margin-top: auto; }
.site-footer a { color: #a8d5a2; }

/* Main */
main { flex: 1; padding: 24px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* Cards on index */
.hero { text-align: center; padding: 40px 16px 24px; }
.hero h1 { font-size: 28px; color: #1a5f2a; margin-bottom: 8px; }
.hero p { color: #666; font-size: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.role-card { background: white; border-radius: 12px; padding: 32px 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.role-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); text-decoration: none; }
.role-card h2 { color: #1a5f2a; font-size: 20px; margin-bottom: 8px; }
.role-card p { color: #666; font-size: 14px; line-height: 1.5; }
.role-card .icon { font-size: 48px; margin-bottom: 16px; }

/* Common UI */
.breadcrumb { margin-bottom: 16px; font-size: 14px; color: #666; }
.breadcrumb a { cursor: pointer; }
.date-bar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.date-bar label { font-size: 14px; color: #555; }
.date-bar input, .date-bar select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.date-bar button { padding: 8px 16px; background: #1a5f2a; color: white; border: none; border-radius: 4px; cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.1s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card .count { font-size: 32px; font-weight: bold; color: #1a5f2a; }
.card .count span { font-size: 18px; color: #999; }
.card .sub { font-size: 13px; color: #666; margin-top: 4px; }
table { width: 100%; background: white; border-collapse: collapse; border-radius: 8px; overflow: hidden; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f9f9f9; font-weight: 600; }
tr:hover { background: #f5f5f5; cursor: pointer; }
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background: white; padding: 20px; border-radius: 8px; max-width: 700px; max-height: 85vh; overflow: auto; width: 90%; }
.modal img { max-width: 100%; margin: 8px 0; border-radius: 4px; cursor: pointer; }
.close { float: right; cursor: pointer; font-size: 24px; }
.event-item { border-bottom: 1px solid #eee; padding: 12px 0; }
.login-box { max-width: 360px; margin: 40px auto; background: white; padding: 32px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.login-box h2 { margin-bottom: 24px; color: #1a5f2a; text-align: center; }
.login-box input { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
.login-box button { width: 100%; padding: 12px; background: #1a5f2a; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.login-error { color: #c00; font-size: 14px; margin-bottom: 12px; text-align: center; }
.error-box { background: #fee; color: #c00; padding: 16px; border-radius: 8px; margin-bottom: 16px; }
.loading { text-align: center; padding: 40px; color: #666; }
.hidden { display: none; }
.status-present { color: #1a5f2a; font-weight: 600; }
.status-absent { color: #c00; }
.range-info { font-size: 13px; color: #666; margin-bottom: 8px; }
.static-content { background: white; padding: 32px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.06); line-height: 1.7; }
.static-content h2 { color: #1a5f2a; margin: 24px 0 12px; }
.static-content h3 { margin: 16px 0 8px; }
.static-content ul, .static-content ol { margin-left: 24px; margin-bottom: 12px; }
.static-content li { margin-bottom: 6px; }
