/* ============================================
   VVISD Transfer Student Portal - Styles
   Van Vleck ISD Orange Branding
   ============================================ */

/* --- CSS Variables / Theme --- */
:root {
  --vv-orange: #E87722;
  --vv-orange-dark: #C4621A;
  --vv-orange-light: #F5A623;
  --vv-orange-subtle: #FFF3E8;
  --vv-black: #1A1A1A;
  --vv-dark: #2D2D2D;
  --vv-gray-700: #4A4A4A;
  --vv-gray-500: #7A7A7A;
  --vv-gray-300: #B8B8B8;
  --vv-gray-100: #F0F0F0;
  --vv-white: #FFFFFF;
  --vv-green: #2D8A4E;
  --vv-green-light: #E8F5EC;
  --vv-red: #C0392B;
  --vv-red-light: #FDECEA;
  --vv-blue: #2980B9;
  --vv-blue-light: #EBF5FB;
  --vv-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --vv-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --vv-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --vv-radius: 8px;
  --vv-radius-lg: 12px;
  --vv-transition: 0.2s ease;
  --vv-font: 'Source Sans 3', 'Segoe UI', sans-serif;
  --vv-font-display: 'Playfair Display', Georgia, serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--vv-font);
  color: var(--vv-dark);
  background: var(--vv-gray-100);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Utility Classes --- */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--vv-gray-500); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* --- Header / Nav --- */
.site-header {
  background: var(--vv-white);
  border-bottom: 3px solid var(--vv-orange);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--vv-shadow-sm);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--vv-black);
}
.header-brand img {
  height: 48px;
  width: auto;
}
.header-brand-text h1 {
  font-family: var(--vv-font);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--vv-black);
}
.header-brand-text span {
  font-size: 0.8rem;
  color: var(--vv-orange);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav a {
  text-decoration: none;
  color: var(--vv-gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--vv-radius);
  transition: var(--vv-transition);
}
.header-nav a:hover,
.header-nav a.active {
  background: var(--vv-orange-subtle);
  color: var(--vv-orange-dark);
}
.header-nav .btn-admin {
  background: var(--vv-orange);
  color: var(--vv-white);
  padding: 8px 18px;
  border-radius: var(--vv-radius);
}
.header-nav .btn-admin:hover {
  background: var(--vv-orange-dark);
  color: var(--vv-white);
}

/* --- Landing Page --- */
.landing-hero {
  background: linear-gradient(135deg, var(--vv-orange) 0%, var(--vv-orange-dark) 100%);
  color: var(--vv-white);
  padding: 60px 20px;
  text-align: center;
}
.landing-hero h2 {
  font-family: var(--vv-font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.landing-hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.landing-hero .school-year-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.landing-gate {
  max-width: 620px;
  margin: -40px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.gate-card {
  background: var(--vv-white);
  border-radius: var(--vv-radius-lg);
  box-shadow: var(--vv-shadow-lg);
  padding: 40px;
  text-align: center;
}
.gate-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vv-black);
}
.gate-card p {
  color: var(--vv-gray-500);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gate-btn {
  display: block;
  padding: 16px 24px;
  border-radius: var(--vv-radius);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--vv-transition);
  text-decoration: none;
}
.gate-btn-yes {
  background: var(--vv-orange);
  color: var(--vv-white);
}
.gate-btn-yes:hover {
  background: var(--vv-orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--vv-shadow-md);
}
.gate-btn-no {
  background: var(--vv-gray-100);
  color: var(--vv-gray-700);
  border: 2px solid var(--vv-gray-300);
}
.gate-btn-no:hover {
  background: var(--vv-gray-100);
  border-color: var(--vv-gray-500);
}
.gate-denied {
  display: none;
  background: var(--vv-red-light);
  border: 1px solid var(--vv-red);
  border-radius: var(--vv-radius);
  padding: 20px;
  margin-top: 20px;
  color: var(--vv-red);
  font-weight: 600;
  font-size: 0.95rem;
}
.gate-denied.visible { display: block; }

/* --- Transfer Criteria Info Section --- */
.criteria-section {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.criteria-card {
  background: var(--vv-white);
  border-radius: var(--vv-radius-lg);
  box-shadow: var(--vv-shadow-sm);
  padding: 32px;
  border-left: 4px solid var(--vv-orange);
}
.criteria-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--vv-black);
}
.criteria-list {
  list-style: none;
  padding: 0;
}
.criteria-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--vv-gray-100);
  font-size: 0.9rem;
  color: var(--vv-gray-700);
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.criteria-list li:last-child { border-bottom: none; }
.criteria-list li .criteria-num {
  font-weight: 700;
  color: var(--vv-orange);
  min-width: 24px;
}

