:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --well-color: #22c55e;
  --not-well-color: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg); color: var(--text); padding: 16px; display: flex; justify-content: center; }

.app-container { width: 100%; max-width: 600px; margin: 0 auto; }

.card { background: var(--card-bg); border-radius: 24px; padding: 24px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); margin-bottom: 20px; }

.header-title { font-size: 1.5rem; font-weight: 800; text-align: center; color: var(--primary); margin-bottom: 8px; }
.subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.user-list { display: flex; flex-col; gap: 12px; }

.user-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #f1f5f9; border-radius: 16px; transition: transform 0.1s; }
.user-item:active { transform: scale(0.98); }

.user-info .sn { font-weight: 800; color: var(--primary); margin-right: 8px; }
.user-info .name { font-weight: 700; }
.user-info .pos { display: block; font-size: 0.8rem; color: var(--text-muted); }

.btn { background: var(--primary); color: white; border: none; padding: 12px 20px; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { background: var(--primary-hover); }

/* Status Options */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.status-btn { padding: 30px 16px; border-radius: 20px; border: 3px solid transparent; font-size: 1.2rem; font-weight: 800; cursor: pointer; text-align: center; background: #f8fafc; }
.status-btn.well { color: var(--well-color); border-color: #bbf7d0; }
.status-btn.not-well { color: var(--not-well-color); border-color: #fecaca; }

.status-btn.well.selected { background: var(--well-color); color: white; }
.status-btn.not-well.selected { background: var(--not-well-color); color: white; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.active { display: flex; }
.modal-content { background: white; width: 100%; max-width: 360px; border-radius: 24px; padding: 24px; position: relative; }

.input-field { width: 100%; padding: 14px; border: 2px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; font-size: 1rem; outline: none; }
.input-field:focus { border-color: var(--primary); }

.alert { padding: 14px; border-radius: 12px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

/* Admin Table */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid #e2e8f0; font-size: 0.85rem; }