.dam-event {
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

.dam-button {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #2271b1;
  text-decoration: none;
  border-radius: 3px;
}

.dam-button-secondary {
  border-color: #666;
}

.dam-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.dam-table th, .dam-table td {
  border: 1px solid #e2e2e2;
  padding: 8px;
  text-align: left;
}

.dam-attendance-table th {
  white-space: nowrap;
}

.dam-radio {
  text-align: center;
}

.dam-save-indicator {
  width: 120px;
  white-space: nowrap;
}

tr.dam-state-pending { opacity: 0.9; }
tr.dam-state-saving  { opacity: 0.8; }
tr.dam-state-saved   { background: #f3fff3; }
tr.dam-state-error   { background: #fff3f3; }
.dam-hint { margin-top: 10px; color: #555; }
.dam-warning { padding: 10px; background: #fff8e5; border: 1px solid #f0d58c; }

.dam-save-controls {
  margin: 16px 0;
  padding: 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dam-save-all-button {
  padding: 8px 16px;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.dam-save-all-button:hover {
  background: #135e96;
}

.dam-save-all-button:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.dam-save-all-status {
  color: #555;
  font-size: 14px;
  font-weight: 500;
}

/* Student Profile Styles */
.dam-student-profile-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.dam-profile-section {
  margin-bottom: 30px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}

.dam-profile-section h3 {
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #2271b1;
  color: #2271b1;
}

.dam-profile-readonly {
  background: #f9f9f9;
}

.dam-profile-table {
  margin: 0;
}

.dam-profile-table th {
  width: 200px;
  font-weight: 600;
  background: #f5f5f5;
}

.dam-profile-table td {
  padding: 12px 8px;
}

.dam-profile-table input[type="text"],
.dam-profile-table input[type="email"],
.dam-profile-table input[type="tel"],
.dam-profile-table input[type="date"] {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.dam-profile-fieldset {
  border: 1px solid #ccd0d4;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.dam-profile-fieldset legend {
  font-weight: 600;
  padding: 0 10px;
}

.dam-profile-actions {
  margin-top: 20px;
  padding: 15px 0;
  text-align: right;
}

.dam-button-primary {
  background: #2271b1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dam-button-primary:hover {
  background: #135e96;
}

.dam-message {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid;
}

.dam-message-success {
  background: #f0f9f0;
  border-left-color: #46b450;
  color: #155724;
}

.dam-message-error {
  background: #fff5f5;
  border-left-color: #dc3232;
  color: #721c24;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .dam-student-profile-wrap {
    padding: 10px;
  }

  .dam-profile-section {
    padding: 15px;
  }

  .dam-profile-table {
    display: block;
  }

  .dam-profile-table thead {
    display: none;
  }

  .dam-profile-table tbody,
  .dam-profile-table tr,
  .dam-profile-table th,
  .dam-profile-table td {
    display: block;
    width: 100%;
  }

  .dam-profile-table th {
    background: transparent;
    padding-bottom: 5px;
    font-weight: 600;
  }

  .dam-profile-table td {
    padding-top: 0;
    padding-bottom: 15px;
  }

  .dam-profile-table input[type="text"],
  .dam-profile-table input[type="email"],
  .dam-profile-table input[type="tel"] {
    max-width: 100%;
  }
}

/* Honeypot (spam protection) - visually hidden but accessible to bots */
.dam-hp-wrap {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Required field indicator */
.dam-required {
  color: #dc3232;
  font-weight: bold;
}

/* DOB dropdown selects */
.dam-dob-selects {
  display: flex;
  gap: 8px;
}

.dam-dob-selects select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
}
