
body { font-family: Arial, sans-serif; padding:20px; }
button { margin:4px; padding:6px; }
input, select { margin:4px; padding:4px; }
label { display:block; margin-top:6px; }

.error {
  color: #c0392b;
  font-size: 12px;
}

input.invalid {
  border: 1px solid #c0392b;
}

input[disabled] {
  background: #f5f5f5;
  color: #555;
}

.identity-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: start;
}

.photo-column {
  text-align: center;
}

.student-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
}

.student-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #777;
  font-size: 12px;
}

.fields-column input,
.fields-column select {
  display: block;
  width: 100%;
  margin-bottom: 6px;
}

fieldset {
  margin-bottom: 20px;
  padding: 15px;
}

legend {
  padding: 0 6px;
  font-weight: bold;
}

.profile-header{
  display:flex;
  gap:25px;
  align-items:center;
}

.profile-photo{
  width:140px;
  height:140px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #ddd;
}

.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.card{
  background:white;
  padding:16px;
  border-radius:8px;
  border:1px solid #e5e5e5;
}

.attendance-bar{
  background:#eee;
  height:10px;
  border-radius:5px;
}

.attendance-bar div{
  height:100%;
  background:#16a34a;
  border-radius:5px;
}

.data-table{
  width:100%;
  border-collapse:collapse;
}

.data-table th,
.data-table td{
  padding:8px;
  border-bottom:1px solid #eee;
}

.data-table th{
  background:#f7f7f7;
  text-align:left;
}

.notes-list{
  max-height:300px;
  overflow-y:auto;
}

.note-card{
  margin-bottom:10px;
  padding:10px;
  background:#f5f5f5;
  border-radius:6px;
}

.note-meta{
  font-size:12px;
  color:#666;
  margin-bottom:4px;
}

.status-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #e6f6ea;
  color: #1b7f3b;
}

.status-badge.alumni {
  background: #eef2ff;
  color: #3730a3;
}

.status-badge.dropped {
  background: #fdecea;
  color: #b42318;
}

.muted {
  color: #666;
  font-size: 13px;
}

.student-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.student-controls input,
.student-controls select {
  padding: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f5f5f5;
  text-align: left;
}

td, th {
  padding: 8px;
}

.attendanceSelect.changed {
  background: #e6f6ea;
}

.student-summary {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.student-row {
  cursor: pointer;
  transition: background 0.15s ease;
  height: 55px;
}

.student-row:hover {
  background: #f5f7fa;
}

.student-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.student-form-grid fieldset {
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.student-form-grid fieldset:first-child {
  grid-column: span 2;
}

.student-form-grid input,
.student-form-grid textarea,
.student-form-grid select {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px;
  box-sizing: border-box;
}

.student-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease;
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.08); */
}

.student-thumb:hover {
  transform: scale(1.1);
}

.timeline{
  margin-top:10px;
}

.timeline-item{
  display:flex;
  gap:15px;
  padding:10px 0;
  border-bottom:1px solid #eee;
}

.timeline-date{
  width:120px;
  font-size:12px;
  color:#666;
}

.timeline-content{
  flex:1;
}

.timeline-note{
  background:#f5f5f5;
  padding:8px;
  border-radius:6px;
}

.timeline-author{
  font-size:12px;
  color:#666;
  margin-top:4px;
}