/* =========================
   Application Page Styles
   ========================= */

/* Hero strip */
.app-hero {
  background: linear-gradient(135deg, #e8f4fd, #e0f7fa);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  border: 1px solid #b3dff5;
  margin-top: 2.5rem;
}

.app-page-title {
  color: var(--primary-dark);
  border-color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.app-subtitle {
  font-size: 1rem;
  color: #1a3a4a;
  max-width: 720px;
  margin: 0 0 1.25rem;
  line-height: 1.8;
}

/* Section spacing */
.app-section {
  margin-top: 2.5rem;
}

.app-section p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 820px;
}

/* Lists */
.app-list {
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.4rem;
  margin: 0.4rem 0 0.9rem;
}

.app-list--check {
  list-style: none;
  padding-left: 0;
}

.app-list--check li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.3rem;
}

/* Dates table */
.app-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.app-table thead th {
  background: var(--primary-dark);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.app-table tbody td {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

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

/* Document cards */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin: 1.1rem 0 1rem;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-card--optional {
  border-style: dashed;
  background: #fafafa;
}

.doc-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.doc-card h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doc-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tag-optional,
.tag-student {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-optional {
  background: #e5e7eb;
  color: #6b7280;
}

.tag-student {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Note callout */
.app-note {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Fee cards */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.fee-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fee-category {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.fee-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.fee-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Mobile */
@media (max-width: 768px) {
  .app-hero { padding: 1.5rem 1.25rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .fee-grid  { grid-template-columns: 1fr; }
  .app-table { font-size: 0.88rem; }
  .app-table thead th,
  .app-table tbody td { padding: 0.6rem 0.75rem; }
}