/* --- Application Form --- */
.page-section {
  padding: 40px 0;
}
.form-card {
  background: var(--vv-white);
  border-radius: var(--vv-radius-lg);
  box-shadow: var(--vv-shadow-md);
  padding: 40px;
  margin-bottom: 30px;
}
.form-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--vv-black);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--vv-orange-subtle);
}
.form-card h3 .section-num {
  color: var(--vv-orange);
  margin-right: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.form-row.three-col {
  grid-template-columns: 2fr 2fr 1fr;
}
.form-row.single {
  grid-template-columns: 1fr;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vv-gray-700);
  margin-bottom: 6px;
}
.form-group label .required {
  color: var(--vv-red);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--vv-gray-300);
  border-radius: var(--vv-radius);
  font-size: 0.95rem;
  font-family: var(--vv-font);
  color: var(--vv-dark);
  transition: var(--vv-transition);
  background: var(--vv-white);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--vv-orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.15);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--vv-red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}
.form-group .field-error {
  font-size: 0.8rem;
  color: var(--vv-red);
  margin-top: 4px;
  display: none;
}
.form-group .field-error.visible { display: block; }
.form-group textarea { resize: vertical; min-height: 80px; }

/* Radio / Checkbox Groups */
.radio-group, .checkbox-group {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.radio-group label, .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
}
.radio-group input, .checkbox-group input {
  accent-color: var(--vv-orange);
  width: 18px;
  height: 18px;
}

