/* Role Packet Styles - TopAid Healthcare */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

.header {
  background: white;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}
.header img { height: 60px; }
.header-text h1 { color: #e85d04; font-size: 20px; }
.header-text p { color: #2c5282; font-style: italic; font-size: 12px; }

.container { max-width: 900px; margin: 0 auto; padding: 30px 20px; }

.back-link { margin-bottom: 20px; }
.back-link a { color: #2c5282; text-decoration: none; font-size: 14px; }
.back-link a:hover { text-decoration: underline; }

/* Role Banner */
.role-banner {
  padding: 25px 30px;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.role-banner.rn { background: linear-gradient(135deg, #2c5282, #1a365d); }
.role-banner.cm { background: linear-gradient(135deg, #38a169, #276749); }
.role-banner.cg { background: linear-gradient(135deg, #d69e2e, #b7791f); }
.role-banner.intake { background: linear-gradient(135deg, #805ad5, #553c9a); }
.role-banner.member { background: linear-gradient(135deg, #e53e3e, #c53030); }
.role-banner.physician { background: linear-gradient(135deg, #00b5d8, #0987a0); }

.role-icon { font-size: 48px; }
.role-banner h1 { font-size: 28px; margin-bottom: 5px; }
.role-banner p { opacity: 0.9; font-size: 14px; }

/* Sections */
.section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.section h2 {
  color: #2c5282;
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}
.section p { color: #555; font-size: 14px; margin-bottom: 15px; }

/* Key Stats */
.key-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.stat {
  background: #f7fafc;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat-number { display: block; font-size: 24px; font-weight: bold; color: #2c5282; }
.stat-label { font-size: 11px; color: #666; text-transform: uppercase; }

/* Checklist Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}
.checklist-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #2c5282;
}
.checklist-item .check {
  color: #38a169;
  font-size: 18px;
  font-weight: bold;
}
.checklist-item strong { display: block; color: #333; font-size: 13px; }
.checklist-item p { font-size: 12px; color: #666; margin: 5px 0 0; }

/* Tables */
.checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.checklist-table th {
  background: #2c5282;
  color: white;
  padding: 10px;
  text-align: left;
  font-size: 12px;
}
.checklist-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.checklist-table tr:hover { background: #f7fafc; }

/* Frequency Badges */
.freq {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}
.freq.daily { background: #fed7d7; color: #c53030; }
.freq.weekly { background: #feebc8; color: #c05621; }
.freq.monthly { background: #c6f6d5; color: #276749; }
.freq.quarterly { background: #bee3f8; color: #2b6cb0; }
.freq.semi { background: #e9d8fd; color: #553c9a; }
.freq.annual { background: #faf089; color: #975a16; }

/* Alert Box */
.alert-box {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-left: 4px solid #e53e3e;
  border-radius: 8px;
  padding: 15px 20px;
}
.alert-box h3 { color: #c53030; font-size: 14px; margin-bottom: 10px; }
.alert-box ul { margin-left: 20px; font-size: 13px; color: #555; }
.alert-box li { margin: 8px 0; }

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.form-link {
  display: block;
  padding: 12px 15px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #2c5282;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.form-link:hover {
  background: #2c5282;
  color: white;
  border-color: #2c5282;
}

/* Onboarding Section */
.onboarding { background: #f0fff4; border: 1px solid #9ae6b4; }
.onboarding h2 { color: #276749; border-color: #9ae6b4; }
.onboarding-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}
.onboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  font-size: 13px;
}
.onboard-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #38a169;
}

/* Footer */
.footer {
  text-align: center;
  color: #666;
  padding: 30px;
  font-size: 12px;
}

/* Print Styles */
@media print {
  body { background: white; }
  .container { max-width: 100%; padding: 0; }
  .section { box-shadow: none; break-inside: avoid; }
  .back-link { display: none; }
}
