:root {
  --sparda-blue: #003366;
  --sparda-light: #0066cc;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ff9900;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #d1d9e0;
  --text: #1a1a1a;
  --text-dim: #6c757d;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); line-height:1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

.header { background: var(--surface); padding: 20px 32px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 32px; display: flex; align-items: center; gap: 24px; }
.header-logo { padding-right: 24px; border-right: 2px solid var(--border); }
.logo-img { height: 50px; display: block; }
.header-title { flex: 1; }
.header-title h1 { font-size: 22px; color: var(--sparda-blue); margin-bottom: 4px; font-weight: 600; }
.header-title p { color: var(--text-dim); font-size: 13px; }
.header-system { padding-left: 24px; border-left: 2px solid var(--border); }
.system-status { display: flex; align-items: center; gap: 8px; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.status-text { font-size: 12px; color: var(--text-dim); font-weight: 500; }

.upload-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }

.mock-service-banner { grid-column: 1 / -1; background: linear-gradient(135deg, #e8f4fd 0%, #d4e9f7 100%); border: 2px solid #b3d9f2; border-radius: 6px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.banner-icon { font-size: 28px; color: var(--sparda-blue); }
.banner-content { flex: 1; }
.banner-title { font-size: 14px; font-weight: 600; color: var(--sparda-blue); margin-bottom: 4px; }
.banner-text { font-size: 12px; color: var(--text-dim); }
.load-mock-btn { background: var(--sparda-blue); color: white; border: none; padding: 10px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.load-mock-btn:hover { background: var(--sparda-light); }

.upload-card { background: var(--surface); padding: 24px; border-radius: 6px; border: 1px solid var(--border); }
.upload-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: block; }
.upload-source { font-size: 11px; color: var(--text-dim); margin-bottom: 16px; font-style: italic; }
.upload-card input[type="file"] { display: none; }
.upload-btn { display: inline-block; background: var(--sparda-blue); color: white; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 500; transition: background 0.2s; }
.upload-btn:hover { background: var(--sparda-light); }
.file-name { margin-top: 12px; font-size: 12px; color: var(--text-dim); min-height: 18px; font-style: italic; }

.check-btn { grid-column: 1 / -1; background: var(--success); color: white; border: none; padding: 14px 28px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.check-btn:hover:not(:disabled) { background: #218838; }
.check-btn:disabled { background: var(--border); cursor: not-allowed; }

.result-section { background: var(--surface); padding: 28px; border-radius: 6px; border: 1px solid var(--border); }

.result-header { text-align: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--border); }
.result-status { display: inline-block; padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.result-status.success { background: #d4edda; color: #155724; }
.result-status.error { background: #f8d7da; color: #721c24; }
.result-title { font-size: 18px; color: var(--text); font-weight: 600; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.result-card { background: var(--bg); padding: 18px; border-radius: 4px; border: 1px solid var(--border); }
.result-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 14px; font-weight: 600; }
.info-grid { display: grid; gap: 10px; }
.info-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-dim); font-weight: 500; }
.info-value { color: var(--text); font-weight: 600; }

.checks-section { margin-bottom: 28px; }
.checks-section h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); font-weight: 600; }
.checks-list { display: grid; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 4px; font-size: 13px; border-left: 3px solid; }
.check-item.pass { background: #d4edda; border-color: var(--success); color: #155724; }
.check-item.fail { background: #f8d7da; border-color: var(--danger); color: #721c24; }
.check-icon { font-weight: bold; margin-top: 2px; }
.check-content { flex: 1; }
.check-content-title { font-weight: 600; margin-bottom: 4px; }
.check-content-message { font-size: 12px; opacity: 0.9; }

.decision-section { background: var(--bg); padding: 20px; border-radius: 4px; border: 2px solid; margin-bottom: 20px; text-align: center; }
.decision-section.approved { border-color: var(--success); }
.decision-section.rejected { border-color: var(--danger); }
.decision-section h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.decision-section p { color: var(--text-dim); font-size: 13px; }
.decision-approved { color: var(--success); }
.decision-rejected { color: var(--danger); }

.reset-btn { width: 100%; background: var(--text-dim); color: white; border: none; padding: 12px; border-radius: 4px; font-size: 13px; cursor: pointer; font-weight: 500; }
.reset-btn:hover { background: #5a6268; }

@media (max-width: 768px) {
  .upload-section, .result-grid { grid-template-columns: 1fr; }
  .check-btn { grid-column: 1; }
  .mock-service-banner { flex-direction: column; text-align: center; }
  .load-mock-btn { width: 100%; }
  .header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-logo { border-right: none; border-bottom: 2px solid var(--border); padding-right: 0; padding-bottom: 16px; width: 100%; }
  .header-system { border-left: none; border-top: 2px solid var(--border); padding-left: 0; padding-top: 16px; width: 100%; }
}
