/* ========================================
   Present 공통 스타일
   ======================================== */

/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 기본 body 스타일 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  min-height: 100vh;
}

/* 컨테이너 공통 스타일 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  margin-top: 65px;
}

/* 헤더 공통 스타일 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  text-align: left;
}

.header h1 {
  margin-bottom: 5px;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: translateY(-1px);
}

.header-right {
  display: flex;
  gap: 15px;
}

/* 버튼 공통 스타일 */
.header-btn,
.footer-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.header-btn:hover,
.footer-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.header-btn.primary,
.footer-btn.primary {
  background: linear-gradient(45deg, #155ce9, #1976d2);
  border: none;
}

.header-btn.primary:hover,
.footer-btn.primary:hover {
  background: linear-gradient(45deg, #155ce9, #1976d2);
}

/* 푸터 공통 스타일 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  text-align: left;
}

.footer h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  background: linear-gradient(45deg, #427cf0, #0c55e7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer p {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0;
}

.footer-right {
  display: flex;
  gap: 15px;
}

/* 폼 요소 공통 스타일 */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-control {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  outline: none;
  border-color: #155ce9;
  background: rgba(255, 255, 255, 0.15);
}

/* 버튼 공통 스타일 */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(45deg, #155ce9, #1976d2);

  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #155ce9, #1976d2);

  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 테이블 공통 스타일 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table th,
.table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  color: #155ce9;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* 배지 공통 스타일 */
.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-warning {
  background: #ff8c42;
  color: white;
}

.badge-success {
  background: #4ecdc4;
  color: white;
}

.badge-danger {
  background: #ff6b6b;
  color: white;
}

.badge-info {
  background: #9b59b6;
  color: white;
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* 유틸리티 클래스 */
.text-center {
  text-align: center;
}

.table .text-center {
  text-align: center;
}

.text-muted {
  opacity: 0.6;
}

/* 페이지네이션 공통 스타일 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pagination .active {
  background: linear-gradient(45deg, #ff6b6b, #ff8c42);
  border-color: transparent;
}

/* 헤더 타이틀 공통 스타일 */
.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #155ce9, #1976d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* 로딩 스피너 공통 스타일 */
.loading {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #155ce9;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-nav {
    display: none; /* 모바일에서는 네비게이션 숨김 */
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-left,
  .footer-left {
    text-align: center;
  }

  .footer h1 {
    font-size: 1.5rem;
  }

  .footer p {
    font-size: 0.9rem;
  }

  .header-right,
  .footer-right {
    justify-content: center;
  }

  .header h1 {
    font-size: 2rem;
  }
}

/* 태블릿 크기에서 네비게이션 조정 */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-nav {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}
