/* ===================================
   OBSERVATION CARD PAGE STYLES
   =================================== */

.observation-container {
  max-width: 900px;
  margin: 0 auto;
}

.observation-header {
  margin-bottom: 32px;
  animation: fadeInDown 500ms ease forwards;
}

.observation-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.observation-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Trainee Info */
.observation-trainee {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 500ms ease 100ms forwards;
  opacity: 0;
}

.observation-trainee-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.observation-trainee-avatar .material-icons-round {
  font-size: 24px;
  color: var(--primary);
}

.observation-trainee-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.observation-trainee-school {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Observation Table */
.observation-table-wrapper {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 24px;
  animation: fadeInUp 500ms ease 200ms forwards;
  opacity: 0;
}

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

.observation-table thead th {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.observation-table thead th:first-child {
  text-align: right;
  border-radius: 0 var(--radius-lg) 0 0;
  min-width: 200px;
}

.observation-table thead th:last-child {
  border-radius: var(--radius-lg) 0 0 0;
}

.observation-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  vertical-align: middle;
}

.observation-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.observation-table tbody td:not(:first-child) {
  text-align: center;
}

.observation-table tbody tr:last-child td {
  border-bottom: none;
}

.observation-table tbody tr:hover td {
  background: var(--accent);
}

.observation-table .skill-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Custom Radio for Table */
.obs-radio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.obs-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.obs-radio input[type="radio"]:hover {
  border-color: var(--primary-light);
}

.obs-radio input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.obs-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-inverse);
}

/* Save Section */
.observation-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 500ms ease 300ms forwards;
  opacity: 0;
}

/* Success Message */
.observation-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: var(--secondary-bg);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-lg);
  margin-top: 16px;
  animation: scaleIn 400ms ease forwards;
}

.observation-success.show {
  display: block;
}

.observation-success .material-icons-round {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.observation-success-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .observation-table-wrapper {
    overflow-x: auto;
  }

  .observation-table thead th {
    padding: 12px 14px;
    font-size: 13px;
  }

  .observation-table tbody td {
    padding: 14px;
    font-size: 13px;
  }
}