/* Agreements / Acknowledgment Checkbox */
.agreement-box {
  background: var(--vv-orange-subtle);
  border: 1.5px solid var(--vv-orange);
  border-radius: var(--vv-radius);
  padding: 20px;
  margin-top: 20px;
}
.agreement-box p {
  font-size: 0.88rem;
  color: var(--vv-gray-700);
  line-height: 1.6;
  margin-bottom: 14px;
}
.agreement-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.agreement-box input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--vv-orange);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Signature Section */
.signature-section {
  margin-top: 20px;
}
.signature-section label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vv-gray-700);
  margin-bottom: 6px;
  display: block;
}
.signature-input {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  padding: 10px 14px;
  border: 1.5px solid var(--vv-gray-300);
  border-radius: var(--vv-radius);
  width: 100%;
  background: #FFFEF5;
  transition: var(--vv-transition);
}
.signature-input:focus {
  outline: none;
  border-color: var(--vv-orange);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.15);
}
.signature-preview {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--vv-dark);
  margin-top: 4px;
  min-height: 1.5em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--vv-radius);
  font-family: var(--vv-font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--vv-transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--vv-orange);
  color: var(--vv-white);
}
.btn-primary:hover {
  background: var(--vv-orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--vv-shadow-md);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--vv-white);
  color: var(--vv-gray-700);
  border: 2px solid var(--vv-gray-300);
}
.btn-secondary:hover {
  border-color: var(--vv-gray-500);
}
.btn-approve {
  background: var(--vv-green);
  color: var(--vv-white);
}
.btn-approve:hover { background: #247240; }
.btn-deny {
  background: var(--vv-red);
  color: var(--vv-white);
}
.btn-deny:hover { background: #A93226; }
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
  display: flex;
}

/* --- Status Tracker --- */
.status-lookup-card {
  background: var(--vv-white);
  border-radius: var(--vv-radius-lg);
  box-shadow: var(--vv-shadow-md);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}
.status-lookup-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.status-lookup-card p {
  font-size: 0.9rem;
  color: var(--vv-gray-500);
  margin-bottom: 24px;
}
.status-result {
  display: none;
  margin-top: 30px;
}
.status-result.visible { display: block; }

.status-timeline {
  position: relative;
  padding-left: 32px;
}
.status-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--vv-gray-300);
}
.timeline-step {
  position: relative;
  padding: 12px 0;
}
.timeline-step .step-dot {
  position: absolute;
  left: -32px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--vv-gray-300);
  border: 3px solid var(--vv-white);
  box-shadow: 0 0 0 2px var(--vv-gray-300);
}
.timeline-step.completed .step-dot {
  background: var(--vv-green);
  box-shadow: 0 0 0 2px var(--vv-green);
}
.timeline-step.current .step-dot {
  background: var(--vv-orange);
  box-shadow: 0 0 0 2px var(--vv-orange);
  animation: pulse 2s ease-in-out infinite;
}
.timeline-step.denied .step-dot {
  background: var(--vv-red);
  box-shadow: 0 0 0 2px var(--vv-red);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--vv-orange); }
  50% { box-shadow: 0 0 0 6px rgba(232, 119, 34, 0.25); }
}
.timeline-step .step-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--vv-black);
}
.timeline-step .step-date {
  font-size: 0.82rem;
  color: var(--vv-gray-500);
  margin-top: 2px;
}
.timeline-step .step-note {
  font-size: 0.85rem;
  color: var(--vv-gray-700);
  margin-top: 4px;
  font-style: italic;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-badge.submitted { background: var(--vv-blue-light); color: var(--vv-blue); }
.status-badge.principal-approved { background: var(--vv-orange-subtle); color: var(--vv-orange-dark); }
.status-badge.approved { background: var(--vv-green-light); color: var(--vv-green); }
.status-badge.denied { background: var(--vv-red-light); color: var(--vv-red); }

/* --- Admin Portal --- */
.admin-login {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 20px;
}
.admin-login .form-card { text-align: center; }
.admin-login .form-card h3 { text-align: center; border-bottom: none; }
.admin-login .form-card p { color: var(--vv-gray-500); font-size: 0.9rem; margin-bottom: 24px; }

.admin-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--vv-white);
  border-radius: var(--vv-radius);
  padding: 20px;
  box-shadow: var(--vv-shadow-sm);
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--vv-orange);
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--vv-gray-500);
  font-weight: 600;
  margin-top: 4px;
}

/* Applications table */
.table-card {
  background: var(--vv-white);
  border-radius: var(--vv-radius-lg);
  box-shadow: var(--vv-shadow-sm);
  overflow: hidden;
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--vv-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.table-filters {
  display: flex;
  gap: 10px;
}
.table-filters select {
  padding: 6px 12px;
  border: 1.5px solid var(--vv-gray-300);
  border-radius: var(--vv-radius);
  font-size: 0.85rem;
  font-family: var(--vv-font);
}
.app-table {
  width: 100%;
  border-collapse: collapse;
}
.app-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vv-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--vv-gray-100);
  background: var(--vv-gray-100);
  transition: color 0.15s;
}
.app-table th[onclick]:hover {
  color: var(--vv-orange);
}
.app-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--vv-gray-100);
  vertical-align: middle;
}
.app-table tr:hover { background: #FAFAFA; }
.app-table .student-name {
  font-weight: 600;
  color: var(--vv-black);
}
.app-table .confirmation-num {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--vv-gray-500);
}
.app-table .action-btns {
  display: flex;
  gap: 6px;
}

/* Application Detail Modal / View */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.visible { display: flex; }
.modal-content {
  background: var(--vv-white);
  border-radius: var(--vv-radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--vv-shadow-lg);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--vv-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--vv-gray-500);
  padding: 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--vv-black); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--vv-gray-100);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Detail fields in modal */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-item {
  padding: 8px 0;
}
.detail-item .detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vv-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.detail-item .detail-value {
  font-size: 0.95rem;
  color: var(--vv-dark);
}
.detail-item.full-width { grid-column: 1 / -1; }

