.emoji-picker-tool {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background: #f5f5f0;
  border: 2px solid #333;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: #222;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
}

.tool-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px double #333;
}

.tool-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.subtitle {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.example-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-example,
.btn-clear {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.btn-example:hover,
.btn-clear:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.btn-example:active,
.btn-clear:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.tool-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.category-section,
.settings-section {
  background: #fff;
  border: 1px solid #333;
  padding: 15px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.section-title {
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  font-size: 16px;
  font-weight: 700;
  color: #9b59b6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: #f9f9f9;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.1s;
  font-size: 13px;
}

.category-btn:hover {
  background: #fff;
  border-color: #9b59b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-btn.active {
  background: #f3e5f5;
  border-color: #9b59b6;
  border-width: 3px;
  box-shadow: inset 0 0 0 2px #9b59b6;
}

.category-icon {
  font-size: 28px;
}

.category-name {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.category-btn.active .category-name {
  color: #9b59b6;
}

.selected-category {
  padding: 10px;
  background: #f3e5f5;
  border: 2px dashed #9b59b6;
  text-align: center;
  font-size: 13px;
}

.selected-label {
  font-weight: 600;
  color: #666;
}

.selected-value {
  font-weight: 700;
  color: #9b59b6;
  margin-left: 6px;
}

.settings-group {
  margin-bottom: 15px;
}

.settings-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f9f9f9;
  border: 2px solid #ddd;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.1s;
}

.radio-label:hover {
  background: #fff;
  border-color: #999;
}

.radio-label input[type="radio"] {
  margin: 0;
  accent-color: #9b59b6;
}

.radio-label input[type="radio"]:checked + span {
  font-weight: 700;
  color: #9b59b6;
}

.custom-input-group {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
    margin-bottom: 15px;
  }
}

.custom-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.custom-count-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #9b59b6;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  box-sizing: border-box;
  transition: all 0.2s;
}

.custom-count-input:focus {
  outline: none;
  background: #f3e5f5;
  border-color: #8e44ad;
  box-shadow: 0 0 0 3px rgba(155,89,182,0.2);
}

.custom-count-input::-webkit-inner-spin-button,
.custom-count-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 30px;
}

.input-unit {
  font-size: 14px;
  font-weight: 600;
  color: #9b59b6;
  min-width: 20px;
}

.input-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.btn-pick {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: #9b59b6;
  border: 2px solid #333;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  transition: all 0.1s;
}

.btn-pick:hover {
  background: #8e44ad;
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.btn-pick:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-pick:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
}

.quick-stats {
  margin-top: 15px;
  padding: 12px;
  background: #fffacd;
  border: 2px dashed #333;
}

.stats-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.stats-label {
  font-weight: 600;
  color: #666;
}

.stats-value {
  font-weight: 700;
  color: #9b59b6;
}

.results-section {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.results-title {
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  padding-bottom: 12px;
  border-bottom: 3px double #333;
}

.result-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 20px;
  background: #f9f9f9;
  border: 2px dashed #9b59b6;
  min-height: 120px;
}

.emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #fff;
  border: 2px solid #ddd;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.emoji-item:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: #9b59b6;
  box-shadow: 4px 4px 0 rgba(155,89,182,0.3);
  z-index: 1;
}

.emoji-item:active {
  transform: scale(0.95);
}

.emoji-item.copied {
  animation: copyPulse 0.4s ease;
}

@keyframes copyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); background: #f3e5f5; }
}

.result-hint {
  text-align: center;
  margin: 0 0 15px 0;
  font-size: 12px;
  color: #999;
  font-weight: 600;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.btn-copy,
.btn-save,
.btn-share,
.btn-link {
  padding: 10px 8px;
  background: #fff;
  border: 2px solid #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  text-align: center;
}

.btn-copy:hover,
.btn-save:hover,
.btn-share:hover,
.btn-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.btn-copy:active,
.btn-save:active,
.btn-share:active,
.btn-link:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-copy {
  background: #3498db;
  color: #fff;
  border-color: #2980b9;
}

.btn-save {
  background: #27ae60;
  color: #fff;
  border-color: #229954;
}

.btn-share {
  background: #e67e22;
  color: #fff;
  border-color: #d35400;
}

.btn-link {
  background: #9b59b6;
  color: #fff;
  border-color: #8e44ad;
}

.copy-notification {
  text-align: center;
  padding: 10px;
  background: #d4edda;
  border: 2px solid #28a745;
  color: #155724;
  font-size: 14px;
  font-weight: 600;
  animation: notificationSlide 0.3s ease;
}

@keyframes notificationSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collection-section {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

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

.collection-header .section-title {
  margin: 0;
  border: none;
  padding: 0;
}

.btn-clear-collection {
  padding: 6px 12px;
  background: #e74c3c;
  border: 2px solid #333;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: all 0.1s;
}

.btn-clear-collection:hover {
  background: #c0392b;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.btn-clear-collection:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  padding: 15px;
  background: #f9f9f9;
  border: 2px dashed #9b59b6;
  min-height: 80px;
}

.collection-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border: 2px solid #ddd;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.collection-item:hover {
  transform: scale(1.1);
  border-color: #9b59b6;
  box-shadow: 3px 3px 0 rgba(155,89,182,0.3);
  z-index: 1;
}

.collection-item .delete-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #e74c3c;
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.collection-item:hover .delete-icon {
  opacity: 1;
}

.collection-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 14px;
}

.footer-note {
  margin-top: 15px;
  padding: 12px;
  background: #f0f0f0;
  border: 2px dashed #999;
  text-align: center;
}

.footer-note p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

/* 반응형 */
@media (max-width: 768px) {
  .tool-main {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .result-display {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
  
  .emoji-picker-tool {
    padding: 15px;
  }
  
  .example-buttons {
    flex-direction: column;
  }
  
  .btn-example,
  .btn-clear {
    width: 100%;
  }
  
  .result-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .result-display {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  }
  
  .emoji-item {
    font-size: 28px;
    padding: 10px;
  }
  
  .result-actions {
    grid-template-columns: 1fr;
  }
}