/* Foxry Vault Admin Styles */

/* 未読行の背景色 */
.foxry-vault-unread {
  background-color: #f0f6fc !important;
}

/* 未読バッジ */
.foxry-vault-badge-unread {
  display: inline-block;
  background-color: #2271b1;
  color: #fff;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

/* 既読バッジ */
.foxry-vault-badge-read {
  display: inline-block;
  background-color: #dcdcde;
  color: #50575e;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

/* 詳細表示 */
.foxry-vault-detail {
  max-width: 800px;
}

.foxry-vault-detail .foxry-vault-meta {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.foxry-vault-detail .foxry-vault-meta p {
  margin: 5px 0;
}

.foxry-vault-detail table th {
  width: 200px;
  text-align: left;
  vertical-align: top;
}

.foxry-vault-detail table td {
  vertical-align: top;
}

/* 詳細画面のアクションボタン */
.foxry-vault-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* メニューバッジ（未読数） */
.foxry-vault-menu-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  background-color: #d63638;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  margin-left: 5px;
  vertical-align: middle;
}

/* 送信者情報の表示 */
.foxry-vault-sender-name {
  font-weight: 600;
}

.foxry-vault-sender-email {
  color: #666;
  font-size: 13px;
}

/* 成功メッセージ */
.foxry-vault-notice-success {
  border-left-color: #00a32a;
}

/* User Agent 折り返し */
.foxry-vault-detail .foxry-vault-meta-ua {
  word-break: break-all;
}

/* フィールドテーブル */
.foxry-vault-detail .foxry-vault-fields {
  margin-top: 10px;
}

/* 詳細画面 下部アクション */
.foxry-vault-actions-bottom {
  justify-content: flex-end;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  margin-top: 25px;
}

/* 削除ボタン（赤系） */
.button.button-link-delete {
  color: #b32d2e;
  border-color: #b32d2e;
  background: #fff;
}

.button.button-link-delete:hover,
.button.button-link-delete:focus {
  color: #fff;
  background: #b32d2e;
  border-color: #b32d2e;
}

/* 空状態のガイド */
.foxry-vault-empty {
  text-align: center;
  color: #646970;
  padding: 40px 20px;
}

.foxry-vault-empty .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #c3c4c7;
  margin-bottom: 10px;
}

.foxry-vault-empty p {
  font-size: 14px;
  margin: 0;
}

/* レスポンシブ対応 */
@media screen and (max-width: 782px) {
  .foxry-vault-detail table th {
    width: 120px;
  }

  .foxry-vault-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 小さい画面ではID列を非表示 */
  .wp-list-table .column-id {
    display: none;
  }
}

/* ダッシュボードウィジェット */
.foxry-vault-widget-stats {
  display: flex;
  gap: 0;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.foxry-vault-widget-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid #e0e0e0;
}

.foxry-vault-widget-stat:last-child {
  border-right: none;
}

.foxry-vault-widget-stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1d2327;
  line-height: 1.2;
}

.foxry-vault-widget-stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.foxry-vault-widget-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foxry-vault-widget-recent li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foxry-vault-widget-recent li:last-child {
  border-bottom: none;
}

.foxry-vault-widget-recent-info {
  flex: 1;
  min-width: 0;
}

.foxry-vault-widget-recent-form {
  font-weight: 600;
  font-size: 13px;
  color: #1d2327;
}

.foxry-vault-widget-recent-sender {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foxry-vault-widget-recent-date {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  margin-left: 10px;
}

.foxry-vault-widget-footer {
  margin-top: 12px;
  text-align: right;
}

.foxry-vault-widget-empty {
  text-align: center;
  color: #999;
  padding: 20px 0;
  font-size: 13px;
}

@media screen and (max-width: 782px) {
  .foxry-vault-widget-stats {
    flex-direction: column;
  }

  .foxry-vault-widget-stat {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .foxry-vault-widget-stat:last-child {
    border-bottom: none;
  }
}
