/* コレクション・漫画カード */
.collection-card,
.comic-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.collection-card:hover,
.comic-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.collection-card .card-title,
.comic-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  box-orient: vertical;
  -webkit-box-orient: vertical;
}

.collection-thumbnail,
.comic-thumbnail {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f8f9fa;
  padding: 0.5rem;
}

.collection-thumbnail img,
.comic-thumbnail img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.comic-list-card {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #ffffff;
}

.comic-list-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #007bff;
}

.comic-thumbnail-wrapper {
  width: 80px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comic-thumbnail-image {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.search-result-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.search-result-header h4 {
  color: #495057;
  font-weight: 600;
  margin: 0;
}

.search-result-header .fas.fa-search {
  color: var(--primary-color);
}

.search-result-actions .btn-outline-danger {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-width: 2px;
  transition: all 0.2s ease;
}

.search-result-actions .btn-outline-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.375rem;
}

.page-item {
  margin: 0 0.125rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #0d6efd;
  background-color: #fff;
  border: 1px solid #dee2e6;
  text-decoration: none;
}

.page-link:hover {
  color: #0a58ca;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* 管理画面専用コンポーネント */
.navbar.admin-navbar {
  background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%) !important;
  box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
}

.navbar .navbar-nav.admin-menu {
  gap: 0.5rem;
}

.navbar .navbar-nav.admin-menu .nav-item {
  margin: 0 0.25rem;
}

.navbar .navbar-nav.admin-menu .nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.navbar .navbar-nav.admin-menu .nav-link i {
  margin-right: 0.6rem;
  width: 1rem;
  text-align: center;
}

.navbar .navbar-nav.admin-menu .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.navbar .navbar-nav.admin-menu .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-nav.admin-menu .nav-link .badge {
  margin-left: 0.3rem;
}

/* 新規追加カード */
.add-new-card-wrapper {
  width: 220px;
  height: 100%;
  min-height: 300px;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.add-new-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.add-new-card-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #0d6efd;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
  text-align: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  position: relative;
}

.add-new-card-link:hover {
  background-color: rgba(13, 110, 253, 0.05);
  color: #0a58ca;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-new-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.add-new-card-text {
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
}

/* ログイン画面専用コンポーネント */
.login-frame,
.register-frame {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.frame-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.frame-header h2 {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333;
  margin: 0;
}

.forgot-password-frame,
.reset-password-frame {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  height: fit-content;
}

.content-frame {
  max-width: 500px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 450px;
}

.user-type-card {
  background-color: #4361ee;
  border-color: #4361ee;
  padding: 0.6rem 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid;
  border-radius: 0.25rem;
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
  line-height: 1.5;
}

.user-type-card:hover {
  background-color: #3a56d4;
  border-color: #3a56d4;
  color: white;
}

.user-type-card h5 {
  color: white;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

.register-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.btn-group-register {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: baseline;
  margin-top: 1.5rem;
}

.btn-group-register .btn {
  min-width: 120px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  vertical-align: top;
  margin: 0;
  border: 1px solid;
}