/* hankookilbo-chart-styles.css */
body {
  font-family: 'Nanum Gothic', 'Malgun Gothic', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  color: #333;
}

.main-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.chart-container, .controls-container {
  background-color: white;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.chart-container:hover, .controls-container:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

h1 {
  color: #006241; /* Pantone 7484 */
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

#chart-wrapper {
  position: relative;
  height: 0;
  width: 100%;
  padding-bottom: 50%; /* 2:1 Aspect Ratio */
}

#myChart {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  max-height: 100%;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.action-button {
  padding: 12px 20px;
  background-color: #1B813E;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(27,129,62,0.2);
}

.action-button:hover {
  background-color: #146c32;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(27,129,62,0.3);
}

.action-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(27,129,62,0.2);
}

.json-input-container {
  margin-top: 25px;
}

#jsonInput {
  width: 100%;
  height: 150px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#jsonInput:focus {
  outline: none;
  border-color: #1B813E;
  box-shadow: 0 0 0 3px rgba(27,129,62,0.1);
}

@media (max-width: 768px) {
  .main-container {
    padding: 15px;
  }
  
  .chart-container, .controls-container {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .action-button {
    padding: 10px 15px;
    font-size: 14px;
  }

  .button-container {
    flex-direction: column;
    align-items: stretch;
  }
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    padding: 12px 20px;
    background-color: #1B813E;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(27,129,62,0.2);
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 300px;
}

.action-button:hover {
    background-color: #146c32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27,129,62,0.3);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(27,129,62,0.2);
}

#savedImageUrl, #jsonInput {
    width: 100%;
    height: 60px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#savedImageUrl:focus, #jsonInput:focus {
    outline: none;
    border-color: #1B813E;
    box-shadow: 0 0 0 3px rgba(27,129,62,0.1);
}

#savedImageUrl {
    background-color: #f8f9fa;
    color: #333;
}

#jsonInput {
    height: 150px;
}

.json-input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .action-button {
        width: 100%;
        max-width: none;
    }
}
