* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f3f6fb, #e7edf7);
  color: #1f2937;
}

.page-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 24px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0 0 6px 0;
  font-size: 30px;
  color: #111827;
}

.page-header p {
  margin: 0;
  color: #6b7280;
}

.btn-home {
  display: inline-block;
  text-decoration: none;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s;
}

.btn-home:hover {
  background: #1f2937;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card.full-width {
  grid-column: 1 / -1;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #111827;
  font-size: 22px;
}

.sub-title {
  margin-top: 22px;
  margin-bottom: 14px;
  font-size: 16px;
  color: #374151;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #374151;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary {
  width: 100%;
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  width: 100%;
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
}

.btn-danger:hover {
  background: #b91c1c;
}

.info-box {
  margin-top: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 14px;
  border-radius: 14px;
  line-height: 1.5;
  font-size: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.summary-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.summary-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.summary-box strong {
  font-size: 24px;
}

.blue {
  color: #2563eb;
}

.red {
  color: #dc2626;
}

.green {
  color: #059669;
}

.orange {
  color: #d97706;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.history-table th,
.history-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.history-table th {
  background: #f9fafb;
  color: #374151;
}

.empty-state {
  text-align: center;
  padding: 24px;
  color: #6b7280;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  word-break: break-word;
}

.file-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .history-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .page-container {
    padding: 16px;
  }
}