/* ===================================
   선샤인투어 관리자 페이지 스타일
   =================================== */

/* 관리자 레이아웃 */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-title {
  font-size: 1.8rem;
  margin: 0;
}

.admin-logout {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.admin-logout:hover {
  background-color: var(--hover-color);
}

/* 탭 네비게이션 */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
  color: var(--primary-color);
}

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

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

/* 테이블 스타일 */
.admin-table {
  width: 100%;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
  background-color: #f9f9f9;
}

/* 상태 배지 */
.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pending {
  background-color: #fff3e0;
  color: #e65100;
}

.status-approved {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-rejected {
  background-color: #ffebee;
  color: #c62828;
}

.status-processing {
  background-color: #e3f2fd;
  color: #1565c0;
}

.status-completed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* 액션 버튼 */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-approve {
  background-color: #4CAF50;
  color: white;
}

.btn-approve:hover {
  background-color: #45a049;
}

.btn-reject {
  background-color: #f44336;
  color: white;
}

.btn-reject:hover {
  background-color: #da190b;
}

.btn-delete {
  background-color: #9e9e9e;
  color: white;
}

.btn-delete:hover {
  background-color: #757575;
}

.btn-edit {
  background-color: #2196F3;
  color: white;
}

.btn-edit:hover {
  background-color: #0b7dda;
}

.btn-view {
  background-color: var(--primary-color);
  color: white;
}

.btn-view:hover {
  background-color: var(--hover-color);
}

/* 모달 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* 필터 섹션 */
.filter-section {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* 통계 카드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card h3 {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 이미지 프리뷰 */
.image-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin: 1rem 0;
}

/* 로그인 페이지 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-box {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 90%;
}

.login-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* 반응형 */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .tab-btn {
    padding: 0.8rem 1.5rem;
  }
  
  .admin-table {
    overflow-x: auto;
  }
  
  .admin-table table {
    min-width: 800px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}
