@charset "utf-8";

#content {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  float: none;
  padding: 10px 0;
}

.app-controls {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.app-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}

.app-control-group label {
  font-size: 12px;
  font-weight: bold;
  color: #475569;
}

.app-control-group select,
.app-control-group input {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
  width: 100%;
}

.app-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.app-tab-btn {
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  color: #475569;
  font-weight: bold;
}

.app-tab-btn.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

.app-stats {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
  text-align: right;
}

.pub-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-pub-card {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1e3a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  text-align: left;
}

.app-pub-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.app-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.badge-paper { background: #dbeafe; color: #1e40af; }
.badge-misc { background: #fef3c7; color: #92400e; }
.badge-book { background: #dcfce7; color: #166534; }
.badge-presentation { background: #f3e8ff; color: #6b21a8; }
.badge-year { background: #f1f5f9; color: #475569; }

.app-pub-title {
  font-size: 14px;
  font-weight: bold;
  color: #1e3a8a;
  line-height: 1.4;
  margin-bottom: 4px;
}

.app-pub-title a {
  color: #1e3a8a;
  text-decoration: none;
}

.app-pub-title a:hover {
  text-decoration: underline;
}

.app-pub-authors {
  font-size: 13px;
  color: #334155;
  margin-bottom: 4px;
}

.app-pub-journal {
  font-size: 12px;
  color: #64748b;
}

.app-loading, .app-empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-size: 14px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* 検索文言の黄色ハイライト */
mark.app-highlight {
  background-color: #fef08a;
  color: #0f172a;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: bold;
}

/* 言語切り替えリンク（日英共通） */
.lang-switch {
  margin-top: 10px;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.9;
}

.lang-switch span {
  font-weight: 700;
  padding: 2px 6px;
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s, opacity 0.2s;
}

.lang-switch a:hover {
  text-decoration: underline;
  background-color: rgba(128, 128, 128, 0.15);
}