/* GSF App Switcher — shared component
   Source: PORTAL/shared/app-switcher.css
   Apply: Copy vào mỗi app's shared/ folder. Single source: PORTAL/shared/.
*/

.gsf-switcher {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 9999;
  font-family: 'Inter', -apple-system, sans-serif;
}

.gsf-switcher-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.gsf-switcher-btn:hover { background: rgba(255,255,255,.25); }
.gsf-switcher-btn svg { width: 20px; height: 20px; }

.gsf-switcher-panel {
  position: absolute;
  top: 44px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  padding: 12px;
  display: none;
  border: 1px solid #e5e7eb;
}
.gsf-switcher-panel.open { display: block; }

.gsf-switcher-title {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 8px 8px;
}

.gsf-switcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gsf-switcher-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  transition: background .15s;
  text-align: center;
}
.gsf-switcher-item:hover { background: #f3f4f6; }
.gsf-switcher-item.disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.gsf-switcher-item.active {
  background: #eff6ff;
  color: #1e3a8a;
}

.gsf-switcher-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e3a8a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gsf-switcher-icon svg { width: 20px; height: 20px; }
.gsf-switcher-item.disabled .gsf-switcher-icon { background: #9ca3af; }

.gsf-switcher-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.gsf-switcher-sub {
  font-size: 10px;
  color: #6b7280;
  margin-top: -2px;
}

.gsf-switcher-footer {
  margin-top: 8px;
  padding: 8px;
  border-top: 1px solid #f3f4f6;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}
.gsf-switcher-footer a { color: #1e3a8a; text-decoration: none; }
.gsf-switcher-footer a:hover { text-decoration: underline; }
