body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f0f2f5; text-align: center; margin: 0; padding: 20px; color: #333; }
.container { max-width: 900px; margin: 0 auto; }

/* Dashboard */
.main-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 60px; }
.card { background: white; padding: 40px; border-radius: 16px; text-decoration: none; color: #333; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s; display:block; }
.card:active { transform: scale(0.98); }
.card.primary { border-bottom: 5px solid #003366; } /* Scout Navy */
.card.secondary { border-bottom: 5px solid #7413dc; } /* Scout Purple */
.card.disabled { opacity: 0.6; cursor: default; background: #e0e0e0; }
.icon { font-size: 3.5rem; margin-bottom: 15px; }

/* Layouts */
.grid-list { display: grid; grid-template-columns: 1fr; gap: 15px; max-width: 500px; margin: 20px auto; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-top: 20px; }

/* Components */
.center-box { background: white; padding: 30px; border-radius: 12px; margin: 60px auto; max-width: 400px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.alert { padding: 15px; border-radius: 8px; margin-top: 60px; margin-bottom: 20px; font-weight: bold; color: white; cursor: pointer; }
.alert.error { background: #dc3545; }
.alert.success { background: #28a745; }

/* Buttons */
.btn-large { display: block; background: #003366; color: white; padding: 20px; text-decoration: none; font-size: 1.3rem; border-radius: 10px; font-weight: bold; }
.btn-confirm { background: #28a745; color: white; border: none; padding: 15px 30px; font-size: 1.2rem; border-radius: 8px; cursor: pointer; width: 100%; }
.back-btn { position: absolute; top: 20px; left: 20px; padding: 10px 20px; background: #333; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; z-index: 2; }

/* Forms & Inputs */
input[type=password], input[type=text], input[type=date] { width: 90%; padding: 12px; margin: 10px 0; border: 2px solid #ddd; border-radius: 8px; font-size: 1.2rem; text-align: center; }
.check-item { font-size: 1.2rem; margin: 10px 0; text-align: left; }
input[type=checkbox] { transform: scale(1.5); margin-right: 15px; }

/* Member Card */
.member-card { background: white; padding: 15px; border-radius: 10px; cursor: pointer; text-decoration: none; color: #000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.avatar { width: 70px; height: 70px; background: #7413dc; color: white; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: bold; }
.small-text { font-size: 0.8rem; opacity: 0.8; font-weight: normal; display: block; margin-bottom: 5px; }

/* Member Card - Checked In (Green) */
.member-card.attended { background-color: #d4edda; border: 2px solid #28a745; color: #155724; opacity: 0.8; cursor: default; /* Show it's not clickable */}
.member-card.attended .avatar { background-color: #28a745;}

/*  Member Card - Absent (Red) */
.member-card.absent { background-color: #f8d7da; border: 2px solid #dc3545; color: #721c24; opacity: 0.8; cursor: default;}
.member-card.absent .avatar { background-color: #dc3545;}

/* Add to bottom of style.css */
.logout-btn { position: absolute; top: 20px; right: 20px; background: #dc3545; /* Red */ color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 2; }
.logout-btn:active { transform: scale(0.95); }


/* Maintenance Checklist */
.check-row { display: flex; align-items: center; background: #f9f9f9; padding: 15px; margin-bottom: 10px; border-radius: 8px; border: 1px solid #ddd; cursor: pointer; transition: background 0.2s; }
.check-row:active { background: #e0e0e0; }
.check-row input[type="checkbox"] { width: 25px; height: 25px; margin-right: 15px; accent-color: #003366; /* Scout Navy Checkbox */ }
.check-row span { font-size: 1.2rem; font-weight: 500; }

.leader-initials label { font-weight:bold; display:block; margin-bottom:10px; }
.leader-initials input { width:100%; font-size:1.5rem; padding:15px; text-transform:uppercase; box-sizing: border-box; }