/* Application Instance Switcher Styles */

.app-switcher {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-switcher--empty {
  background: #f5f5f5;
  color: #666;
  justify-content: space-between;
  padding: 10px 16px;
}

.app-switcher--empty .app-switcher__message {
  margin: 0;
  font-size: 13px;
}

.app-switcher--empty a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.app-switcher--empty a:hover {
  text-decoration: underline;
}

/* Current application display */
.app-switcher__current {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.app-switcher__icon {
  font-size: 18px;
}

.app-switcher__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-switcher__text strong {
  font-weight: 600;
  font-size: 14px;
}

.app-switcher__text small {
  font-size: 12px;
  opacity: 0.9;
}

/* Dropdown selector */
.app-switcher__select {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-switcher__select:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.app-switcher__select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.app-switcher__select option {
  background: #667eea;
  color: white;
}

/* Actions */
.app-switcher__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.app-switcher__link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.app-switcher__link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.app-switcher__link--primary {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.app-switcher__link--primary:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .app-switcher {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

  .app-switcher__current {
    width: 100%;
  }

  .app-switcher__select {
    flex: 1;
    min-width: 200px;
  }

  .app-switcher__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    gap: 6px;
  }

  .app-switcher__link {
    padding: 5px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .app-switcher {
    padding: 10px;
  }

  .app-switcher__text small {
    display: none;
  }

  .app-switcher__select {
    font-size: 11px;
  }

  .app-switcher__actions {
    gap: 4px;
  }

  .app-switcher__link {
    padding: 4px 8px;
    font-size: 10px;
  }
}
