/* Administrate 커스텀 스타일 */

/* 전체 레이아웃 */
body {
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a202c;
}

/* 사이드바 */
.navigation {
  background-color: #1f2937;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.navigation__link {
  color: #e5e7eb;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.navigation__link:hover {
  background-color: #374151;
  color: #fff;
  border-left-color: #3b82f6;
}

.navigation__link--active {
  background-color: #374151;
  color: #fff;
  border-left-color: #3b82f6;
}

/* 헤더 */
.main-content__header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-content__page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* 테이블 */
.table__wrapper {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

thead {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

tbody tr:hover {
  background-color: #f9fafb;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* 버튼 */
.button {
  background-color: #3b82f6;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: #2563eb;
  color: #fff;
}

.button--danger {
  background-color: #ef4444;
}

.button--danger:hover {
  background-color: #dc2626;
}

/* 검색바 */
.search__input {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 100%;
  max-width: 20rem;
}

.search__input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 폼 */
.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field {
  margin-bottom: 1.5rem;
}

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

/* 상세 페이지 */
.attribute-label {
  font-weight: 600;
  color: #374151;
  padding: 0.75rem 1.5rem;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.attribute-data {
  padding: 0.75rem 1.5rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

/* 알림 메시지 */
.flash {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.flash--notice {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.flash--error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.pagination .current {
  background-color: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* 메인 컨텐츠 영역 */
.main-content {
  padding: 0;
  background-color: #f8fafc;
}

.main-content__body {
  padding: 0 2rem 2rem;
}

/* 액션 버튼 그룹 */
.main-content__header > div {
  display: flex;
  gap: 0.75rem;
}

/* 속성 테이블 */
.attributes-table {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.attributes-table table {
  margin: 0;
}

/* 네비게이션 로고 영역 */
.navigation__logo {
  padding: 1.5rem;
  border-bottom: 1px solid #374151;
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .main-content__header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .table__wrapper {
    overflow-x: auto;
  }
  
  th, td {
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }
}