:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --primary: #1a73e8;
  --primary-soft: #e8f0fe;
  --danger: #d93025;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
}

* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { margin: 0; background: var(--bg); color: var(--text); }

/* Login */
.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { background: var(--surface); padding: 36px; border-radius: 24px; width: 100%; max-width: 380px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.brand-logo { font-size: 26px; font-weight: 800; color: var(--primary); text-align: center; }
.brand-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }

/* Navbar */
.navbar { background: var(--surface); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav-brand { font-size: 20px; font-weight: 800; color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.user-badge { font-size: 13px; font-weight: 600; background: var(--primary-soft); color: var(--primary); padding: 6px 12px; border-radius: 20px; }

/* Container & Stats */
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.03); border: 1px solid var(--border); }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.stat-value { font-size: 22px; font-weight: 800; margin-top: 8px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }

/* Calendar Styling */
.calendar-wrapper { background: var(--surface); padding: 20px; border-radius: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); border: 1px solid var(--border); }
.fc-toolbar-title { font-size: 18px !important; font-weight: 700 !important; }
.fc-button-primary { background: var(--primary) !important; border: none !important; border-radius: 10px !important; text-transform: capitalize !important; }
.fc-daygrid-day { cursor: pointer; transition: background 0.15s; }
.fc-daygrid-day:hover { background: #f9fafb; }
.fc-event { border: none !important; border-radius: 8px !important; padding: 3px 6px !important; font-size: 11px !important; background: var(--primary-soft) !important; color: var(--primary) !important; font-weight: 600 !important; }

/* Forms & Buttons */
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
input, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
button { cursor: pointer; border-radius: 10px; font-weight: 600; font-size: 13px; padding: 10px 16px; border: none; transition: 0.15s; }
.w-full { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-tiny { padding: 2px 8px; font-size: 11px; background: var(--bg); border: 1px solid var(--border); }

/* Modals */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.hidden { display: none !important; }
.modal-content { background: var(--surface); border-radius: 20px; width: 100%; max-width: 480px; padding: 24px; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 650px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h3 { margin: 0; font-size: 18px; }
.close-btn { background: none; font-size: 22px; padding: 0 6px; color: var(--muted); }
.detail-meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.total-banner { background: var(--primary-soft); color: var(--primary); padding: 12px; border-radius: 12px; display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 16px; }
.participant-list { list-style: none; padding: 0; margin: 0 0 16px 0; }
.participant-list li { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--bg); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* Table */
.user-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-table th, .user-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
.error-text { color: var(--danger); font-size: 13px; text-align: center; margin-top: 10px; }