/* Denial reason textarea */
.denial-reason-area {
  margin-top: 16px;
  display: none;
}
.denial-reason-area.visible { display: block; }
.denial-reason-area textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--vv-gray-300);
  border-radius: var(--vv-radius);
  font-size: 0.9rem;
  font-family: var(--vv-font);
  resize: vertical;
  min-height: 80px;
}

/* --- Toast / Notifications --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--vv-white);
  border-radius: var(--vv-radius);
  padding: 14px 20px;
  box-shadow: var(--vv-shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--vv-green);
}
.toast.error { border-left-color: var(--vv-red); }
.toast.info { border-left-color: var(--vv-blue); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--vv-gray-300);
  border-top-color: var(--vv-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.loading-overlay.visible { display: flex; }
.loading-overlay .spinner { width: 36px; height: 36px; }
.loading-overlay p { font-weight: 600; color: var(--vv-gray-700); }

/* --- Footer --- */
.site-footer {
  background: var(--vv-dark);
  color: var(--vv-gray-300);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.82rem;
  margin-top: 60px;
}
.site-footer a {
  color: var(--vv-orange-light);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .landing-hero h2 { font-size: 1.6rem; }
  .landing-hero { padding: 40px 20px; }
  .gate-card { padding: 28px 24px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.three-col { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 12px; }
  .header-nav { width: 100%; justify-content: center; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .app-table { font-size: 0.8rem; }
  .app-table th, .app-table td { padding: 10px 8px; }
  .modal-content { margin: 10px; }
}
@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; gap: 8px; }
}

/* --- Print Styles --- */
@media print {
  .site-header, .site-footer, .header-nav, .btn, .gate-buttons { display: none; }
  .form-card, .modal-content { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================
   New Transfer - Upload Zones & Agreements
   ============================================ */

.upload-category {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--vv-gray-100);
}
.upload-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.upload-zone {
  border: 2px dashed var(--vv-gray-300);
  border-radius: var(--vv-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--vv-gray-500);
  font-size: 0.88rem;
}
.upload-zone:hover {
  border-color: var(--vv-orange);
  background: var(--vv-orange-subtle);
}
.upload-hint {
  font-size: 0.78rem;
  color: var(--vv-gray-400);
}

.file-list {
  margin-top: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--vv-gray-50);
  border: 1px solid var(--vv-gray-100);
  border-radius: var(--vv-radius);
  margin-bottom: 4px;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vv-gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.file-size {
  font-size: 0.78rem;
  color: var(--vv-gray-400);
  white-space: nowrap;
}
.file-remove {
  background: none;
  border: none;
  color: var(--vv-red);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.file-remove:hover {
  background: var(--vv-red-light);
}

/* New Transfer Agreement Checkboxes */
.new-transfer-agreements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agreement-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
  padding: 10px 14px;
  background: var(--vv-gray-50);
  border: 1px solid var(--vv-gray-100);
  border-radius: var(--vv-radius);
  transition: background 0.2s;
}
.agreement-check:hover {
  background: var(--vv-orange-subtle);
}
.agreement-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--vv-orange);
  width: 18px;
  height: 18px;
}

/* Transfer Type Badges */
.type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.type-badge.current {
  background: #EBF5FB;
  color: #2980B9;
}
.type-badge.new {
  background: #E8F5EC;
  color: #2D8A4E;
}

/* Transfer Type Filter Tabs */
.type-filter-tab {
  transition: color 0.2s, border-color 0.2s;
}
.type-filter-tab:hover {
  color: var(--vv-orange) !important;
}

/* Responsive: Upload zones */
@media (max-width: 600px) {
  .file-name { max-width: 160px; }
  .upload-zone { padding: 16px; }
  .agreement-check { padding: 8px 10px; font-size: 0.82rem; }
}
