/* ip-checker.css */
/* IP 주소 확인 스타일 */
.ip-checker-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.ip-info-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
}

.ip-info-box h3 {
  color: #2196F3;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-info-box h3 i {
  font-size: 20px;
}

.ip-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ip-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ip-info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ip-info-item .label {
  color: #555;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-info-item .value {
  color: #2196F3;
  font-weight: 600;
  font-family: monospace;
  font-size: 15px;
}

.ip-info-item.highlight {
  background: #e3f2fd;
}

/* 새로고침 버튼 */
#refreshIp {
  width: 100%;
  padding: 14px 20px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#refreshIp:hover {
  background: #1976D2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

#refreshIp i {
  font-size: 18px;
}

/* IP 설명 영역 */
.ip-description {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  border: 2px solid #e3f2fd;
}

.ip-description h4 {
  color: #2196F3;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.ip-description ul {
  list-style: none;
  padding: 0;
}

.ip-description li {
  color: #666;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.ip-description li:before {
  content: "•";
  color: #2196F3;
  font-weight: bold;
  position: absolute;
  left: 8px;
}

.error-message {
  color: #d32f2f;
  text-align: center;
  padding: 20px;
  background: #ffebee;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: 500;
}

/* 로딩 애니메이션 */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2196F3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .ip-checker-container {
    padding: 20px;
    margin: 0 15px;
  }
  
  .ip-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .ip-info-item .value {
    align-self: flex-end;
  }
}
