@import "../loremipsum/style.css";

.battery-gauge-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
}

.battery-body {
  position: relative;
  flex: 1;
  height: 180px;
  background: var(--bg-panel);
  border: 6px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}

.battery-head {
  width: 24px;
  height: 60px;
  background: var(--border-color);
  border-radius: 0 8px 8px 0;
  margin-left: 2px;
}

.battery-fill {
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg, #6C8E6C, #6C8E6C);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.battery-fill.low {
  background: linear-gradient(90deg, #BE555F, #f87171) !important;
}

.battery-fill.medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.battery-pct-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.firefox-compat-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #f59e0b;
  font-size: 0.85rem;
}

.diag-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.diag-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
  color: var(--text-secondary);
}

.diag-item strong {
  color: var(--text-primary);
}


/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 0.75rem 1.5rem 0.25rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #9ca3af);
  flex-wrap: wrap;
}
.breadcrumb-item a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
  color: var(--accent-color, #CD5C3E);
}
.breadcrumb-item.active {
  color: var(--text-primary, #FAF8F5);
  font-weight: 500;
}
.breadcrumb-separator {
  color: var(--text-muted, #6b7280);
  opacity: 0.5;
  font-size: 0.75rem;
}

html.embed-mode .breadcrumb-nav {
  display: none !important;
}



/* Form Controls & Select Dropdowns */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

.form-select, select.form-select, select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-primary, #FAF8F5);
  background-color: var(--bg-card, #0f172a);
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 0.5rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select option, select option {
  background-color: var(--bg-surface, #0f172a);
  color: var(--text-primary, #FAF8F5);
  padding: 0.5rem;
}

html[data-theme="light"] .form-select option,
html[data-theme="light"] select option {
  background-color: #ffffff;
  color: #0f172a;
}



/* Recommended Tool Card Styles */
.tool-card,
.tool-card-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  transition: all 0.2s ease;
}

.tool-card:hover,
.tool-card-mini:hover {
  background: var(--bg-panel);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.tool-card-icon,
.tool-card-mini .tool-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tool-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tool-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 0.375rem; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.lang-btn:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-hover); }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); z-index: 100; min-width: 130px; }
.lang-option { background: none; border: none; color: var(--text-secondary); font-size: 0.78rem; font-weight: 500; padding: 0.4rem 0.65rem; border-radius: 0.35rem; text-align: left; cursor: pointer; transition: all 0.15s ease; }
.lang-option:hover { background: var(--bg-hover); color: var(--text-primary); }
.lang-option.active { color: var(--accent-color); background: rgba(205, 92, 62, 0.12); font-weight: 600; }
.lang-dropdown.hidden { display: none; }
