/* TechCS 긴급 공지 생성기 v3.0 - 카카오클라우드 콘솔 디자인 */

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 헤더 */
.header {
  background: linear-gradient(90deg, #000 0%, #1a1a1a 70%, #FFE500 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clock {
  display: flex;
  gap: 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.clock strong {
  color: #fff;
  font-weight: 700;
}

/* 메인 */
.main {
  padding: 32px 0 80px;
}

/* 탭 */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.3px;
}

.tab:hover {
  background: #f9fafb;
  color: #1a1a1a;
}

.tab.active {
  background: #1a1a1a;
  color: #fff;
}

/* 탭 컨텐츠 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 레이아웃 */
.layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.layout-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.layout-hv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* 카드 */
.card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
  background: #fafafa;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.4px;
  margin: 0;
}

.badge {
  padding: 6px 12px;
  background: #FFF9E6;
  color: #b88400;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.badge-gray {
  padding: 6px 12px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 인포 박스 */
.info-box {
  background: #f8f9fa;
  border-left: 3px solid #FFE500;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

/* 그리드 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* 필드 */
.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Pretendard', sans-serif;
  color: #1a1a1a;
  background: #fff;
  transition: all 0.2s;
  font-weight: 500;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.field textarea {
  resize: vertical;
  line-height: 1.6;
}

/* 체크박스 그룹 */
.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  font-weight: 600;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1a1a1a;
}

/* 서비스 리스트 */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.service-row {
  display: flex;
  gap: 10px;
}

.service-select {
  flex: 1;
}

/* 버튼 */
.btn-yellow {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #FFE500 0%, #FFD700 100%);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 8px rgba(255, 229, 0, 0.25);
}

.btn-yellow:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 229, 0, 0.35);
}

.btn-yellow:active {
  transform: translateY(0);
}

.btn-add {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1a1a1a;
}

.btn-inline {
  padding: 5px 10px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 10px;
}

.btn-inline:hover {
  background: #e5e7eb;
  color: #1a1a1a;
}

.btn-copy {
  padding: 5px 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #374151;
}

/* 출력 필드 */
.output-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.output-header label {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.output-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Pretendard', sans-serif;
  color: #1a1a1a;
  background: #f9fafb;
  resize: vertical;
  line-height: 1.6;
  font-weight: 500;
}

/* 빠른 링크 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}

.quick-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1a1a1a;
  transform: translateY(-1px);
}

/* 하단 링크 */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-link:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.footer-link-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.footer-link-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.footer-link-text p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-weight: 600;
}

/* 푸터 */
.footer {
  background: #1a1a1a;
  border-top: 1px solid #2d2d2d;
  margin-top: 60px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

.footer p {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
}

.footer a {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}

.footer a:hover {
  color: #fff;
}

/* 토스트 */
#toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateX(400px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

#toast.show {
  transform: translateX(0);
}

/* Sticky */
.sticky {
  position: sticky;
  top: 24px;
}

/* 반응형 */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
  
  .layout-hv {
    grid-template-columns: 1fr;
  }
  
  .sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2,
  .quick-links,
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  
  .footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }
}

/* 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f6f8;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.mb-2 {
  margin-bottom: 10px;
}

/* 작은 배지 스타일 */
.badge-sm {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.badge-sm-yellow {
  background: #FFE500;
  color: #1a1a1a;
}

#cs-timer-display {
  font-size: 1.05em;
  color: #cf222e;
  font-weight: bold;
}
