/* ==========================================================================
   Ashes of Fallen World - Item Database & Wiki Stylesheet
   100% Authentic In-Game Frame & Rarity Colors for Equipment & Non-Equipment
   ========================================================================== */

.db-header-section {
  padding: 130px 0 40px 0;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.db-search-container {
  max-width: 820px;
  margin: 28px auto 0 auto;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper i {
  position: absolute;
  left: 20px;
  color: var(--text-dim);
  font-size: 1.2rem;
}

.db-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: #14171f;
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  outline: none;
  transition: var(--transition);
}

.db-search-input:focus {
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 25px rgba(229, 169, 59, 0.3);
  background: #1a1e2b;
}

/* ==========================================================================
   Dual Dropdown Filter Bar (Sleek & Compact)
   ========================================================================== */
.db-filter-bar-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.filter-dropdown-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 24, 33, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.filter-dropdown-group:hover,
.filter-dropdown-group:focus-within {
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(229, 169, 59, 0.25);
  background: rgba(26, 31, 44, 0.95);
}

.filter-dropdown-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.db-filter-select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 8px;
  outline: none;
  cursor: pointer;
}

.db-filter-select option {
  background: #0f121a;
  color: #fff;
  padding: 8px;
}

.btn-reset-filters {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-reset-filters:hover {
  background: rgba(229, 169, 59, 0.15);
  border-color: var(--accent-gold);
  color: #fff;
}

/* Secondary Controls Row (Count & Sort) */
.db-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.sort-select {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Item Grid */
.db-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.db-item-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.db-item-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   100% In-Game Authentic Frame Rarity Colors
   ========================================================================== */

/* 1. Ekipman Kaliteleri */
.db-item-card.quality-worn    { border-color: rgba(157, 157, 157, 0.35); }
.db-item-card.quality-normal  { border-color: rgba(56, 189, 248, 0.45); }
.db-item-card.quality-rare    { border-color: rgba(155, 89, 182, 0.55); }
.db-item-card.quality-epic    { border-color: rgba(232, 160, 32, 0.65); }
.db-item-card.quality-blessed { border-color: rgba(244, 63, 94, 0.75); }

.db-item-card.quality-worn:hover    { border-color: #9d9d9d; box-shadow: 0 0 15px rgba(157, 157, 157, 0.3); }
.db-item-card.quality-normal:hover  { border-color: #38bdf8; box-shadow: 0 0 20px rgba(56, 189, 248, 0.35); }
.db-item-card.quality-rare:hover    { border-color: #9b59b6; box-shadow: 0 0 20px rgba(155, 89, 182, 0.4); }
.db-item-card.quality-epic:hover    { border-color: #e8a020; box-shadow: 0 0 25px rgba(232, 160, 32, 0.45); }
.db-item-card.quality-blessed:hover { border-color: #f43f5e; box-shadow: 0 0 30px rgba(244, 63, 94, 0.5); }

/* 2. Eşya / Sarf Türleri */
.db-item-card.rarity-potion        { border-color: rgba(16, 185, 129, 0.45); }
.db-item-card.rarity-chest         { border-color: rgba(251, 191, 36, 0.55); }
.db-item-card.rarity-talent        { border-color: rgba(168, 85, 247, 0.55); }
.db-item-card.rarity-recipe        { border-color: rgba(232, 200, 122, 0.50); }
.db-item-card.rarity-special       { border-color: rgba(249, 115, 22, 0.55); }
.db-item-card.rarity-bag           { border-color: rgba(192, 132, 252, 0.55); }
.db-item-card.rarity-permit        { border-color: rgba(96, 165, 250, 0.50); }
.db-item-card.rarity-boss-key      { border-color: rgba(239, 68, 68, 0.55); }
.db-item-card.rarity-blessed-stone { border-color: rgba(244, 63, 94, 0.65); }
.db-item-card.rarity-cobalt        { border-color: rgba(0, 191, 255, 0.55); }
.db-item-card.rarity-material      { border-color: rgba(160, 200, 120, 0.45); }

.db-item-card.rarity-potion:hover        { border-color: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.db-item-card.rarity-chest:hover         { border-color: #fbbf24; box-shadow: 0 0 25px rgba(251, 191, 36, 0.45); }
.db-item-card.rarity-talent:hover        { border-color: #a855f7; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.db-item-card.rarity-recipe:hover        { border-color: #e8c87a; box-shadow: 0 0 20px rgba(232, 200, 122, 0.35); }
.db-item-card.rarity-special:hover       { border-color: #f97316; box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); }
.db-item-card.rarity-bag:hover           { border-color: #c084fc; box-shadow: 0 0 20px rgba(192, 132, 252, 0.4); }
.db-item-card.rarity-permit:hover        { border-color: #60a5fa; box-shadow: 0 0 20px rgba(96, 165, 250, 0.35); }
.db-item-card.rarity-boss-key:hover      { border-color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
.db-item-card.rarity-blessed-stone:hover { border-color: #f43f5e; box-shadow: 0 0 25px rgba(244, 63, 94, 0.5); }
.db-item-card.rarity-cobalt:hover        { border-color: #00bfff; box-shadow: 0 0 20px rgba(0, 191, 255, 0.4); }
.db-item-card.rarity-material:hover      { border-color: #a0c878; box-shadow: 0 0 20px rgba(160, 200, 120, 0.35); }

/* Item Icon Wrappers */
.item-icon-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: #090a0d;
  border-radius: 10px;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.item-icon-wrapper.quality-worn    { border-color: #9d9d9d; }
.item-icon-wrapper.quality-normal  { border-color: #38bdf8; }
.item-icon-wrapper.quality-rare    { border-color: #9b59b6; }
.item-icon-wrapper.quality-epic    { border-color: #e8a020; box-shadow: 0 0 12px rgba(232, 160, 32, 0.4); }
.item-icon-wrapper.quality-blessed { border-color: #f43f5e; box-shadow: 0 0 16px rgba(244, 63, 94, 0.6); }

.item-icon-wrapper.rarity-potion        { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.35); }
.item-icon-wrapper.rarity-chest         { border-color: #fbbf24; box-shadow: 0 0 14px rgba(251, 191, 36, 0.45); }
.item-icon-wrapper.rarity-talent        { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.35); }
.item-icon-wrapper.rarity-recipe        { border-color: #e8c87a; }
.item-icon-wrapper.rarity-special       { border-color: #f97316; box-shadow: 0 0 12px rgba(249, 115, 22, 0.35); }
.item-icon-wrapper.rarity-bag           { border-color: #c084fc; box-shadow: 0 0 12px rgba(192, 132, 252, 0.35); }
.item-icon-wrapper.rarity-permit        { border-color: #60a5fa; }
.item-icon-wrapper.rarity-boss-key      { border-color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); }
.item-icon-wrapper.rarity-blessed-stone { border-color: #f43f5e; box-shadow: 0 0 16px rgba(244, 63, 94, 0.5); }
.item-icon-wrapper.rarity-cobalt        { border-color: #00bfff; box-shadow: 0 0 12px rgba(0, 191, 255, 0.35); }
.item-icon-wrapper.rarity-material      { border-color: #a0c878; }

.item-icon-wrapper img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.item-details {
  flex-grow: 1;
  min-width: 0;
}

.item-name {
  font-family: var(--font-title);
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.item-name.quality-worn    { color: #9d9d9d; }
.item-name.quality-normal  { color: #38bdf8; }
.item-name.quality-rare    { color: #c084fc; }
.item-name.quality-epic    { color: #fbbf24; text-shadow: 0 0 8px rgba(232, 160, 32, 0.4); }
.item-name.quality-blessed { color: #f43f5e; text-shadow: 0 0 10px rgba(244, 63, 94, 0.6); }

.item-name.rarity-potion        { color: #34d399; }
.item-name.rarity-chest         { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.item-name.rarity-talent        { color: #c084fc; }
.item-name.rarity-recipe        { color: #fde68a; }
.item-name.rarity-special       { color: #fb923c; }
.item-name.rarity-bag           { color: #e9d5ff; }
.item-name.rarity-permit        { color: #93c5fd; }
.item-name.rarity-boss-key      { color: #f87171; text-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.item-name.rarity-blessed-stone { color: #fb7185; text-shadow: 0 0 8px rgba(244, 63, 94, 0.5); }
.item-name.rarity-cobalt        { color: #38bdf8; }
.item-name.rarity-material      { color: #bef264; }

.item-type-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-level-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(229, 169, 59, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  color: var(--accent-gold-light);
}

.quality-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quality-pill.quality-worn    { background: rgba(157, 157, 157, 0.2); color: #9d9d9d; }
.quality-pill.quality-normal  { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.quality-pill.quality-rare    { background: rgba(155, 89, 182, 0.2); color: #c084fc; }
.quality-pill.quality-epic    { background: rgba(232, 160, 32, 0.2); color: #fbbf24; border: 1px solid rgba(232, 160, 32, 0.4); }
.quality-pill.quality-blessed { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.5); }

.quality-pill.rarity-potion        { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.quality-pill.rarity-chest         { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }
.quality-pill.rarity-talent        { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.quality-pill.rarity-recipe        { background: rgba(232, 200, 122, 0.2); color: #fde68a; border: 1px solid rgba(232, 200, 122, 0.4); }
.quality-pill.rarity-special       { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }
.quality-pill.rarity-bag           { background: rgba(192, 132, 252, 0.2); color: #e9d5ff; border: 1px solid rgba(192, 132, 252, 0.4); }
.quality-pill.rarity-permit        { background: rgba(96, 165, 250, 0.2); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.4); }
.quality-pill.rarity-boss-key      { background: rgba(239, 68, 68, 0.2); color: #f87185; border: 1px solid rgba(239, 68, 68, 0.4); }
.quality-pill.rarity-blessed-stone { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.5); }
.quality-pill.rarity-cobalt        { background: rgba(0, 191, 255, 0.2); color: #38bdf8; border: 1px solid rgba(0, 191, 255, 0.4); }
.quality-pill.rarity-material      { background: rgba(160, 200, 120, 0.2); color: #bef264; border: 1px solid rgba(160, 200, 120, 0.4); }

.item-quick-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   Item Modal & Simulator Controls
   ========================================================================== */
.item-modal-box {
  background: #0d0f14;
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px;
  color: #fff;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.item-modal-box.quality-worn    { border-color: #9d9d9d; }
.item-modal-box.quality-normal  { border-color: #38bdf8; }
.item-modal-box.quality-rare    { border-color: #9b59b6; }
.item-modal-box.quality-epic    { border-color: #e8a020; box-shadow: 0 0 40px rgba(232, 160, 32, 0.35); }
.item-modal-box.quality-blessed { border-color: #f43f5e; box-shadow: 0 0 45px rgba(244, 63, 94, 0.45); }

.item-modal-box.rarity-potion        { border-color: #10b981; box-shadow: 0 0 30px rgba(16, 185, 129, 0.3); }
.item-modal-box.rarity-chest         { border-color: #fbbf24; box-shadow: 0 0 35px rgba(251, 191, 36, 0.35); }
.item-modal-box.rarity-talent        { border-color: #a855f7; box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); }
.item-modal-box.rarity-recipe        { border-color: #e8c87a; }
.item-modal-box.rarity-special       { border-color: #f97316; box-shadow: 0 0 30px rgba(249, 115, 22, 0.3); }
.item-modal-box.rarity-bag           { border-color: #c084fc; box-shadow: 0 0 30px rgba(192, 132, 252, 0.3); }
.item-modal-box.rarity-permit        { border-color: #60a5fa; }
.item-modal-box.rarity-boss-key      { border-color: #ef4444; box-shadow: 0 0 30px rgba(239, 68, 68, 0.3); }
.item-modal-box.rarity-blessed-stone { border-color: #f43f5e; box-shadow: 0 0 35px rgba(244, 63, 94, 0.4); }
.item-modal-box.rarity-cobalt        { border-color: #00bfff; }
.item-modal-box.rarity-material      { border-color: #a0c878; }

.modal-item-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-item-icon {
  width: 72px;
  height: 72px;
  background: #07080a;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-item-icon.quality-worn    { border-color: #9d9d9d; }
.modal-item-icon.quality-normal  { border-color: #38bdf8; }
.modal-item-icon.quality-rare    { border-color: #9b59b6; }
.modal-item-icon.quality-epic    { border-color: #e8a020; box-shadow: 0 0 18px rgba(232, 160, 32, 0.5); }
.modal-item-icon.quality-blessed { border-color: #f43f5e; box-shadow: 0 0 22px rgba(244, 63, 94, 0.65); }

.modal-item-icon.rarity-potion        { border-color: #10b981; box-shadow: 0 0 16px rgba(16, 185, 129, 0.4); }
.modal-item-icon.rarity-chest         { border-color: #fbbf24; box-shadow: 0 0 18px rgba(251, 191, 36, 0.45); }
.modal-item-icon.rarity-talent        { border-color: #a855f7; box-shadow: 0 0 16px rgba(168, 85, 247, 0.4); }
.modal-item-icon.rarity-recipe        { border-color: #e8c87a; }
.modal-item-icon.rarity-special       { border-color: #f97316; box-shadow: 0 0 16px rgba(249, 115, 22, 0.4); }
.modal-item-icon.rarity-bag           { border-color: #c084fc; box-shadow: 0 0 16px rgba(192, 132, 252, 0.4); }
.modal-item-icon.rarity-permit        { border-color: #60a5fa; }
.modal-item-icon.rarity-boss-key      { border-color: #ef4444; box-shadow: 0 0 16px rgba(239, 68, 68, 0.4); }
.modal-item-icon.rarity-blessed-stone { border-color: #f43f5e; box-shadow: 0 0 20px rgba(244, 63, 94, 0.55); }
.modal-item-icon.rarity-cobalt        { border-color: #00bfff; }
.modal-item-icon.rarity-material      { border-color: #a0c878; }

.modal-item-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.modal-item-title h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  transition: color 0.3s;
}

/* Compact Dropdown Bar inside Modal */
.modal-simulator-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sim-select-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
}

.sim-select-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-dropdown {
  width: 100%;
  padding: 8px 14px;
  background: #0b0d13;
  border: 1px solid rgba(229, 169, 59, 0.4);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.sim-dropdown:hover,
.sim-dropdown:focus {
  border-color: var(--accent-gold);
  background: #141822;
  box-shadow: 0 0 12px rgba(229, 169, 59, 0.25);
}

/* Stats Grid */
.modal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-val {
  color: #fff;
  font-weight: 600;
}

.stat-val.positive { color: #22c55e; }
.stat-val.gold { color: var(--accent-gold); }
.stat-val.blessed-val { color: #fb7185; text-shadow: 0 0 8px rgba(244, 63, 94, 0.4); font-weight: bold; }

/* Kutsanmış Efsun Yeteneği Kutusu (Blessed Ability Box) */
.blessed-ability-card {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(13, 15, 20, 0.95) 100%);
  border: 1px solid #f43f5e;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.blessed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(244, 63, 94, 0.25);
}

.blessed-card-header h4 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #fb7185;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blessed-ability-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.blessed-icon-wrapper {
  width: 44px;
  height: 44px;
  background: #090a0f;
  border: 1px solid #f43f5e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blessed-icon-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.blessed-text-details h5 {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.blessed-text-details p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.modal-desc-box {
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-footer-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* Empty State */
.db-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.db-empty-state i {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.db-empty-state h3 {
  font-family: var(--font-title);
  color: #fff;
  margin-bottom: 8px;
}

/* ==========================================================================
   Responsive Breakpoints for Database & Simulator
   ========================================================================== */
@media (max-width: 900px) {
  .db-dual-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .db-select-group {
    width: 100%;
    min-width: 100%;
  }
  .db-filter-select {
    width: 100%;
  }
  .btn-reset-filters {
    width: 100%;
    justify-content: center;
  }
  .db-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .db-sort-wrapper {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .db-sort-wrapper select {
    flex-grow: 1;
  }
}

@media (max-width: 600px) {
  .database-hero {
    padding-top: 86px;
    padding-bottom: 30px;
  }
  .database-hero h1 {
    font-size: 1.8rem;
  }
  .db-item-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .db-item-card {
    padding: 12px;
  }
  .item-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  .modal-stats-grid {
    grid-template-columns: 1fr;
  }
  .modal-simulator-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sim-select-group {
    width: 100%;
    justify-content: space-between;
  }
  .sim-dropdown {
    flex-grow: 1;
  }
}
