/* url-shortener.css */
/* URL 단축 스타일 */
.url-shortener-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.url-shortener-container .input-group {
  margin-bottom: 25px;
}

.url-shortener-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.url-shortener-container input.full-width {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.url-shortener-container input.full-width:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.service-selection {
  margin-bottom: 25px;
}

.service-selection select {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.service-selection select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
  outline: none;
}

.url-result-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

#shortenButton {
  width: 100%;
  padding: 14px;
  margin-bottom: 25px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

#shortenButton:hover {
  background-color: #357abd;
  transform: translateY(-1px);
}

#shortenButton:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

#copyButton {
  padding: 12px 20px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

#copyButton:hover {
  background-color: #27ae60;
  transform: translateY(-1px);
}

.result-container {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #f0f2f5;
  animation: fadeIn 0.5s ease;
}

#shortUrl {
  background-color: #f8f9fa;
  color: #2c3e50;
  font-family: monospace;
  font-size: 14px;
}

#shortUrl[readonly] {
  cursor: default;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .url-shortener-container {
    padding: 20px;
  }

  .url-result-wrapper {
    flex-direction: column;
  }

  #copyButton {
    width: 100%;
  }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
  .url-shortener-container {
    background: #1a1a1a;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  }

  .url-shortener-container label {
    color: #e0e0e0;
  }

  .url-shortener-container input.full-width,
  .service-selection select {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
  }

  #shortUrl {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }

  .result-container {
    border-top-color: #404040;
  }
}
