/* HEADER / NAV IOS */

.nav-ios {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.nav-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

#focus-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
}

.nav-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-open-btn {
  border: none;
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

/* TABBAR IOS */

.tabbar-ios {
  position: fixed;
  bottom: env(safe-area-inset-bottom);
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
}

.tabbar-ios button {
  flex: 1 1 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tabbar-ios button.active {
  color: var(--accent);
}

/* FOCUSBAR */

.focusbar {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
}

.focus-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  white-space: nowrap;
}

.focus-pill.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* CARDS / WIDGETS */

.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
}

.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.card-item {
  background: #101010;
  border-radius: 12px;
  padding: 8px;
  font-size: 12px;
}

/* QUICK ACTIONS */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  border: 1px solid var(--border-subtle);
}

/* BUTTONS */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: var(--danger);
  color: #ffffff;
  font-size: 13px;
}
