/**
 * 受付システム専用スタイル
 * 既存のstyles.cssを補完するスタイル定義
 */

/* ===== ページコンテナ ===== */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
}

/* ===== ヘッダー（受付システム専用） ===== */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.company-logo {
  height: 40px;
  width: auto;
}

.header-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color, #667eea);
}

/* ===== メインコンテンツ ===== */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section {
  display: none;
}

.section.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* ===== 目的選択画面 ===== */
.reception-container {
  text-align: center;
}

.welcome-message {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.reception-container > p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tile {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.purpose-tile:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-color, #667eea);
}

.tile-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tile-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color, #2d3748);
}

.tile-subtitle {
  color: var(--text-secondary, #718096);
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== 検索画面 ===== */
.search-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.back-button {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  color: var(--text-color, #2d3748);
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
  transform: translateX(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.search-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.search-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-filter-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  color: var(--text-color, #2d3748);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.search-box-large {
  position: relative;
  margin-bottom: 2rem;
}

.search-icon-large {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-secondary, #718096);
  pointer-events: none;
}

.search-input-large {
  width: 100%;
  padding: 1.5rem 2rem 1.5rem 4rem;
  font-size: 1.2rem;
  border: 3px solid var(--light-tertiary, #e2e8f0);
  border-radius: 20px;
  background: white;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-input-large:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.search-results {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.result-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
}

.result-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-color, #2d3748);
}

.result-position {
  font-size: 0.9rem;
  color: var(--text-secondary, #718096);
  margin-bottom: 0.25rem;
}

.result-department {
  font-size: 0.9rem;
  color: var(--text-secondary, #718096);
}

.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: white;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* ===== 配送・その他フォーム ===== */
.delivery-container,
.other-container {
  max-width: 900px;
  margin: 0 auto;
}

.form-section {
  margin: 2rem 0;
}

.form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color, #2d3748);
}

/* ラジオタイル */
.radio-tile-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.radio-tile {
  position: relative;
  cursor: pointer;
}

.radio-tile-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-tile-content {
  background: white;
  border: 3px solid var(--light-tertiary, #e2e8f0);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radio-tile-input:checked + .radio-tile-content,
.radio-tile.selected .radio-tile-content {
  border-color: var(--primary-color, #667eea);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.radio-tile:hover .radio-tile-content {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.radio-tile-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.radio-tile-label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color, #2d3748);
}

/* 配送・その他フォームの追加スタイル */
.delivery-container .card,
.other-container .card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* フォームグループの余白調整 */
.delivery-container .form-group,
.other-container .form-group {
  margin-bottom: 2rem;
}

/* ラベルのスタイル調整 */
.delivery-container .form-label,
.other-container .form-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
  color: var(--text-color, #2d3748);
}

/* 入力フィールドとセレクトボックスのスタイル調整 */
.delivery-container .form-control,
.other-container .form-control {
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  border: 2px solid var(--light-tertiary, #e2e8f0);
  border-radius: 12px;
  transition: all 0.3s;
}

.delivery-container .form-control:focus,
.other-container .form-control:focus {
  outline: none;
  border-color: var(--primary-color, #667eea);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 送信ボタンのある最後のform-groupの上部余白を増やす */
.delivery-container .form-group:last-child,
.other-container .form-group:last-child {
  margin-top: 3rem;
  margin-bottom: 0;
}

/* ===== 確認画面 ===== */
.confirmation-container {
  max-width: 700px;
  margin: 0 auto;
}

.confirmation-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.confirmation-details {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.detail-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-tertiary, #e2e8f0);
}

.detail-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #718096);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color, #2d3748);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  flex: 1;
}

/* ===== 完了画面 ===== */
.completion-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
}

.completion-icon {
  font-size: 6rem;
  color: var(--success-color, #48bb78);
  margin-bottom: 2rem;
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.completion-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.completion-message {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.timer {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* ===== ヘルプガイド ===== */
.help-guide {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
}

.help-icon-homon,
.help-icon-employee,
.help-icon-delivery,
.help-icon-other {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-icon-homon:hover,
.help-icon-employee:hover,
.help-icon-delivery:hover,
.help-icon-other:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-container {
  background: white;
  border-radius: 20px;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid var(--light-tertiary, #e2e8f0);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.guide-body {
  padding: 2rem;
  text-align: center;
}

.guide-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--light-tertiary, #e2e8f0);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ===== フッター ===== */
.footer {
  background: rgba(0, 0, 0, 0.1);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
}

.company-name {
  font-weight: 600;
}

/* ===== アラートコンテナ ===== */
.alert-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 400px;
  z-index: 1000;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .welcome-message {
    font-size: 2rem;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-title {
    font-size: 1.8rem;
  }

  .button-group {
    flex-direction: column;
  }

  .help-guide {
    bottom: 1rem;
    right: 1rem;
  }

  .alert-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .back-button {
    position: static;
    margin-bottom: 1rem;
  }

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

  .radio-tile-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .delivery-container .card,
  .other-container .card {
    padding: 1.5rem;
  }
}

/* ===== ログ管理画面専用スタイル ===== */

/* フィルターコンテナ */
.filter-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #718096);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--light-tertiary, #e2e8f0);
  border-radius: 8px;
  background: white;
  color: var(--text-color, #2d3748);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  border-color: var(--primary-color, #667eea);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
  border-color: var(--primary-color, #667eea);
  background: var(--primary-color, #667eea);
  color: white;
}

/* 統計グリッド */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #718096);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color, #2d3748);
}

/* テーブルコンテナ */
.table-container {
  overflow-x: auto;
}

/* ログテーブルのレイアウト調整 */
#logsTableContainer table {
  width: 100%;
  table-layout: fixed;
}

#logsTableContainer th,
#logsTableContainer td {
  padding: 1rem 1.5rem;
}

#logsTableContainer th:nth-child(1),
#logsTableContainer td:nth-child(1) {
  width: 15%;
}

#logsTableContainer th:nth-child(2),
#logsTableContainer td:nth-child(2) {
  width: 15%;
}

#logsTableContainer th:nth-child(3),
#logsTableContainer td:nth-child(3) {
  width: 15%;
}

#logsTableContainer th:nth-child(4),
#logsTableContainer td:nth-child(4) {
  width: 25%;
}

#logsTableContainer th:nth-child(5),
#logsTableContainer td:nth-child(5) {
  width: 15%;
  text-align: center;
}

#logsTableContainer th:nth-child(6),
#logsTableContainer td:nth-child(6) {
  width: 15%;
  text-align: center;
}

/* ローディングインジケーター */
.loading-indicator {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary, #718096);
  font-size: 1.1rem;
}

.loading-indicator i {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--primary-color, #667eea);
}

/* データがない時のメッセージ */
.no-data-message {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary, #718096);
}

.no-data-message i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-data-message p {
  font-size: 1.1rem;
  margin: 0;
}

/* バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    overflow-x: scroll;
  }
}
