* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 1rem;
}

.input-section {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#addressInput {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

#addressInput:focus {
  border-color: #4a90e2;
}

#checkBtn {
  padding: 14px 32px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

#checkBtn:hover {
  background-color: #357abd;
}

#checkBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.loader {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.error {
  background-color: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
  color: #c33;
  text-align: center;
}

.results {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.result-header h2 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin: 0;
}

.final-result {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
}

.final-result.qualified {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.final-result.maybe {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.final-result.not-qualified {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.info-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #1a1a1a;
  border-bottom: 2px solid #4a90e2;
  padding-bottom: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #555;
}

.value {
  color: #333;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid #f0f0f0;
}

.status {
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status.pass { background-color: #d4edda; color: #155724; }
.status.fail { background-color: #f8d7da; color: #721c24; }
.status.warning { background-color: #fff3cd; color: #856404; }

.btm-list {
  margin-top: 12px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btm-item {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.btm-item:last-child {
  border-bottom: none;
}

.hours-day {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}

.hours-day .day {
  font-weight: 600;
  color: #555;
}

.hours-day .time { color: #333; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .input-section { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
  .result-header { flex-direction: column; align-items: flex-start; }
}
