/* QR Code Generator Specific Styles */

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
}

.page-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* QR Generator Layout */
.qr-generator-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Panel Common Styles */
.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F5F7FA;
}

/* Input Panel */
.input-panel {
  height: fit-content;
}

/* Input Type Selector */
.input-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.type-btn {
  padding: 12px 16px;
  background-color: #F5F7FA;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.type-btn:hover {
  background-color: #E5E7EB;
  border-color: #1A73E8;
}

.type-btn.active {
  background-color: #1A73E8;
  border-color: #1A73E8;
  color: #FFFFFF;
}

/* Input Section */
.input-section {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.qr-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  resize: vertical;
  transition: border-color 0.3s ease;
  line-height: 1.6;
}

.qr-input:focus {
  outline: none;
  border-color: #1A73E8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.input-hint {
  font-size: 0.875rem;
  color: #999999;
  margin-top: 6px;
  text-align: right;
}

/* Quick Examples */
.quick-examples {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #F0F9FF;
  border-radius: 8px;
  border-left: 3px solid #1A73E8;
}

.examples-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

.example-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.example-btn {
  padding: 6px 12px;
  background-color: #FFFFFF;
  border: 1px solid #1A73E8;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #1A73E8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.example-btn:hover {
  background-color: #1A73E8;
  color: #FFFFFF;
}

/* Options Section */
.options-section {
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 2px solid #F5F7FA;
}

.options-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 16px;
}

.option-group {
  margin-bottom: 20px;
}

.option-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 8px;
}

.size-selector {
  display: flex;
  gap: 8px;
}

.size-btn {
  flex: 1;
  padding: 10px 16px;
  background-color: #F5F7FA;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-btn:hover {
  background-color: #E5E7EB;
  border-color: #1A73E8;
}

.size-btn.active {
  background-color: #1A73E8;
  border-color: #1A73E8;
  color: #FFFFFF;
}

.select-input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.select-input:focus {
  outline: none;
  border-color: #1A73E8;
}

.option-hint {
  font-size: 0.8125rem;
  color: #999999;
  margin-top: 6px;
  line-height: 1.5;
}

/* Generate Button */
.generate-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

.generate-btn:disabled {
  background-color: #CCCCCC;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.generate-btn:disabled:hover {
  background-color: #CCCCCC;
  transform: none;
  box-shadow: none;
}

/* Result Panel */
.result-panel {
  min-height: 500px;
}

.qr-display-area {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 32px;
  background-color: #F5F7FA;
  border-radius: 12px;
}

.qr-placeholder {
  text-align: center;
  color: #999999;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.placeholder-icon + p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#qrcode {
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#qrcode img,
#qrcode canvas {
  display: block;
  border-radius: 8px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.action-buttons .btn {
  flex: 1;
}

/* Generated Info */
.generated-info {
  padding: 20px;
  background-color: #F0F9FF;
  border-radius: 8px;
  border-left: 4px solid #1A73E8;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666666;
}

.info-value {
  font-size: 0.875rem;
  color: #333333;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Usage Guide */
.usage-guide {
  margin-bottom: 48px;
}

.guide-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 12px;
}

.guide-content p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.7;
}

.guide-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 12px;
}

.guide-list li {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .qr-generator-layout {
    grid-template-columns: 1fr;
  }

  .input-type-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-buttons {
    flex-direction: column;
  }

  .page-icon {
    font-size: 3rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .info-value {
    max-width: 100%;
    text-align: left;
  }
}