* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', Arial, sans-serif; background:#f6f7f9; color:#111; }
.top { padding:16px 20px; background:#0b5fff; color:#fff; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; letter-spacing: 0.5px; }
.header-actions { display: flex; gap: 1rem; }
.admin-btn { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.admin-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); }
.card { background:#fff; margin:16px auto; padding:16px; max-width:960px; border-radius:8px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.hidden { display:none; }
label { display:flex; flex-direction:column; gap:6px; margin:8px 0; font-size:14px; }
input, select { padding:10px 12px; border:1px solid #ddd; border-radius:6px; font-size:14px; }
.readonly { background:#fafafa; color:#666; }
input::placeholder { color:#9aa0a6; }
.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.primary { background:#0b5fff; color:#fff; border:none; padding:10px 14px; border-radius:6px; cursor:pointer; transition: all 0.2s ease; }
.primary:hover { background:#0052cc; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.primary:active { background:#003d99; transform: translateY(0); }
.secondary { background:#eef2ff; color:#0b5fff; border:none; padding:10px 14px; border-radius:6px; cursor:pointer; transition: all 0.2s ease; }
.secondary:hover { background:#d6e3ff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.secondary:active { background:#c4d7ff; transform: translateY(0); }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.grid2 > button { align-self:end; height: 40px; }
table { width:100%; border-collapse: collapse; }
th, td { border-bottom:1px solid #eee; padding:10px; text-align:left; font-size:14px; }
.muted { color:#555; margin-top:8px; }
.loading { opacity: 0.6; pointer-events: none; }
.success { color: #28a745; }
.error { color: #dc3545; }
.info { color: #17a2b8; }

/* 상태 표시 스타일 */
.status-text {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.status-text.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-text.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-text.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* 대시보드 스타일 */
.user-info-section, .assets-section, .loans-section, .loan-conditions-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.user-info-section h3, .assets-section h3, .loans-section h3, .loan-conditions-section h3 {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1.1rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.user-info-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.user-info-item .label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.user-info-item .value {
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
}

.assets-table, .loans-table {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.assets-table table, .loans-table table {
  margin: 0;
  border: none;
}

.assets-table th, .loans-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

.dashboard-actions {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* 대출 조건 결과 스타일 */
.loan-conditions {
  margin-top: 1rem;
}

.bank-condition-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.bank-condition-card h4 {
  margin: 0 0 0.5rem 0;
  color: #007bff;
}

.condition-item {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.condition-item.success {
  color: #28a745;
}

.condition-item.warning {
  color: #ffc107;
}

.condition-item.error {
  color: #dc3545;
}

.max-loan-amount {
  font-size: 1.1rem;
  font-weight: bold;
  color: #007bff;
  margin-top: 0.5rem;
}

/* 지역 규제 정보 스타일 */
.property-region-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.property-region-info h4 {
  margin: 0 0 1rem 0;
  color: #495057;
}

.region-info-item {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.region-info-item h5 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1rem;
}

.region-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.regulated {
  background: #dc3545;
  color: white;
}

.status-badge.non-regulated {
  background: #28a745;
  color: white;
}

.status-badge.land-permit {
  background: #ffc107;
  color: #212529;
}

.status-badge.no-land-permit {
  background: #6c757d;
  color: white;
}

.ltv-info {
  background: #007bff;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}


