.nps-dashboard * {
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}
.nps-dashboard {
  max-width: 1200px;
  margin: 0 auto;
}
.nps-dashboard .title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4285f4;
  margin-bottom: 10px;
}
.nps-dashboard .subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}
.nps-dashboard .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #4285f4;
  margin-bottom: 20px;
}
.nps-dashboard .nps-container {
  background: linear-gradient(135deg, #f8f9fa, #e8f0fe);
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.08);
  border-left: 4px solid #4285f4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 16px;
}
.form-grid label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #333;
}
.form-grid input,
.form-grid select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-size: 0.9rem;
}
.form-grid .full-span {
  grid-column: 1 / -1;
  text-align: center;
}
.form-grid button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}
.primary-button {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.primary-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.primary-button:disabled {
  background-color: #a9c2f5;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  background-color: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.secondary-button:hover {
  background-color: #e8e8e8;
  transform: translateY(-2px);
}
.secondary-button svg {
  width: 16px;
  height: 16px;
}

.results-container {
  position: static;
  max-width: 1200px;
  margin: 0 auto;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.results-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4285f4;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fe;
}

.results-container .data-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.results-container .data-table th {
  background-color: #4285f4;
  color: white;
  font-weight: 600;
  padding: 12px 8px;
  text-align: center;
  position: sticky;
  top: 0;
}

.results-container .data-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #e8f0fe;
}

.results-container .data-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.results-container .data-table tr:hover {
  background-color: #e8f0fe;
}

.results-container .risk {
  color: #d93025;
  font-weight: 600;
  background-color: rgba(217, 48, 37, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin: 2px;
}

.results-container .chart-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0 30px;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
  border-left: 4px solid #4285f4;
}

.results-container .chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4285f4;
  margin-bottom: 15px;
}

.results-container .summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.results-container .summary-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.results-container .summary-card:hover {
  transform: translateY(-3px);
}

.results-container .summary-card .card-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.results-container .summary-card .card-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4285f4;
}

.results-container .summary-card .card-change {
  font-size: 0.9rem;
  margin-top: 5px;
}

.results-container .positive-change {
  color: #0f9d58;
}

.results-container .negative-change {
  color: #d93025;
}

.results-container .no-data {
  text-align: center;
  padding: 40px;
  color: #666;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

@media (max-width: 1200px) {
  .results-container .data-table {
    display: block;
    overflow-x: auto;
  }
}

.summary-header {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.data-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #4285f4;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.organization-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4285f4;
  margin: 0 0 5px;
}

.address-container {
  display: flex;
  align-items: center;
  margin-top: 15px;
  padding: 10px 15px;
  background-color: rgba(66, 133, 244, 0.08);
  border-radius: 4px;
  width: fit-content;
}

.address-icon {
  color: #4285f4;
  margin-right: 8px;
  font-size: 1.2rem;
}

.address-text {
  color: #333;
  font-size: 0.95rem;
}

.table-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4285f4;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fe;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #4285f4;
  font-weight: 500;
}

.loading-indicator .spinner {
  border: 3px solid rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  border-top: 3px solid #4285f4;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  animation: spin 1s linear infinite;
}

.nps-dashboard-notice {
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
}
.nps-dashboard-notice li {
    margin-bottom: 5px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 인쇄 스타일 */
@media print {
  body {
    background-color: white;
    margin: 0;
    padding: 0;
  }

  .nps-dashboard .container {
    box-shadow: none;
    border-left: 2px solid #4285f4;
    break-inside: avoid;
  }

  .form-grid, 
  button,
  .secondary-button {
    display: none !important;
  }

  .results-container {
    display: block !important;
  }

  .results-container .chart-container {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e8f0fe;
  }

  .results-container .data-table {
    break-inside: auto;
    box-shadow: none;
  }

  .results-container .summary-cards {
    break-inside: avoid;
  }

  .results-container .summary-card {
    box-shadow: none;
    border: 1px solid #e8f0fe;
  }
}