/* 전역 스타일 */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #6c757d;
  --danger-color: #dc3545;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f6f8;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
  min-height: calc(100vh - 180px);
}

/* 헤더 스타일 개선 */
header {
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 0;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo {
  display: block;
  width: 300px;
  height: 100px;
  padding: 10px 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* 메인 폼 스타일 */
.url-form-container {
  max-width: 1200px;
  margin: 40px auto;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(66, 153, 225, 0.2);
  position: relative;
  overflow: hidden;
}

/* 파란색 가로줄 제거 */
.url-form-container::before {
  display: none;
}

.url-form-container h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 35px;
  color: #1a3353;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.url-form-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a6cf7, #2196f3);
  border-radius: 2px;
}

.url-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #37474f;
  font-size: 17px;
  transition: all 0.3s ease;
}

.form-group:focus-within label {
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f9fafc;
}

.form-group input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.15);
  outline: none;
  background-color: #fff;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.input-prefix {
  padding: 16px 20px;
  background-color: #4a6cf7;
  border: 2px solid #4a6cf7;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.input-group input {
  border-radius: 0 10px 10px 0;
  flex: 1;
  border-left: none;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #4a6cf7, #2196f3);
  color: white;
  border: none;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2196f3, #4a6cf7);
  transition: all 0.4s ease;
  z-index: -1;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(74, 108, 247, 0.4);
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn:active {
  transform: translateY(-1px);
}

.info-text {
  margin-top: 20px;
  text-align: center;
  color: var(--secondary-color);
}

/* 알림 스타일 */
.alert {
  padding: 18px 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-weight: 500;
  border: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.alert-success {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.alert-error {
  background-color: #ffebee;
  color: #c62828;
}

.alert-warning {
  background-color: #fff3e0;
  color: #ef6c00;
}

/* 에러/보류 페이지 스타일 */
.error-container, .pending-container {
  text-align: center;
  max-width: 600px;
  margin: 100px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-container h1 {
  font-size: 72px;
  color: var(--danger-color);
  margin-bottom: 10px;
}

/* 공지사항 래퍼 스타일 */
.notice-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0;
}

/* 공지사항 디자인 개선 */
.notice-banner {
  background: linear-gradient(145deg, #f0f7ff, #e3f2fd);
  border: 2px solid rgba(33, 150, 243, 0.3);
  border-radius: 16px;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: linear-gradient(to bottom, #4a6cf7, #2196f3, #64b5f6);
  border-radius: 6px 0 0 6px;
}

.notice-banner::after {
  content: '공지사항';
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(45deg, #4a6cf7, #2196f3);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 0 16px 0 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.notice-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.25);
}

.notice-content {
  line-height: 1.8;
  font-size: 17px;
  color: #37474f;
  position: relative;
  padding-left: 0;
  font-weight: 500;
  margin-top: 10px;
}

.notice-content::before {
  display: none;
}

.notice-date {
  font-size: 14px;
  color: #6c757d;
  text-align: right;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px dashed rgba(33, 150, 243, 0.2);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .header-container {
    height: 80px;
  }
  
  .logo {
    width: 200px;
    height: 80px;
  }
  
  .url-form-container {
    padding: 30px;
    margin: 20px 15px;
    border-radius: 15px;
  }
  
  .url-form-container h1 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .container {
    padding: 15px;
  }
  
  .form-group input,
  .input-prefix {
    padding: 14px;
  }
  
  .form-group label {
    font-size: 16px;
  }
  
  .submit-btn {
    padding: 16px;
  }
  
  .notice-banner {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .notice-content {
    font-size: 16px;
    padding-left: 40px;
  }
  
  .notice-content::before {
    font-size: 26px;
  }
}

/* 완료 페이지 스타일 개선 */
.completed-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.completed-box {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 50px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66, 153, 225, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.completed-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

.completed-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #4a6cf7, #2196f3, #64b5f6);
}

.completed-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.completed-icon img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.completed-box h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #1a3353;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.completed-box h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #4a6cf7, #2196f3);
  border-radius: 3px;
}

.completed-info {
  background-color: #f8faff;
  padding: 35px;
  border-radius: 18px;
  margin-bottom: 30px;
  border: 1px solid rgba(33, 150, 243, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.success-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  background: linear-gradient(145deg, #e6f7ff, #f0f7ff);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(33, 150, 243, 0.15);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.success-text {
  flex-grow: 1;
}

.success-message {
  font-size: 18px;
  font-weight: 700;
  color: #1a73e8;
  margin-bottom: 5px;
}

.success-submessage {
  color: #5f6368;
  font-size: 15px;
}

.url-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-group label {
  font-weight: 600;
  color: #37474f;
  font-size: 17px;
}

.url-display {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8f9fa;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.url-display:hover {
  border-color: #2196f3;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.url-display span {
  flex: 1;
  font-size: 16px;
  color: #37474f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: linear-gradient(135deg, #4a6cf7, #2196f3);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

.copy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(74, 108, 247, 0.3);
}

.copy-btn.copied {
  background: #4CAF50;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.original-url span {
  white-space: normal;
  word-break: break-all;
}

.info-group.important {
  background-color: #fffde7;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #FFD54F;
  position: relative;
}

.important-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.important-icon {
  font-size: 22px;
  margin-right: 10px;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.code-info {
  font-size: 14px;
  color: #f57c00;
  margin-top: 12px;
  font-style: italic;
  padding-left: 5px;
  border-left: 3px solid #FFD54F;
}

.contact-info {
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px dashed #e0e0e0;
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
}

.contact-info h3 {
  font-size: 18px;
  color: #1a3353;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-info p {
  font-size: 16px;
  color: #37474f;
}

.contact-info strong {
  background: linear-gradient(135deg, #4a6cf7, #2196f3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.button-group {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.home-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4a6cf7, #2196f3);
  color: white;
  padding: 16px 35px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.home-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
  transition: all 0.4s ease;
  z-index: -1;
}

.home-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 108, 247, 0.4);
  text-decoration: none;
  color: white;
}

.home-btn:hover::before {
  left: 100%;
}

/* 반응형 처리 */
@media (max-width: 768px) {
  .completed-container {
    padding: 0 15px;
    margin: 30px auto;
  }
  
  .completed-box {
    padding: 35px 20px;
    border-radius: 20px;
  }
  
  .completed-icon img {
    width: 100px;
    height: 100px;
  }
  
  .completed-box h1 {
    font-size: 28px;
  }
  
  .completed-info {
    padding: 25px 20px;
  }
  
  .success-header {
    padding: 15px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .check-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .url-info {
    padding: 20px;
  }
  
  .url-display {
    flex-direction: column;
    align-items: stretch;
  }
  
  .copy-btn {
    align-self: flex-end;
    margin-top: 10px;
  }
  
  .home-btn {
    width: 100%;
    padding: 15px 20px;
  }
}
